[X86] Fix missing HasLAHFSAHF64 predicate
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 10 Dec 2022 21:28:15 +0000 (21:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 11 Dec 2022 10:02:00 +0000 (10:02 +0000)
This was declared in FeatureLAHFSAHF64 but never defined.

Noticed while preparing to add Unsupported features handling to X86 scheduler models.

llvm/lib/Target/X86/X86InstrInfo.td

index 65431d5..34f9d30 100644 (file)
@@ -973,6 +973,7 @@ def HasPREFETCHI : Predicate<"Subtarget->hasPREFETCHI()">;
 def HasPrefetchW : Predicate<"Subtarget->hasPrefetchW()">;
 def HasPREFETCHWT1 : Predicate<"Subtarget->hasPREFETCHWT1()">;
 def HasLAHFSAHF  : Predicate<"Subtarget->hasLAHFSAHF()">;
+def HasLAHFSAHF64 : Predicate<"Subtarget->hasLAHFSAHF64()">;
 def HasMWAITX    : Predicate<"Subtarget->hasMWAITX()">;
 def HasCLZERO    : Predicate<"Subtarget->hasCLZERO()">;
 def HasCLDEMOTE  : Predicate<"Subtarget->hasCLDEMOTE()">;