[llvm] [llvm] Move data layout string computation to TargetParser (PR #157612)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 07:49:48 PDT 2025


================
@@ -201,12 +145,13 @@ ARMBaseTargetMachine::ARMBaseTargetMachine(const Target &T, const Triple &TT,
                                            const TargetOptions &Options,
                                            std::optional<Reloc::Model> RM,
                                            std::optional<CodeModel::Model> CM,
-                                           CodeGenOptLevel OL, bool isLittle)
-    : CodeGenTargetMachineImpl(T, computeDataLayout(TT, Options, isLittle), TT,
-                               CPU, FS, Options, getEffectiveRelocModel(TT, RM),
-                               getEffectiveCodeModel(CM, CodeModel::Small), OL),
+                                           CodeGenOptLevel OL)
+    : CodeGenTargetMachineImpl(
+          T, TT.computeDataLayout(Options.MCOptions.ABIName), TT, CPU, FS,
----------------
s-barannikov wrote:

Move the call to TargetMachine constructor and remove DL argument? So that downstream targets notice the change.

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


More information about the llvm-commits mailing list