[PATCH] D155829: [LoongArch] Add LSX intrinsic support
wanglei via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 05:52:37 PDT 2023
wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, gonglingqin, hev.
Herald added a subscriber: hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
For handling intrinsics, our approach is not simply to match them
one-to-one with instructions. Instead, we lower some intrinsics
to common nodes and then perform matching. The advantage of this
approach is that it allows us to fully utilize the passes available
at the common layer for optimizing purposes.
We perform error checks on the immediate operand of all intrinsics,
rather than waiting until the end to throw exceptions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155829
Files:
llvm/include/llvm/IR/IntrinsicsLoongArch.td
llvm/lib/IR/Function.cpp
llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155829.542466.patch
Type: text/x-patch
Size: 125886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230720/9572f263/attachment-0001.bin>
More information about the llvm-commits
mailing list