Searched refs:varOp (Results 1 – 7 of 7) sorted by relevance
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/ |
D | DecorateSPIRVCompositeTypeLayoutPass.cpp | 68 auto varOp = spirvModule.lookupSymbol<spirv::GlobalVariableOp>(varName); in matchAndRewrite() local 71 op, varOp.type(), rewriter.getSymbolRefAttr(varName)); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | SPIRVOps.cpp | 1048 auto varOp = dyn_cast_or_null<spirv::GlobalVariableOp>( in verify() local 1051 if (!varOp) { in verify() 1054 if (addressOfOp.pointer().getType() != varOp.type()) { in verify() 1971 static void print(spirv::GlobalVariableOp varOp, OpAsmPrinter &printer) { in print() argument 1972 auto *op = varOp.getOperation(); in print() 1979 printer.printSymbolName(varOp.sym_name()); in print() 1983 if (auto initializer = varOp.initializer()) { in print() 1992 printer << " : " << varOp.type(); in print() 1995 static LogicalResult verify(spirv::GlobalVariableOp varOp) { in verify() argument 2000 auto storageClass = varOp.storageClass(); in verify() [all …]
|
D | SPIRVLowering.cpp | 525 for (auto varOp : body.getOps<spirv::GlobalVariableOp>()) { in getBuiltinVariable() local 526 if (auto builtinAttr = varOp->getAttrOfType<StringAttr>( in getBuiltinVariable() 531 return varOp; in getBuiltinVariable() 547 if (auto varOp = getBuiltinVariable(body, builtin)) in getOrInsertBuiltinVariable() local 548 return varOp; in getOrInsertBuiltinVariable() 594 spirv::GlobalVariableOp varOp = getOrInsertBuiltinVariable( in getBuiltinVariableValue() local 596 Value ptr = builder.create<spirv::AddressOfOp>(op->getLoc(), varOp); in getBuiltinVariableValue()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/ |
D | Serializer.cpp | 222 LogicalResult processGlobalVariableOp(spirv::GlobalVariableOp varOp); 946 Serializer::processGlobalVariableOp(spirv::GlobalVariableOp varOp) { in processGlobalVariableOp() argument 950 if (failed(processType(varOp.getLoc(), varOp.type(), resultTypeID))) { in processGlobalVariableOp() 954 if (isInterfaceStructPtrType(varOp.type())) { in processGlobalVariableOp() 955 auto structType = varOp.type() in processGlobalVariableOp() 961 return varOp.emitError("cannot decorate ") in processGlobalVariableOp() 972 auto varName = varOp.sym_name(); in processGlobalVariableOp() 981 operands.push_back(static_cast<uint32_t>(varOp.storageClass())); in processGlobalVariableOp() 984 if (auto initializer = varOp.initializer()) { in processGlobalVariableOp() 987 return emitError(varOp.getLoc(), in processGlobalVariableOp() [all …]
|
D | Deserializer.cpp | 1101 auto varOp = opBuilder.create<spirv::GlobalVariableOp>( in processGlobalVariable() local 1108 varOp.setAttr(attr.first, attr.second); in processGlobalVariable() 1111 globalVariableMap[variableID] = varOp; in processGlobalVariable() 2338 if (auto varOp = getGlobalVariable(id)) { in getValue() local 2340 unknownLoc, varOp.type(), in getValue() 2341 opBuilder.getSymbolRefAttr(varOp.getOperation())); in getValue()
|
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/ |
D | ConvertSPIRVToLLVM.cpp | 1247 matchAndRewrite(spirv::VariableOp varOp, ArrayRef<Value> operands, in matchAndRewrite() argument 1249 auto srcType = varOp.getType(); in matchAndRewrite() 1252 auto init = varOp.initializer(); in matchAndRewrite() 1260 Location loc = varOp.getLoc(); in matchAndRewrite() 1263 rewriter.replaceOpWithNewOp<LLVM::AllocaOp>(varOp, dstType, size); in matchAndRewrite() 1268 rewriter.replaceOp(varOp, allocated); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/ |
D | ConvertStandardToSPIRV.cpp | 287 spirv::GlobalVariableOp varOp; in matchAndRewrite() local 296 varOp = rewriter.create<spirv::GlobalVariableOp>( in matchAndRewrite() 302 rewriter.replaceOpWithNewOp<spirv::AddressOfOp>(operation, varOp); in matchAndRewrite()
|