[llvm] [AIX] Add git revision to .file string (PR #88164)

David Tenty via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 10 12:25:45 PDT 2024


================
@@ -0,0 +1,13 @@
+; Check that the git revision is contained in the assembly/object files
+
+; RUN: cd %S && git rev-parse HEAD > %t
+
+; RUN: llc < %s > %t.a.o
+; RUN: sed -n -e "/$(cat %t)/p" %t.a.o
+
+; RUN: llc -filetype=obj < %s > %t.b.o
+; RUN: sed -n -e "/$(cat %t)/p" %t.b.o
+
+source_filename = "git_revision.cpp"
+target datalayout = "E-m:a-Fi64-i64:64-n32:64-S128-v256:256:256-v512:512:512"
+target triple = "powerpc64-ibm-aix7.2.0.0"
----------------
daltenty wrote:

IIUC, this change isn't really this platform specific (i.e. it'll get added for any target where `MAI->hasFourStringsDotFile()` returns true). 

You should probably get rid of this triple string and add a couple of target variations instead to cover most such targets.

https://github.com/llvm/llvm-project/pull/88164


More information about the llvm-commits mailing list