Skip to content

Commit 7be3cac

Browse files
[X86] Move x86 specific create*Pass Functions to X86.h
There are no other target specific passes in Passes.h and these really belong inside x86.h to be consistent with other targets. Reviewers: arsenm, phoebewang, RKSimon, topperc Reviewed By: arsenm Pull Request: #165075
1 parent f7585ad commit 7be3cac

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

llvm/include/llvm/CodeGen/Passes.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,6 @@ LLVM_ABI ModulePass *createCheckDebugMachineModulePass();
610610
/// caller saved registers with stack slots.
611611
LLVM_ABI extern char &FixupStatepointCallerSavedID;
612612

613-
/// The pass transforms load/store <256 x i32> to AMX load/store intrinsics
614-
/// or split the data to two <128 x i32>.
615-
LLVM_ABI FunctionPass *createX86LowerAMXTypePass();
616-
617-
/// The pass transforms amx intrinsics to scalar operation if the function has
618-
/// optnone attribute or it is O0.
619-
LLVM_ABI FunctionPass *createX86LowerAMXIntrinsicsPass();
620-
621613
/// When learning an eviction policy, extract score(reward) information,
622614
/// otherwise this does nothing
623615
LLVM_ABI FunctionPass *createRegAllocScoringPass();

llvm/lib/Target/X86/X86.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ FunctionPass *createX86PartialReductionPass();
160160
/// // Analyzes and emits pseudos to support Win x64 Unwind V2.
161161
FunctionPass *createX86WinEHUnwindV2Pass();
162162

163+
/// The pass transforms load/store <256 x i32> to AMX load/store intrinsics
164+
/// or split the data to two <128 x i32>.
165+
FunctionPass *createX86LowerAMXTypePass();
166+
167+
/// The pass transforms amx intrinsics to scalar operation if the function has
168+
/// optnone attribute or it is O0.
169+
FunctionPass *createX86LowerAMXIntrinsicsPass();
170+
163171
InstructionSelector *createX86InstructionSelector(const X86TargetMachine &TM,
164172
const X86Subtarget &,
165173
const X86RegisterBankInfo &);

0 commit comments

Comments
 (0)