[all-commits] [llvm/llvm-project] 1296d2: [Driver] Support -mcmodel= for LoongArch (#72514)
Lu Weining via All-commits
all-commits at lists.llvm.org
Wed Nov 29 22:09:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1296d20adfb0978afe38d67efab9818079d870ca
https://github.com/llvm/llvm-project/commit/1296d20adfb0978afe38d67efab9818079d870ca
Author: Lu Weining <luweining at loongson.cn>
Date: 2023-11-30 (Thu, 30 Nov 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/mcmodel.c
Log Message:
-----------
[Driver] Support -mcmodel= for LoongArch (#72514)
7e42545 rejects unsupported mcmodel options, but normal/medium/extreme
should be supported models for LoongArch according to [gcc
document](https://gcc.gnu.org/onlinedocs/gcc/LoongArch-Options.html).
The mappings among `gcc`, `clang driver`, `clang cc1` and `LLVM (i.e.
llc --code-model=)` are:
| gcc | clang driver | clang cc1 | LLVM |
| ------------- | ------------------ | ----------------- | -------------- |
| normal | normal | small | small |
| medium | medium | medium | medium |
| extreme | extreme | large | large |
Link: https://reviews.llvm.org/D150522
More information about the All-commits
mailing list