diff options
author | hev <wangrui@loongson.cn> | 2024-01-06 08:51:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 08:51:59 +0800 |
commit | 4df566290751403f470fea3b27aa148ab1ddf144 (patch) | |
tree | c8c7a6f62ac2d1b84c73461c93e605d6dfa7cda8 /libcxx/src/algorithm.cpp | |
parent | 4f215fdd62d3f014750339eab9a46946b6fb1c4a (diff) | |
download | llvm-4df566290751403f470fea3b27aa148ab1ddf144.zip llvm-4df566290751403f470fea3b27aa148ab1ddf144.tar.gz llvm-4df566290751403f470fea3b27aa148ab1ddf144.tar.bz2 |
[clang] Add per-global code model attribute (#72078)
This patch adds a per-global code model attribute, which can override
the target's code model to access global variables.
Currently, the code model attribute is only supported on LoongArch. This
patch also maps GCC's code model names to LLVM's, which allows for
better compatibility between the two compilers.
Suggested-by: Arthur Eubanks <aeubanks@google.com>
Link:
https://discourse.llvm.org/t/how-to-best-implement-code-model-overriding-for-certain-values/71816
Link:
https://discourse.llvm.org/t/rfc-add-per-global-code-model-attribute/74944
---------
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Diffstat (limited to 'libcxx/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions