[llvm] c774fd5 - LoongArch: Update for MachineFunctionInfo construction change
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 14:26:34 PST 2022
Author: Matt Arsenault
Date: 2022-12-21T17:26:16-05:00
New Revision: c774fd55008dbd2be51bc25f4c6f534978e73d95
URL: https://github.com/llvm/llvm-project/commit/c774fd55008dbd2be51bc25f4c6f534978e73d95
DIFF: https://github.com/llvm/llvm-project/commit/c774fd55008dbd2be51bc25f4c6f534978e73d95.diff
LOG: LoongArch: Update for MachineFunctionInfo construction change
Added:
Modified:
llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
llvm/lib/Target/LoongArch/LoongArchTargetMachine.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp b/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
index 1f410885f340..0da39181558b 100644
--- a/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
@@ -94,6 +94,13 @@ LoongArchTargetMachine::getSubtargetImpl(const Function &F) const {
return I.get();
}
+MachineFunctionInfo *LoongArchTargetMachine::createMachineFunctionInfo(
+ BumpPtrAllocator &Allocator, const Function &F,
+ const TargetSubtargetInfo *STI) const {
+ return LoongArchMachineFunctionInfo::create<LoongArchMachineFunctionInfo>(
+ Allocator, F, STI);
+}
+
namespace {
class LoongArchPassConfig : public TargetPassConfig {
public:
diff --git a/llvm/lib/Target/LoongArch/LoongArchTargetMachine.h b/llvm/lib/Target/LoongArch/LoongArchTargetMachine.h
index 5a32ccc5337e..4d71be49a5e0 100644
--- a/llvm/lib/Target/LoongArch/LoongArchTargetMachine.h
+++ b/llvm/lib/Target/LoongArch/LoongArchTargetMachine.h
@@ -40,6 +40,10 @@ class LoongArchTargetMachine : public LLVMTargetMachine {
TargetLoweringObjectFile *getObjFileLowering() const override {
return TLOF.get();
}
+
+ MachineFunctionInfo *
+ createMachineFunctionInfo(BumpPtrAllocator &Allocator, const Function &F,
+ const TargetSubtargetInfo *STI) const override;
};
} // end namespace llvm
More information about the llvm-commits
mailing list