[all-commits] [llvm/llvm-project] e95697: [CodeGen][KCFI] Move cfi-type lowering to TargetLo...
Sami Tolvanen via All-commits
all-commits at lists.llvm.org
Tue May 9 11:43:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e9569748def85a2f6bb8066e516a84e6933ef407
https://github.com/llvm/llvm-project/commit/e9569748def85a2f6bb8066e516a84e6933ef407
Author: Sami Tolvanen <samitolvanen at google.com>
Date: 2023-05-09 (Tue, 09 May 2023)
Changed paths:
M llvm/include/llvm/CodeGen/Passes.h
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/include/llvm/InitializePasses.h
M llvm/include/llvm/LinkAllPasses.h
M llvm/lib/CodeGen/CMakeLists.txt
A llvm/lib/CodeGen/KCFI.cpp
M llvm/lib/Target/AArch64/AArch64.h
M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
M llvm/lib/Target/AArch64/AArch64ISelLowering.h
R llvm/lib/Target/AArch64/AArch64KCFI.cpp
M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
M llvm/lib/Target/AArch64/CMakeLists.txt
M llvm/lib/Target/X86/CMakeLists.txt
M llvm/lib/Target/X86/X86.h
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/lib/Target/X86/X86ISelLowering.h
M llvm/lib/Target/X86/X86InstrInfo.cpp
R llvm/lib/Target/X86/X86KCFI.cpp
M llvm/lib/Target/X86/X86TargetMachine.cpp
M llvm/test/CodeGen/AArch64/kcfi-bti.ll
M llvm/test/CodeGen/AArch64/kcfi.ll
M llvm/test/CodeGen/X86/kcfi.ll
Log Message:
-----------
[CodeGen][KCFI] Move cfi-type lowering to TargetLowering
KCFI machine function passes transform indirect calls with a
cfi-type attribute into architecture-specific type checks bundled
together with the calls. Instead of having a separate pass for each
architecture, add a generic machine function pass for KCFI and
move the architecture-specific code that emits the actual check to
TargetLowering. This avoids unnecessary duplication and makes it
easier to add KCFI support to other architectures.
Reviewed By: nickdesaulniers
Differential Revision: https://reviews.llvm.org/D149915
More information about the All-commits
mailing list