Searched refs:opVar (Results 1 – 2 of 2) sorted by relevance
/external/llvm-project/mlir/tools/mlir-tblgen/ |
D | SPIRVUtilsGen.cpp | 491 StringRef opVar, StringRef operandList, in emitAttributeSerialization() argument 494 << formatv("if (auto attr = {0}.getAttr(\"{1}\")) {{\n", opVar, attrName); in emitAttributeSerialization() 500 operandList, opVar); in emitAttributeSerialization() 534 StringRef tabs, StringRef opVar, in emitArgumentSerialization() argument 565 << formatv("for (Value operand : {0}->getOperands()) {{\n", opVar); in emitArgumentSerialization() 574 tabs, opVar, operands, attr.name, os); in emitArgumentSerialization() 588 << formatv(" for (auto arg : {0}.getODSOperands({1})) {{\n", opVar, in emitArgumentSerialization() 595 opVar, operandNum); in emitArgumentSerialization() 605 loc, newtabs, opVar, operands, attr->name, os); in emitArgumentSerialization() 617 StringRef tabs, StringRef opVar, in emitResultSerialization() argument [all …]
|
D | OpFormatGen.cpp | 1060 } else if (auto *opVar = dyn_cast<OperandVariable>(firstElement)) { in genElementParser() local 1061 genElementParser(opVar, body, attrTypeCtx); in genElementParser() 1062 body << " if (!" << opVar->getVar()->name << "Operands.empty()) {\n"; in genElementParser() 2651 auto *opVar = dyn_cast<OperandVariable>(typeEle); in parseOptional() local 2652 const NamedTypeConstraint *var = opVar ? opVar->getVar() : nullptr; in parseOptional()
|