[llvm] 7be3cac - [X86] Move x86 specific create*Pass Functions to X86.h
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Oct 25 00:12:04 PDT 2025
    
    
  
Author: Aiden Grossman
Date: 2025-10-25T00:12:00-07:00
New Revision: 7be3cac735b272ffa9b89e36c8c7b7a5d333cf40
URL: https://github.com/llvm/llvm-project/commit/7be3cac735b272ffa9b89e36c8c7b7a5d333cf40
DIFF: https://github.com/llvm/llvm-project/commit/7be3cac735b272ffa9b89e36c8c7b7a5d333cf40.diff
LOG: [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: https://github.com/llvm/llvm-project/pull/165075
Added: 
    
Modified: 
    llvm/include/llvm/CodeGen/Passes.h
    llvm/lib/Target/X86/X86.h
Removed: 
    
################################################################################
diff  --git a/llvm/include/llvm/CodeGen/Passes.h b/llvm/include/llvm/CodeGen/Passes.h
index 9fddd47b18965..a8525554b142e 100644
--- a/llvm/include/llvm/CodeGen/Passes.h
+++ b/llvm/include/llvm/CodeGen/Passes.h
@@ -610,14 +610,6 @@ LLVM_ABI ModulePass *createCheckDebugMachineModulePass();
 /// caller saved registers with stack slots.
 LLVM_ABI extern char &FixupStatepointCallerSavedID;
 
-/// The pass transforms load/store <256 x i32> to AMX load/store intrinsics
-/// or split the data to two <128 x i32>.
-LLVM_ABI FunctionPass *createX86LowerAMXTypePass();
-
-/// The pass transforms amx intrinsics to scalar operation if the function has
-/// optnone attribute or it is O0.
-LLVM_ABI FunctionPass *createX86LowerAMXIntrinsicsPass();
-
 /// When learning an eviction policy, extract score(reward) information,
 /// otherwise this does nothing
 LLVM_ABI FunctionPass *createRegAllocScoringPass();
diff  --git a/llvm/lib/Target/X86/X86.h b/llvm/lib/Target/X86/X86.h
index 6261fadf10a7a..706ab2b62bc1b 100644
--- a/llvm/lib/Target/X86/X86.h
+++ b/llvm/lib/Target/X86/X86.h
@@ -160,6 +160,14 @@ FunctionPass *createX86PartialReductionPass();
 /// // Analyzes and emits pseudos to support Win x64 Unwind V2.
 FunctionPass *createX86WinEHUnwindV2Pass();
 
+/// The pass transforms load/store <256 x i32> to AMX load/store intrinsics
+/// or split the data to two <128 x i32>.
+FunctionPass *createX86LowerAMXTypePass();
+
+/// The pass transforms amx intrinsics to scalar operation if the function has
+/// optnone attribute or it is O0.
+FunctionPass *createX86LowerAMXIntrinsicsPass();
+
 InstructionSelector *createX86InstructionSelector(const X86TargetMachine &TM,
                                                   const X86Subtarget &,
                                                   const X86RegisterBankInfo &);
        
    
    
More information about the llvm-commits
mailing list