[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:20:04 PDT 2025


================
@@ -93,9 +94,7 @@ static raw_ostream &operator<<(raw_ostream &OS,
 }
 
 static raw_ostream &operator<<(raw_ostream &OS, const ClauseType &Type) {
-  OS << enumToStringRef(dxil::ResourceClass(llvm::to_underlying(Type)),
-                        dxil::getResourceClasses());
-
+  OS << dxil::getResourceClassName(dxil::ResourceClass(Type));
----------------
llvm-beanz wrote:

```suggestion
  OS << dxil::getResourceClassName(Type);
```

https://github.com/llvm/llvm-project/pull/153840


More information about the llvm-commits mailing list