[PATCH] D76900: Enable IBT(Indirect Branch Tracking) in JIT with CET(Control-flow Enforcement Technology)

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 26 19:35:24 PDT 2020


LuoYuanke added inline comments.


================
Comment at: llvm/lib/Target/X86/X86TargetMachine.cpp:217
           OL),
-      TLOF(createTLOF(getTargetTriple())) {
+      TLOF(createTLOF(getTargetTriple())), IsJIT(JIT) {
   // On PS4, the "return address" of a 'noreturn' call must still be within
----------------
Can you add an test for it? Where to pass the JIT information to compiler?


================
Comment at: llvm/lib/Target/X86/X86TargetMachine.h:34
+  // True if this is used in JIT.
+  bool IsJIT;
 
----------------
What's the default value for IsJIT?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76900/new/

https://reviews.llvm.org/D76900





More information about the llvm-commits mailing list