aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakslevental <maksim.levental@gmail.com>2026-03-25 22:43:02 -0700
committermakslevental <maksim.levental@gmail.com>2026-03-25 22:43:02 -0700
commit2ae8f2f751609f05e10cc678a93fb2673ae8532d (patch)
treeae398459bbae4fe3ca1a06a70bb8310ac52082c0
parent91439985b3a68d685b75230b099a05c1573ca8e9 (diff)
downloadllvm-users/makslevental/undef-pass-name.tar.gz
llvm-users/makslevental/undef-pass-name.tar.bz2
llvm-users/makslevental/undef-pass-name.zip
Add #undef PASS_NAME to all files that define itusers/makslevental/undef-pass-name
43 source files define a PASS_NAME macro that is never undefined, which can leak into subsequent translation units in unity builds. Add #undef PASS_NAME at the end of each file.
-rw-r--r--llvm/lib/CodeGen/TypePromotion.cpp2
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/AArch64/AArch64SRLTDefineSuperRegs.cpp2
-rw-r--r--llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp2
-rw-r--r--llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp2
-rw-r--r--llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/CSKY/CSKYISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/Lanai/LanaiISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/M68k/M68kCollapseMOVEMPass.cpp2
-rw-r--r--llvm/lib/Target/M68k/M68kExpandPseudo.cpp2
-rw-r--r--llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/M68k/M68kInstrInfo.cpp2
-rw-r--r--llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp2
-rw-r--r--llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp2
-rw-r--r--llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp2
-rw-r--r--llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp2
-rw-r--r--llvm/lib/Target/RISCV/RISCVZacasABIFix.cpp2
-rw-r--r--llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/VE/VEISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp2
-rw-r--r--mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp2
-rw-r--r--mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp2
-rw-r--r--mlir/lib/Dialect/Affine/Transforms/LoopCoalescing.cpp2
-rw-r--r--mlir/test/lib/Dialect/Affine/TestAccessAnalysis.cpp2
-rw-r--r--mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp2
-rw-r--r--mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp2
-rw-r--r--mlir/test/lib/Dialect/Affine/TestDecomposeAffineOps.cpp2
-rw-r--r--mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp2
-rw-r--r--mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp2
-rw-r--r--mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp2
43 files changed, 86 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TypePromotion.cpp b/llvm/lib/CodeGen/TypePromotion.cpp
index 77f82b385190..5d25630d927c 100644
--- a/llvm/lib/CodeGen/TypePromotion.cpp
+++ b/llvm/lib/CodeGen/TypePromotion.cpp
@@ -1061,3 +1061,5 @@ PreservedAnalyses TypePromotionPass::run(Function &F,
PA.preserve<LoopAnalysis>();
return PA;
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 9d3e707cccaa..4e327b7e1976 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -8007,3 +8007,5 @@ void AArch64DAGToDAGISel::PreprocessISelDAG() {
SelectionDAGISel::PreprocessISelDAG();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/AArch64/AArch64SRLTDefineSuperRegs.cpp b/llvm/lib/Target/AArch64/AArch64SRLTDefineSuperRegs.cpp
index cb881692c43f..c9ae00cba002 100644
--- a/llvm/lib/Target/AArch64/AArch64SRLTDefineSuperRegs.cpp
+++ b/llvm/lib/Target/AArch64/AArch64SRLTDefineSuperRegs.cpp
@@ -246,3 +246,5 @@ bool AArch64SRLTDefineSuperRegs::runOnMachineFunction(MachineFunction &MF) {
FunctionPass *llvm::createAArch64SRLTDefineSuperRegsPass() {
return new AArch64SRLTDefineSuperRegs();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp b/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
index e5f352a3ed11..f01ae97ed249 100644
--- a/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
+++ b/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
@@ -2514,3 +2514,5 @@ char &llvm::SIMemoryLegalizerID = SIMemoryLegalizerLegacy::ID;
FunctionPass *llvm::createSIMemoryLegalizerPass() {
return new SIMemoryLegalizerLegacy();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp b/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
index 02a5721c70fc..3620441ad5bd 100644
--- a/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
@@ -187,3 +187,5 @@ void ARCDAGToDAGISel::Select(SDNode *N) {
}
SelectCode(N);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 5388bd515089..c123191fdf53 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -5794,3 +5794,5 @@ FunctionPass *llvm::createARMISelDag(ARMBaseTargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new ARMDAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
index 4980910a4952..4f2446bfb3a1 100644
--- a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
+++ b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
@@ -304,3 +304,5 @@ bool Thumb2ITBlock::runOnMachineFunction(MachineFunction &Fn) {
/// createThumb2ITBlockPass - Returns an instance of the Thumb2 IT blocks
/// insertion pass.
FunctionPass *llvm::createThumb2ITBlockPass() { return new Thumb2ITBlock(); }
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp b/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
index 20d35340bd15..3b927fca4602 100644
--- a/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
@@ -597,3 +597,5 @@ FunctionPass *llvm::createAVRISelDag(AVRTargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new AVRDAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp b/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
index dadba52de462..90938e5eefd8 100644
--- a/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
+++ b/llvm/lib/Target/BPF/BPFISelDAGToDAG.cpp
@@ -471,3 +471,5 @@ void BPFDAGToDAGISel::PreprocessTrunc(SDNode *Node,
FunctionPass *llvm::createBPFISelDag(BPFTargetMachine &TM) {
return new BPFDAGToDAGISelLegacy(TM);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/CSKY/CSKYISelDAGToDAG.cpp b/llvm/lib/Target/CSKY/CSKYISelDAGToDAG.cpp
index 22da80b3eddc..79fbcb342c4f 100644
--- a/llvm/lib/Target/CSKY/CSKYISelDAGToDAG.cpp
+++ b/llvm/lib/Target/CSKY/CSKYISelDAGToDAG.cpp
@@ -410,3 +410,5 @@ FunctionPass *llvm::createCSKYISelDag(CSKYTargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new CSKYDAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
index 7b0823249610..ae2eb2592fa2 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
@@ -2523,3 +2523,5 @@ void HexagonDAGToDAGISel::rebalanceAddressTrees() {
RootHeights.clear();
RootWeights.clear();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/Lanai/LanaiISelDAGToDAG.cpp b/llvm/lib/Target/Lanai/LanaiISelDAGToDAG.cpp
index 73a162ffca75..5608bbc82cf2 100644
--- a/llvm/lib/Target/Lanai/LanaiISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Lanai/LanaiISelDAGToDAG.cpp
@@ -360,3 +360,5 @@ void LanaiDAGToDAGISel::selectFrameIndex(SDNode *Node) {
FunctionPass *llvm::createLanaiISelDag(LanaiTargetMachine &TM) {
return new LanaiDAGToDAGISelLegacy(TM);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp b/llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
index 442f0a46a498..58a5a670935f 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
@@ -473,3 +473,5 @@ FunctionPass *llvm::createLoongArchISelDag(LoongArchTargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new LoongArchDAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/M68k/M68kCollapseMOVEMPass.cpp b/llvm/lib/Target/M68k/M68kCollapseMOVEMPass.cpp
index 38770a95d281..7ffd4684832b 100644
--- a/llvm/lib/Target/M68k/M68kCollapseMOVEMPass.cpp
+++ b/llvm/lib/Target/M68k/M68kCollapseMOVEMPass.cpp
@@ -311,3 +311,5 @@ INITIALIZE_PASS(M68kCollapseMOVEM, DEBUG_TYPE, PASS_NAME, false, false)
FunctionPass *llvm::createM68kCollapseMOVEMPass() {
return new M68kCollapseMOVEM();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/M68k/M68kExpandPseudo.cpp b/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
index 8fafff3d52ad..9464e60522bb 100644
--- a/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
+++ b/llvm/lib/Target/M68k/M68kExpandPseudo.cpp
@@ -319,3 +319,5 @@ bool M68kExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
FunctionPass *llvm::createM68kExpandPseudoPass() {
return new M68kExpandPseudo();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp b/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
index 6c667b61f91a..0339686664a3 100644
--- a/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
+++ b/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
@@ -1144,3 +1144,5 @@ bool M68kDAGToDAGISel::SelectInlineAsmMemoryOperand(
return true;
}
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/M68k/M68kInstrInfo.cpp b/llvm/lib/Target/M68k/M68kInstrInfo.cpp
index 3a9f88269f42..ed14e9272d24 100644
--- a/llvm/lib/Target/M68k/M68kInstrInfo.cpp
+++ b/llvm/lib/Target/M68k/M68kInstrInfo.cpp
@@ -949,3 +949,5 @@ INITIALIZE_PASS(M68kGlobalBaseReg, DEBUG_TYPE, PASS_NAME, false, false)
FunctionPass *llvm::createM68kGlobalBaseRegPass() {
return new M68kGlobalBaseReg();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp b/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
index 2834a2ebb0cc..1114a42a470e 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
@@ -462,3 +462,5 @@ void MSP430DAGToDAGISel::Select(SDNode *Node) {
// Select the default instruction
SelectCode(Node);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp
index 36706243232c..53845991d941 100644
--- a/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp
@@ -310,3 +310,5 @@ MipsDAGToDAGISelLegacy::MipsDAGToDAGISelLegacy(
: SelectionDAGISelLegacy(ID, std::move(S)) {}
INITIALIZE_PASS(MipsDAGToDAGISelLegacy, DEBUG_TYPE, PASS_NAME, false, false)
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
index ede1deb5400b..3f22004614c8 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
@@ -2319,3 +2319,5 @@ void NVPTXDAGToDAGISel::selectBR_JT(SDNode *N) {
ReplaceNode(N, BrxEnd);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 016c547821f7..17c0c73d33cc 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -7970,3 +7970,5 @@ FunctionPass *llvm::createPPCISelDag(PPCTargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new PPCDAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp b/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
index 1ee4c66a5bde..c67281293c39 100644
--- a/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
+++ b/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
@@ -327,3 +327,5 @@ PreservedAnalyses RISCVCodeGenPreparePass::run(Function &F,
PA.preserveSet<CFGAnalyses>();
return PA;
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index cd3dcfd0aaaf..89fcf9775649 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -4947,3 +4947,5 @@ RISCVDAGToDAGISelLegacy::RISCVDAGToDAGISelLegacy(RISCVTargetMachine &TM,
ID, std::make_unique<RISCVDAGToDAGISel>(TM, OptLevel)) {}
INITIALIZE_PASS(RISCVDAGToDAGISelLegacy, DEBUG_TYPE, PASS_NAME, false, false)
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp b/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp
index 0fc139a30ae7..26edfef1e59e 100644
--- a/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp
+++ b/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp
@@ -128,3 +128,5 @@ bool RISCVIndirectBranchTracking::runOnMachineFunction(MachineFunction &MF) {
return Changed;
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp b/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp
index 072694e12308..6f1c820caebb 100644
--- a/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp
+++ b/llvm/lib/Target/RISCV/RISCVLandingPadSetup.cpp
@@ -86,3 +86,5 @@ char RISCVLandingPadSetup::ID = 0;
FunctionPass *llvm::createRISCVLandingPadSetupPass() {
return new RISCVLandingPadSetup();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp b/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
index e3c59d6a3c07..95f2692b8f39 100644
--- a/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
+++ b/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
@@ -1357,3 +1357,5 @@ bool RISCVVLOptimizer::runOnMachineFunction(MachineFunction &MF) {
DemandedVLs.clear();
return MadeChange;
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/RISCV/RISCVZacasABIFix.cpp b/llvm/lib/Target/RISCV/RISCVZacasABIFix.cpp
index 613b434e9222..9c1e5df8d90e 100644
--- a/llvm/lib/Target/RISCV/RISCVZacasABIFix.cpp
+++ b/llvm/lib/Target/RISCV/RISCVZacasABIFix.cpp
@@ -92,3 +92,5 @@ char RISCVZacasABIFix::ID = 0;
FunctionPass *llvm::createRISCVZacasABIFixPass() {
return new RISCVZacasABIFix();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index 55bf40e185ff..227af26c94e5 100644
--- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -403,3 +403,5 @@ bool SparcDAGToDAGISel::SelectInlineAsmMemoryOperand(
FunctionPass *llvm::createSparcISelDag(SparcTargetMachine &TM) {
return new SparcDAGToDAGISelLegacy(TM);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
index a05fdc74e636..1257c4236516 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
@@ -2115,3 +2115,5 @@ void SystemZDAGToDAGISel::PreprocessISelDAG() {
if (MadeChange)
CurDAG->RemoveDeadNodes();
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/VE/VEISelDAGToDAG.cpp b/llvm/lib/Target/VE/VEISelDAGToDAG.cpp
index 823bfbcb34a0..7da42e4123fb 100644
--- a/llvm/lib/Target/VE/VEISelDAGToDAG.cpp
+++ b/llvm/lib/Target/VE/VEISelDAGToDAG.cpp
@@ -339,3 +339,5 @@ SDNode *VEDAGToDAGISel::getGlobalBaseReg() {
FunctionPass *llvm::createVEISelDag(VETargetMachine &TM) {
return new VEDAGToDAGISelLegacy(TM);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
index 4a63be7ce9e3..ed0e08c331b7 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
@@ -643,3 +643,5 @@ FunctionPass *llvm::createWebAssemblyISelDag(WebAssemblyTargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new WebAssemblyDAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index be95168f2de0..6cf197188809 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -6890,3 +6890,5 @@ FunctionPass *llvm::createX86ISelDag(X86TargetMachine &TM,
CodeGenOptLevel OptLevel) {
return new X86DAGToDAGISelLegacy(TM, OptLevel);
}
+
+#undef PASS_NAME
diff --git a/llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp b/llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp
index 931f5955955d..eaa8c382c8b2 100644
--- a/llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp
+++ b/llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp
@@ -247,3 +247,5 @@ bool XCoreDAGToDAGISel::tryBRIND(SDNode *N) {
CurDAG->SelectNodeTo(N, XCore::BAU_1r, MVT::Other, nextAddr, Glue);
return true;
}
+
+#undef PASS_NAME
diff --git a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
index fef78a46d69f..04f6a36a772d 100644
--- a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
+++ b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
@@ -322,3 +322,5 @@ void mlir::cf::registerConvertControlFlowToLLVMInterface(
dialect->addInterfaces<ControlFlowToLLVMDialectInterface>();
});
}
+
+#undef PASS_NAME
diff --git a/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp b/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
index 6546e74514c7..98af594b1030 100644
--- a/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
+++ b/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
@@ -890,3 +890,5 @@ void mlir::registerConvertFuncToLLVMInterface(DialectRegistry &registry) {
dialect->addInterfaces<FuncToLLVMDialectInterface>();
});
}
+
+#undef PASS_NAME
diff --git a/mlir/lib/Dialect/Affine/Transforms/LoopCoalescing.cpp b/mlir/lib/Dialect/Affine/Transforms/LoopCoalescing.cpp
index 870db0b1debd..ac987a041014 100644
--- a/mlir/lib/Dialect/Affine/Transforms/LoopCoalescing.cpp
+++ b/mlir/lib/Dialect/Affine/Transforms/LoopCoalescing.cpp
@@ -48,3 +48,5 @@ std::unique_ptr<OperationPass<func::FuncOp>>
mlir::affine::createLoopCoalescingPass() {
return std::make_unique<LoopCoalescingPass>();
}
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Affine/TestAccessAnalysis.cpp b/mlir/test/lib/Dialect/Affine/TestAccessAnalysis.cpp
index 751302550092..f79d4e400b70 100644
--- a/mlir/test/lib/Dialect/Affine/TestAccessAnalysis.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestAccessAnalysis.cpp
@@ -88,3 +88,5 @@ void registerTestAffineAccessAnalysisPass() {
PassRegistration<TestAccessAnalysis>();
}
} // namespace mlir
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp b/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp
index 2a54e0c28f71..460bfda670c7 100644
--- a/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp
@@ -153,3 +153,5 @@ void registerTestAffineDataCopyPass() {
PassRegistration<TestAffineDataCopy>();
}
} // namespace mlir
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp b/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
index 7e4a3ca7b7c7..dcea564ec772 100644
--- a/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
@@ -64,3 +64,5 @@ void registerTestAffineLoopUnswitchingPass() {
PassRegistration<TestAffineLoopUnswitching>();
}
} // namespace mlir
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Affine/TestDecomposeAffineOps.cpp b/mlir/test/lib/Dialect/Affine/TestDecomposeAffineOps.cpp
index 429784f26e03..ecd7ec89c644 100644
--- a/mlir/test/lib/Dialect/Affine/TestDecomposeAffineOps.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestDecomposeAffineOps.cpp
@@ -55,3 +55,5 @@ void registerTestDecomposeAffineOpPass() {
PassRegistration<TestDecomposeAffineOps>();
}
} // namespace mlir
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp b/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp
index 8bab9a0ef55b..48b25d1f57c7 100644
--- a/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp
@@ -79,3 +79,5 @@ void registerTestLoopPermutationPass() {
PassRegistration<TestLoopPermutation>();
}
} // namespace mlir
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp b/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
index 3569a7399ad0..bd63caab5806 100644
--- a/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp
@@ -234,3 +234,5 @@ void registerTestAffineReifyValueBoundsPass() {
PassRegistration<TestReifyValueBounds>();
}
} // namespace mlir
+
+#undef PASS_NAME
diff --git a/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp b/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
index 5f93035cac40..65028153f830 100644
--- a/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
+++ b/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
@@ -226,3 +226,5 @@ void registerTosaTestQuantUtilAPIPass() {
PassRegistration<TosaTestQuantUtilAPI>();
}
} // namespace mlir
+
+#undef PASS_NAME