| commit | 81ba006296680c9d62aba12c5e3f083e2f7c595d | [log] [tgz] |
|---|---|---|
| author | Fangrui Song <i@maskray.me> | Sun Mar 16 16:18:14 2025 -0700 |
| committer | GitHub <noreply@github.com> | Sun Mar 16 16:18:14 2025 -0700 |
| tree | a423932f9348e356acb98ef044c79a2f9820010a | |
| parent | 91328dbae986dfa93cf2acef0a93361fd5ced66d [diff] |
[X86] nocf_check: disable tail call When a function pointer is annotated with `void (*fptr)(void) __attribute__((nocf_check));`, calling it should use the NOTRACK prefix, as the callee may not contain an ENDBR. https://reviews.llvm.org/D41879 implemented NOTRACK variants for X86ISD::CALL and ISD::BRIND but not for TCRETURN. Given that there are so many tail call variants (e.g. conditional tailcall https://reviews.llvm.org/D29856), let's just disable tailcall. While nocf_check has some uses within the Linux kernel, it isn't a popular attribute. Fix #91228 Pull Request: https://github.com/llvm/llvm-project/pull/131487
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.