[clang] [HLSL] Implement `SpirvType` and `SpirvOpaqueType` (PR #134034)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 21 15:27:41 PDT 2025
================
@@ -6330,6 +6331,140 @@ class HLSLAttributedResourceType : public Type, public llvm::FoldingSetNode {
findHandleTypeOnResource(const Type *RT);
};
+/// Instances of this class represent operands to a SPIR-V type instruction.
+class SpirvOperand {
+public:
+ enum SpirvOperandKind : unsigned char {
+ kInvalid, ///< Uninitialized.
----------------
llvm-beanz wrote:
LLVM does not use Hungarian notation (https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly).
https://github.com/llvm/llvm-project/pull/134034
More information about the cfe-commits
mailing list