diff options
author | Matin Raayai <raayaiardakani.m@northeastern.edu> | 2024-11-15 00:29:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-14 16:29:06 -0800 |
commit | eec21ccee0950d52926a79685573db1996e3ba5b (patch) | |
tree | 154a4413f8b250bc944d4c1622eebf4472965fa9 /llvm/lib | |
parent | 1857d297354fd307d2b30ff69036cc343d2fd692 (diff) | |
download | llvm-eec21ccee0950d52926a79685573db1996e3ba5b.zip llvm-eec21ccee0950d52926a79685573db1996e3ba5b.tar.gz llvm-eec21ccee0950d52926a79685573db1996e3ba5b.tar.bz2 |
Fixed un-renamed CodeGenTargetMachineImpl Intheritances in Experimental Targets (#116290)
This PR fixes a set of build issues with experimental targets happened
in result of merging #111234 to master.
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARC/ARCTargetMachine.cpp | 11 | ||||
-rw-r--r-- | llvm/lib/Target/CSKY/CSKYTargetMachine.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/DirectX/DirectXTargetMachine.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/M68k/M68kTargetMachine.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZTargetMachine.h | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp | 7 |
8 files changed, 22 insertions, 20 deletions
diff --git a/llvm/lib/Target/ARC/ARCTargetMachine.cpp b/llvm/lib/Target/ARC/ARCTargetMachine.cpp index df8c96a..57e0177 100644 --- a/llvm/lib/Target/ARC/ARCTargetMachine.cpp +++ b/llvm/lib/Target/ARC/ARCTargetMachine.cpp @@ -33,11 +33,12 @@ ARCTargetMachine::ARCTargetMachine(const Target &T, const Triple &TT, std::optional<Reloc::Model> RM, std::optional<CodeModel::Model> CM, CodeGenOptLevel OL, bool JIT) - : CodeGenCommonTMImpl(T, - "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-" - "f32:32:32-i64:32-f64:32-a:0:32-n32", - TT, CPU, FS, Options, getRelocModel(RM), - getEffectiveCodeModel(CM, CodeModel::Small), OL), + : CodeGenTargetMachineImpl( + T, + "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-" + "f32:32:32-i64:32-f64:32-a:0:32-n32", + TT, CPU, FS, Options, getRelocModel(RM), + getEffectiveCodeModel(CM, CodeModel::Small), OL), TLOF(std::make_unique<TargetLoweringObjectFileELF>()), Subtarget(TT, std::string(CPU), std::string(FS), *this) { initAsmInfo(); diff --git a/llvm/lib/Target/CSKY/CSKYTargetMachine.cpp b/llvm/lib/Target/CSKY/CSKYTargetMachine.cpp index c256bb2..ae6ef89 100644 --- a/llvm/lib/Target/CSKY/CSKYTargetMachine.cpp +++ b/llvm/lib/Target/CSKY/CSKYTargetMachine.cpp @@ -54,9 +54,9 @@ CSKYTargetMachine::CSKYTargetMachine(const Target &T, const Triple &TT, std::optional<Reloc::Model> RM, std::optional<CodeModel::Model> CM, CodeGenOptLevel OL, bool JIT) - : CodeGenCommonTMImpl(T, computeDataLayout(TT), TT, CPU, FS, Options, - RM.value_or(Reloc::Static), - getEffectiveCodeModel(CM, CodeModel::Small), OL), + : CodeGenTargetMachineImpl(T, computeDataLayout(TT), TT, CPU, FS, Options, + RM.value_or(Reloc::Static), + getEffectiveCodeModel(CM, CodeModel::Small), OL), TLOF(std::make_unique<CSKYELFTargetObjectFile>()) { initAsmInfo(); } diff --git a/llvm/lib/Target/DirectX/DirectXTargetMachine.cpp b/llvm/lib/Target/DirectX/DirectXTargetMachine.cpp index 914aee4..655427a 100644 --- a/llvm/lib/Target/DirectX/DirectXTargetMachine.cpp +++ b/llvm/lib/Target/DirectX/DirectXTargetMachine.cpp @@ -108,7 +108,7 @@ DirectXTargetMachine::DirectXTargetMachine(const Target &T, const Triple &TT, std::optional<Reloc::Model> RM, std::optional<CodeModel::Model> CM, CodeGenOptLevel OL, bool JIT) - : CodeGenCommonTMImpl( + : CodeGenTargetMachineImpl( T, "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-" "f32:32-f64:64-n8:16:32:64", diff --git a/llvm/lib/Target/M68k/M68kTargetMachine.cpp b/llvm/lib/Target/M68k/M68kTargetMachine.cpp index ce5970c..2f5a2e8 100644 --- a/llvm/lib/Target/M68k/M68kTargetMachine.cpp +++ b/llvm/lib/Target/M68k/M68kTargetMachine.cpp @@ -100,9 +100,9 @@ M68kTargetMachine::M68kTargetMachine(const Target &T, const Triple &TT, std::optional<Reloc::Model> RM, std::optional<CodeModel::Model> CM, CodeGenOptLevel OL, bool JIT) - : CodeGenCommonTMImpl(T, computeDataLayout(TT, CPU, Options), TT, CPU, FS, - Options, getEffectiveRelocModel(TT, RM), - ::getEffectiveCodeModel(CM, JIT), OL), + : CodeGenTargetMachineImpl(T, computeDataLayout(TT, CPU, Options), TT, CPU, + FS, Options, getEffectiveRelocModel(TT, RM), + ::getEffectiveCodeModel(CM, JIT), OL), TLOF(std::make_unique<M68kELFTargetObjectFile>()), Subtarget(TT, CPU, FS, *this) { initAsmInfo(); diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index a388b44..e547e62 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -805,8 +805,8 @@ MipsTargetELFStreamer::MipsTargetELFStreamer(MCStreamer &S, ELFObjectWriter &W = getStreamer().getWriter(); // It's possible that MCObjectFileInfo isn't fully initialized at this point - // due to an initialization order problem where CodeGenCommonTMImpl creates - // the target streamer before TargetLoweringObjectFile calls + // due to an initialization order problem where CodeGenTargetMachineImpl + // creates the target streamer before TargetLoweringObjectFile calls // InitializeMCObjectFileInfo. There doesn't seem to be a single place that // covers all cases so this statement covers most cases and direct object // emission must call setPic() once MCObjectFileInfo has been initialized. The diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 1f68663..2b64ab9 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -345,8 +345,8 @@ static ScheduleDAGInstrs *createPPCPostMachineScheduler( // The FeatureString here is a little subtle. We are modifying the feature // string with what are (currently) non-function specific overrides as it goes -// into the CodeGenCommonTMImpl constructor and then using the stored value in -// the Subtarget constructor below it. +// into the CodeGenTargetMachineImpl constructor and then using the stored value +// in the Subtarget constructor below it. PPCTargetMachine::PPCTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.h b/llvm/lib/Target/SystemZ/SystemZTargetMachine.h index 75b6220..e8eeb85 100644 --- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.h +++ b/llvm/lib/Target/SystemZ/SystemZTargetMachine.h @@ -44,7 +44,7 @@ public: // attributes of each function. const SystemZSubtarget *getSubtargetImpl() const = delete; - // Override LLVMTargetMachine + // Override CodeGenTargetMachineImpl TargetPassConfig *createPassConfig(PassManagerBase &PM) override; TargetTransformInfo getTargetTransformInfo(const Function &F) const override; diff --git a/llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp b/llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp index 7fb998d..634ada3 100644 --- a/llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp +++ b/llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp @@ -50,9 +50,10 @@ XtensaTargetMachine::XtensaTargetMachine(const Target &T, const Triple &TT, std::optional<CodeModel::Model> CM, CodeGenOptLevel OL, bool JIT, bool IsLittle) - : CodeGenCommonTMImpl(T, computeDataLayout(TT, CPU, Options, IsLittle), TT, - CPU, FS, Options, getEffectiveRelocModel(JIT, RM), - getEffectiveCodeModel(CM, CodeModel::Small), OL), + : CodeGenTargetMachineImpl(T, computeDataLayout(TT, CPU, Options, IsLittle), + TT, CPU, FS, Options, + getEffectiveRelocModel(JIT, RM), + getEffectiveCodeModel(CM, CodeModel::Small), OL), TLOF(std::make_unique<TargetLoweringObjectFileELF>()) { initAsmInfo(); } |