[PATCH] D21267: [AArch64]Add RAS extensions support in AArch64TargetParser.

jojo.ma via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 11 23:58:16 PDT 2016


jojo created this revision.
jojo added reviewers: SjoerdMeijer, rengolin, bsmith, t.p.northover, chandlerc, jmolloy.
jojo added a subscriber: llvm-commits.
jojo set the repository for this revision to rL LLVM.
jojo changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users".
Herald added subscribers: rengolin, aemerson.

RAS extensions are part of ARMv8.2,now supported in Clang.
Add RAS extensions support in AArch64TargetParser here.And
make AArch64TargetParser used in Clang later.


Repository:
  rL LLVM

http://reviews.llvm.org/D21267

Files:
  include/llvm/Support/AArch64TargetParser.def
  include/llvm/Support/TargetParser.h
  lib/Support/TargetParser.cpp

Index: lib/Support/TargetParser.cpp
===================================================================
--- lib/Support/TargetParser.cpp
+++ lib/Support/TargetParser.cpp
@@ -439,6 +439,8 @@
     Features.push_back("+fullfp16");
   if (Extensions & AArch64::AEK_PROFILE)
     Features.push_back("+spe");
+  if (Extensions & AArch64::AEK_RAS)
+    Features.push_back("+ras");
 
   return true;
 }
Index: include/llvm/Support/TargetParser.h
===================================================================
--- include/llvm/Support/TargetParser.h
+++ include/llvm/Support/TargetParser.h
@@ -154,7 +154,8 @@
   AEK_FP = 0x8,
   AEK_SIMD = 0x10,
   AEK_FP16 = 0x20,
-  AEK_PROFILE = 0x40
+  AEK_PROFILE = 0x40,
+  AEK_RAS = 0x80
 };
 
 StringRef getCanonicalArchName(StringRef Arch);
Index: include/llvm/Support/AArch64TargetParser.def
===================================================================
--- include/llvm/Support/AArch64TargetParser.def
+++ include/llvm/Support/AArch64TargetParser.def
@@ -42,6 +42,7 @@
 AARCH64_ARCH_EXT_NAME("simd",     AArch64::AEK_SIMD,     "+neon",  "-neon")
 AARCH64_ARCH_EXT_NAME("fp16",     AArch64::AEK_FP16,     "+fullfp16",  "-fullfp16")
 AARCH64_ARCH_EXT_NAME("profile",     AArch64::AEK_PROFILE,     "+spe",  "-spe")
+AARCH64_ARCH_EXT_NAME("ras",     AArch64::AEK_RAS,     "+ras",  "-ras")
 #undef AARCH64_ARCH_EXT_NAME
 
 #ifndef AARCH64_CPU_NAME


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21267.60463.patch
Type: text/x-patch
Size: 1391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160612/2a10dc9d/attachment.bin>


More information about the llvm-commits mailing list