[PATCH] D64495: [AArch64] Implement __jcvt intrinsic from Armv8.3-A
Kyrill Tkachov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 07:30:38 PDT 2019
ktkachov created this revision.
ktkachov added reviewers: t.p.northover, SjoerdMeijer, pbarrio, momchil.velikov.
ktkachov added projects: LLVM, clang.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya, kristof.beyls, javed.absar.
The __jcvt intrinsic defined in ACLE [1] is available when __ARM_FEATURE_JCVT is defined.
This change introduces the AArch64 intrinsic, wires it up to the instruction and a new clang builtin function.
The __ARM_FEATURE_JCVT macro is now defined when an Armv8.3-A or higher target is used.
I've implemented the target detection logic in Clang so that this feature is enabled for architectures from armv8.3-a onwards (so -march=armv8.4-a also enables this, for example).
make check-all didn't show any new failures.
[1] https://developer.arm.com/docs/101028/latest/data-processing-intrinsics
N.B. This is my first patch to LLVM. Apologies if some code looks weird. If this is okay can somebody please apply it for me?
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64495
Files:
clang/include/clang/Basic/BuiltinsAArch64.def
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/AArch64.h
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Headers/arm_acle.h
clang/test/CodeGen/arm_acle.c
clang/test/CodeGen/builtins-arm64.c
llvm/include/llvm/IR/IntrinsicsAArch64.td
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/CodeGen/AArch64/fjcvtzs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64495.208951.patch
Type: text/x-patch
Size: 8621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/0651447d/attachment.bin>
More information about the llvm-commits
mailing list