[llvm] [HLSL] Refactoring DXILABI.h to not depend on scope printer (PR #153840)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 15:25:24 PDT 2025
================
@@ -120,8 +120,7 @@ MDNode *MetadataBuilder::BuildRootConstants(const RootConstants &Constants) {
MDNode *MetadataBuilder::BuildRootDescriptor(const RootDescriptor &Descriptor) {
IRBuilder<> Builder(Ctx);
StringRef ResName =
- enumToStringRef(dxil::ResourceClass(to_underlying(Descriptor.Type)),
- dxil::getResourceClasses());
+ dxil::getResourceClassName(dxil::ResourceClass(Descriptor.Type));
----------------
joaosaffran wrote:
This is not the same type, below is the Error I am seeing with the suggested change.
```
Cannot initialize a parameter of type 'ResourceClass' with an lvalue of type 'const DescriptorType'
```
https://github.com/llvm/llvm-project/pull/153840
More information about the llvm-commits
mailing list