[PATCH] D136413: [Clang][LoongArch] Define more LoongArch specific built-in macros
Lu Weining via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 20 18:55:02 PDT 2022
SixWeining created this revision.
SixWeining added reviewers: xen0n, xry111, MaskRay, tangyouling, wangleiat, gonglingqin.
Herald added a subscriber: StephenFan.
Herald added a project: All.
SixWeining requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Define below macros accroding to LoongArch toolchain conventions [1].
__loongarch_grlen
__loongarch_frlen
__loongarch_lp64
__loongarch_hard_float
__loongarch_soft_float
__loongarch_single_float
__loongarch_double_float
Note:
1. __loongarch__ has been defined in earlier patch.
2. __loongarch_arch is not defined because I don't know how TargetInfo
can get the arch name specified by -march.
3. __loongarch_tune will be defined in future.
[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html
Depends on D136146 <https://reviews.llvm.org/D136146>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136413
Files:
clang/lib/Basic/Targets/LoongArch.cpp
clang/lib/Basic/Targets/LoongArch.h
clang/test/Preprocessor/init-loongarch.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136413.469451.patch
Type: text/x-patch
Size: 6818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221021/b4146113/attachment.bin>
More information about the cfe-commits
mailing list