[clang] [llvm] [HIP][HIPSTDPAR][NFC] Re-order & adapt `hipstdpar` specific passes (PR #134753)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Apr 12 04:16:11 PDT 2025
    
    
  
================
@@ -0,0 +1,21 @@
+// Test that the accelerator code selection pass only gets invoked after linking
+
+// Ensure Pass HipStdParAcceleratorCodeSelectionPass is not invoked in PreLink.
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -mllvm -amdgpu-enable-hipstdpar -flto -emit-llvm-bc -fcuda-is-device -fdebug-pass-manager \
+// RUN:  %s -o - 2>&1 | FileCheck --check-prefix=HIPSTDPAR-PRE %s
+// HIPSTDPAR-PRE-NOT: Running pass: HipStdParAcceleratorCodeSelectionPass
----------------
arsenm wrote:
Better to use -NEXT checks with the passes before and after it 
https://github.com/llvm/llvm-project/pull/134753
    
    
More information about the llvm-commits
mailing list