Skip to content

Commit eac305f

Browse files
committed
[AArch64] Add FPAC feature.
1 parent 224c009 commit eac305f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/lib/Target/AArch64/AArch64.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ def FeatureMatMulFP32 : SubtargetFeature<"f32mm", "HasMatMulFP32",
459459
def FeatureMatMulFP64 : SubtargetFeature<"f64mm", "HasMatMulFP64",
460460
"true", "Enable Matrix Multiply FP64 Extension (FEAT_F64MM)", [FeatureSVE]>;
461461

462+
def FeatureFPAC : SubtargetFeature<"fpac", "HasFPAC",
463+
"true", "Enable Armv8.6-A Pointer Authentication Faulting enhancement">;
464+
462465
def FeatureXS : SubtargetFeature<"xs", "HasXS",
463466
"true", "Enable Armv8.7-A limited-TLB-maintenance instruction (FEAT_XS)">;
464467

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def HasMatMulFP32 : Predicate<"Subtarget->hasMatMulFP32()">,
260260
AssemblerPredicateWithAll<(all_of FeatureMatMulFP32), "f32mm">;
261261
def HasMatMulFP64 : Predicate<"Subtarget->hasMatMulFP64()">,
262262
AssemblerPredicateWithAll<(all_of FeatureMatMulFP64), "f64mm">;
263+
def HasFPAC : Predicate<"Subtarget->hasFPAC())">,
264+
AssemblerPredicateWithAll<(all_of FeatureFPAC), "fpac">;
263265
def HasXS : Predicate<"Subtarget->hasXS()">,
264266
AssemblerPredicateWithAll<(all_of FeatureXS), "xs">;
265267
def HasWFxT : Predicate<"Subtarget->hasWFxT()">,

0 commit comments

Comments
 (0)