[llvm] [HLSL] Refactoring DXILABI.h to not depend on scope printer (PR #153840)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 15:28:43 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));
----------------
llvm-beanz wrote:
Ugh... This one isn't actually a type alias (we should probably fix that). So the conversion is required. Disregard this edit.
https://github.com/llvm/llvm-project/pull/153840
More information about the llvm-commits
mailing list