[llvm] [SPIR-V] Add support for inline SPIR-V types (PR #125316)
Cassandra Beckley via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 11:08:28 PST 2025
================
@@ -2868,6 +2868,61 @@ static SPIRVType *getSampledImageType(const TargetExtType *OpaqueType,
return GR->getOrCreateOpTypeSampledImage(OpaqueImageType, MIRBuilder);
}
+static SPIRVType *getInlineSpirvType(const TargetExtType *ExtensionType,
+ MachineIRBuilder &MIRBuilder,
+ SPIRVGlobalRegistry *GR) {
+ assert(ExtensionType->getNumIntParameters() == 3 &&
+ "Inline SPIR-V type builtin takes an opcode, size, and alignment "
+ "parameter");
+ auto Opcode = ExtensionType->getIntParameter(0);
+
+ return GR->getOrCreateUnknownType(
----------------
cassiebeckley wrote:
I opened #125558 to track
https://github.com/llvm/llvm-project/pull/125316
More information about the llvm-commits
mailing list