[llvm] [DirectX] legalize memset (PR #136244)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 10:28:46 PDT 2025


================
@@ -239,6 +247,72 @@ downcastI64toI32InsertExtractElements(Instruction &I,
   }
 }
 
+void emitMemsetExpansion(IRBuilder<> &Builder, Value *Dst, Value *Val,
+                         ConstantInt *SizeCI,
+                         DenseMap<Value *, Value *> &ReplacedValues) {
+  LLVMContext &Ctx = Builder.getContext();
+  [[maybe_unused]] DataLayout DL =
----------------
bogner wrote:

Should probably be `const DataLayout &` - we don't usually copy these.

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


More information about the llvm-commits mailing list