[PATCH] D63007: [RISCV] Add RISCV-specific TargetTransformInfo
Sam Elliott via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 08:08:48 PDT 2019
lenary created this revision.
lenary added reviewers: asb, luismarques.
Herald added subscribers: llvm-commits, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar, hiraditya, mgorny.
Herald added a project: LLVM.
LLVM Allows Targets to provide information that guides optimisations
made to LLVM IR. This is done with callbacks on a TargetTransformInfo object.
This patch adds a TargetTransformInfo class for RISC-V. This will allow us to
implement RISC-V specific callbacks as they become necessary.
This commit also adds the getIntImmCost callbacks, and tests them with a simple
constant hoisting test.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D63007
Files:
llvm/lib/Target/RISCV/CMakeLists.txt
llvm/lib/Target/RISCV/LLVMBuild.txt
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/lib/Target/RISCV/RISCVTargetMachine.h
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll
llvm/test/Transforms/ConstantHoisting/RISCV/lit.local.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63007.203560.patch
Type: text/x-patch
Size: 7725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/955e8bb9/attachment.bin>
More information about the llvm-commits
mailing list