[llvm] r210535 - [AArch64] Emit .ident compiler version attribute.
Chad Rosier
mcrosier at codeaurora.org
Tue Jun 10 07:32:08 PDT 2014
Author: mcrosier
Date: Tue Jun 10 09:32:08 2014
New Revision: 210535
URL: http://llvm.org/viewvc/llvm-project?rev=210535&view=rev
Log:
[AArch64] Emit .ident compiler version attribute.
Patch by Ana Pazos<apazos at codeaurora.org>!
Added:
llvm/trunk/test/CodeGen/AArch64/compiler-ident.ll
Modified:
llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp?rev=210535&r1=210534&r2=210535&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp Tue Jun 10 09:32:08 2014
@@ -96,4 +96,6 @@ AArch64MCAsmInfoELF::AArch64MCAsmInfoELF
ExceptionsType = ExceptionHandling::DwarfCFI;
UseIntegratedAssembler = true;
+
+ HasIdentDirective = true;
}
Added: llvm/trunk/test/CodeGen/AArch64/compiler-ident.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/compiler-ident.ll?rev=210535&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/compiler-ident.ll (added)
+++ llvm/trunk/test/CodeGen/AArch64/compiler-ident.ll Tue Jun 10 09:32:08 2014
@@ -0,0 +1,12 @@
+; RUN: llc -o - %s -mtriple=aarch64-linux-gnu | FileCheck %s
+
+; ModuleID = 'compiler-ident.c'
+target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
+target triple = "aarch64--linux-gnu"
+
+; CHECK: .ident "some LLVM version"
+
+!llvm.ident = !{!0}
+
+!0 = metadata !{metadata !"some LLVM version"}
+
More information about the llvm-commits
mailing list