/external/llvm-project/mlir/tools/mlir-tblgen/ |
D | OpPythonBindingGen.cpp | 392 for (const auto &namedAttr : op.getAttributes()) { in emitAttributeAccessors() local 395 if (namedAttr.attr.isDerivedAttr()) in emitAttributeAccessors() 398 if (namedAttr.name.empty()) in emitAttributeAccessors() 401 std::string sanitizedName = sanitizeName(namedAttr.name); in emitAttributeAccessors() 404 if (namedAttr.attr.getStorageType().trim().equals("::mlir::UnitAttr")) { in emitAttributeAccessors() 406 namedAttr.name); in emitAttributeAccessors() 408 namedAttr.name); in emitAttributeAccessors() 410 namedAttr.name); in emitAttributeAccessors() 415 if (!attributeClasses.count(namedAttr.attr.getStorageType().trim())) in emitAttributeAccessors() 419 attributeClasses.lookup(namedAttr.attr.getStorageType()); in emitAttributeAccessors() [all …]
|
D | OpDefinitionsGen.cpp | 340 for (const auto &namedAttr : op.getAttributes()) in populateSubstitutions() local 341 ctx.addSubst(namedAttr.name, in populateSubstitutions() 342 formatv("{0}(\"{1}\")", attrGet, namedAttr.name)); in populateSubstitutions() 379 for (const auto &namedAttr : op.getAttributes()) { in genAttributeVerifier() local 380 const auto &attr = namedAttr.attr; in genAttributeVerifier() 384 auto attrName = namedAttr.name; in genAttributeVerifier() 532 for (auto &namedAttr : op.getAttributes()) { in genAttrGetters() local 533 const auto &name = namedAttr.name; in genAttrGetters() 534 const auto &attr = namedAttr.attr; in genAttrGetters() 544 [](const NamedAttribute &namedAttr) { in genAttrGetters() argument [all …]
|
D | SPIRVUtilsGen.cpp | 1202 for (const NamedAttribute &namedAttr : srcOp.getAttributes()) { in emitAvailabilityImpl() local 1203 const auto *enumAttr = llvm::dyn_cast<EnumAttr>(&namedAttr.attr); in emitAvailabilityImpl() 1243 for (const NamedAttribute &namedAttr : srcOp.getAttributes()) { in emitAvailabilityImpl() local 1244 const auto *enumAttr = llvm::dyn_cast<EnumAttr>(&namedAttr.attr); in emitAvailabilityImpl() 1273 namedAttr.name); in emitAvailabilityImpl() 1281 namedAttr.name); in emitAvailabilityImpl()
|
D | RewriterGen.cpp | 452 auto *namedAttr = op.getArg(argIndex).get<NamedAttribute *>(); in emitAttributeMatch() local 453 const auto &attr = namedAttr->attr; in emitAttributeMatch() 458 opName, attr.getStorageType(), namedAttr->name); in emitAttributeMatch() 474 op.getOperationName(), namedAttr->name, in emitAttributeMatch() 493 op.getOperationName(), namedAttr->name, in emitAttributeMatch()
|
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/ |
D | ConvertGPUToSPIRV.cpp | 196 for (const auto &namedAttr : funcOp.getAttrs()) { in lowerAsEntryFunction() local 197 if (namedAttr.first == impl::getTypeAttrName() || in lowerAsEntryFunction() 198 namedAttr.first == SymbolTable::getSymbolAttrName()) in lowerAsEntryFunction() 200 newFuncOp.setAttr(namedAttr.first, namedAttr.second); in lowerAsEntryFunction()
|
/external/llvm-project/mlir/lib/Conversion/SCFToGPU/ |
D | SCFToGPU.cpp | 523 for (const auto &namedAttr : parallelOp.getAttrs()) { in processParallelLoop() local 524 if (namedAttr.first == gpu::getMappingAttrName() || in processParallelLoop() 525 namedAttr.first == ParallelOp::getOperandSegmentSizeAttr()) in processParallelLoop() 527 launchOp.setAttr(namedAttr.first, namedAttr.second); in processParallelLoop()
|
/external/llvm-project/mlir/lib/Transforms/Utils/ |
D | Utils.cpp | 205 for (auto namedAttr : op->getAttrs()) { in replaceAllMemRefUsesWith() local 206 if (namedAttr.first == oldMapAttrPair.first) in replaceAllMemRefUsesWith() 207 state.attributes.push_back({namedAttr.first, newMapAttr}); in replaceAllMemRefUsesWith() 209 state.attributes.push_back(namedAttr); in replaceAllMemRefUsesWith()
|
/external/llvm-project/mlir/test/lib/Dialect/Test/ |
D | TestDialect.cpp | 253 NamedAttribute namedAttr) { in verifyOperationAttribute() argument 254 if (namedAttr.first == "test.invalid_attr") in verifyOperationAttribute() 262 NamedAttribute namedAttr) { in verifyRegionArgAttribute() argument 263 if (namedAttr.first == "test.invalid_attr") in verifyRegionArgAttribute() 271 NamedAttribute namedAttr) { in verifyRegionResultAttribute() argument 272 if (namedAttr.first == "test.invalid_attr") in verifyRegionResultAttribute()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | SPIRVLowering.cpp | 496 for (const auto &namedAttr : funcOp.getAttrs()) { in matchAndRewrite() local 497 if (namedAttr.first != impl::getTypeAttrName() && in matchAndRewrite() 498 namedAttr.first != SymbolTable::getSymbolAttrName()) in matchAndRewrite() 499 newFuncOp.setAttr(namedAttr.first, namedAttr.second); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Bindings/Python/ |
D | IRModules.cpp | 1137 namedAttr = mlirNamedAttributeGet(toMlirStringRef(*this->ownedName), attr); in PyNamedAttribute() 1374 MlirNamedAttribute namedAttr = in dunderGetItemIndexed() local 1376 return PyNamedAttribute(namedAttr.attribute, in dunderGetItemIndexed() 1377 std::string(namedAttr.name.data)); in dunderGetItemIndexed() 3063 printAccum.parts.append(self.namedAttr.name.data); in populateIRSubmodule() 3065 mlirAttributePrint(self.namedAttr.attribute, in populateIRSubmodule() 3074 return py::str(self.namedAttr.name.data, in populateIRSubmodule() 3075 self.namedAttr.name.length); in populateIRSubmodule() 3084 mlirAttributeGetContext(self.namedAttr.attribute)); in populateIRSubmodule() 3085 return PyAttribute(std::move(contextRef), self.namedAttr.attribute); in populateIRSubmodule()
|
D | IRModules.h | 615 MlirNamedAttribute namedAttr; variable
|
/external/llvm-project/mlir/include/mlir/Dialect/LLVMIR/ |
D | LLVMOps.td | 31 for (auto namedAttr : attributes) { 32 $_state.addAttribute(namedAttr.first, namedAttr.second); 41 for (auto namedAttr : attributes) { 42 $_state.addAttribute(namedAttr.first, namedAttr.second);
|