[llvm-branch-commits] [DirectX] Lower `@llvm.dx.typedBufferStore` to DXIL ops (PR #104253)

Justin Bogner via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Aug 14 15:40:20 PDT 2024


================
@@ -289,6 +289,43 @@ class OpLowerer {
     });
   }
 
+  void lowerTypedBufferStore(Function &F) {
+    IRBuilder<> &IRB = OpBuilder.getIRB();
+    Type *Int8Ty = IRB.getInt8Ty();
+    Type *Int32Ty = IRB.getInt32Ty();
+
+    replaceFunction(F, [&](CallInst *CI) -> Error {
----------------
bogner wrote:

It doesn't *need* to be - it just seemed more ergonomic than coming up with a name for it and spelling it elsewhere. Do you have a different suggestion?

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


More information about the llvm-branch-commits mailing list