[PATCH] D124805: [DirectX backend] Add pass to lower llvm intrinsic into dxil op function.
Xiang Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 14:10:42 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: MaskRay, tstellar, pete, jdoerfert, sheredom, kuhar, antiagainst, nhaehnle, rnk, nikic, beanz, pow2clk.
Herald added subscribers: StephenFan, hiraditya, mgorny.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
A new pass DXILOpLowering was added.
It will scan all llvm intrinsics, create dxil op function if it can map to dxil op function.
Then translate call instructions on the intrinsic into call on dxil op function.
dxil op function will add i32 argument to the begining of args for dxil opcode.
So cannot use setCalledFunction to update the call instruction on intrinsic.
This commit only support sin to start the work.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124805
Files:
llvm/lib/Target/DirectX/CMakeLists.txt
llvm/lib/Target/DirectX/DXILConstants.h
llvm/lib/Target/DirectX/DXILOpLowering.cpp
llvm/lib/Target/DirectX/DirectX.h
llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
llvm/test/CodeGen/DirectX/sin.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124805.426518.patch
Type: text/x-patch
Size: 12831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220502/70765b35/attachment.bin>
More information about the llvm-commits
mailing list