1. Add support for __declspec(guard(nocf)) (details)
Commit bdd88b7ed3956534a0a71b1ea2bc88c69d48f9b7 by David.Chisnall
Add support for __declspec(guard(nocf))
Summary: Avoid using the `nocf_check` attribute with Control Flow Guard.
Instead, use a new `"guard_nocf"` function attribute to indicate that
checks should not be added on indirect calls within that function. Add
support for
`__declspec(guard(nocf))` following the same syntax as MSVC.
Reviewers: rnk, dmajor, pcc, hans, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: aaron.ballman, tomrittervg, hiraditya, cfe-commits,
Tags: #clang, #llvm
Differential Revision:
The file was modifiedclang/include/clang/Basic/
The file was modifiedllvm/test/CodeGen/AArch64/cfguard-checks.ll
The file was modifiedllvm/test/CodeGen/ARM/cfguard-checks.ll
The file was modifiedclang/lib/CodeGen/CGCall.cpp
The file was addedclang/test/Sema/attr-guard_nocf.c
The file was modifiedllvm/test/CodeGen/X86/cfguard-checks.ll
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was addedclang/test/CodeGenCXX/guard_nocf.cpp
The file was modifiedclang/include/clang/Basic/
The file was addedclang/test/CodeGen/guard_nocf.c
The file was modifiedllvm/lib/Transforms/CFGuard/CFGuard.cpp