[PATCH] D135411: Add generic KCFI operand bundle lowering

Sami Tolvanen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 17 15:57:17 PST 2022


samitolvanen updated this revision to Diff 476260.
samitolvanen added a comment.

Dropped the CodeGen dependency. Note that Clang already only adds KCFIPass for targets that don't support back-end lowering, so the check in the pass itself was a bit redundant. The existing CodeGen/kcfi.c test also ensures we continue to emit kcfi operand bundles.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135411

Files:
  clang/lib/CodeGen/BackendUtil.cpp
  clang/lib/Driver/ToolChain.cpp
  llvm/include/llvm/InitializePasses.h
  llvm/include/llvm/Transforms/Instrumentation/KCFI.h
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Transforms/Instrumentation/CMakeLists.txt
  llvm/lib/Transforms/Instrumentation/KCFI.cpp
  llvm/test/Transforms/KCFI/kcfi-patchable-function-prefix.ll
  llvm/test/Transforms/KCFI/kcfi.ll
  llvm/utils/gn/secondary/llvm/lib/Transforms/Instrumentation/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135411.476260.patch
Type: text/x-patch
Size: 13282 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221117/59bb7230/attachment.bin>


More information about the cfe-commits mailing list