[clang] [llvm] [LFI][X86] Add X86 LFI target and system instruction rewrites (PR #189569)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 01:31:08 PDT 2026


================
@@ -534,6 +534,10 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
     DefineStd(Builder, "i386", Opts);
   }
 
+  if (getTriple().isLFI()) {
+    Builder.defineMacro("__LFI__");
----------------
MaskRay wrote:

drop braces when you reland

https://github.com/llvm/llvm-project/pull/189569


More information about the llvm-commits mailing list