[X86] Add HasCLFLUSH pseudo-predicate (Issue #19039)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 8 Dec 2022 13:51:08 +0000 (13:51 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 8 Dec 2022 13:51:14 +0000 (13:51 +0000)
commit527e453a5bf9e1ab1504199c1b71539b34f25f50
tree54faeda0db2d66d511eee1a9fedc0aaa1de92552
parenta414044012920059ac4bfd2756669f2fca3a4b99
[X86] Add HasCLFLUSH pseudo-predicate (Issue #19039)

Similar to what we've done for HasMFence - this puts into place a pseudo-predicate for CLFLUSH instructions that separates it from HasSSE2 to make it easier to use CLFLUSH even when SSE/fpmath has been disabled - technically CLFLUSH has its own CPUID bit, so could be available on x86 cores entirely without SSE, but I don't think thats ever happened or likely to happen.
llvm/lib/Target/X86/X86InstrInfo.td
llvm/lib/Target/X86/X86InstrSSE.td
llvm/lib/Target/X86/X86Subtarget.h
llvm/test/CodeGen/X86/clflush.ll [new file with mode: 0644]