Displaying 2 results from an estimated 2 matches for "hnrklssn".
2020 May 27
2
Custom Instruction Cost Model to LLVM RISC-V Backend
...be from addrspace 1 in
the generated IR. Would this work for automatic variables as well?
In regards to using this in the backend, do I have to just modify the
source, or is it possible to load a library at runtime, like we load a
frontend pass?
On Tue, May 26, 2020 at 12:37 PM Henrik Olsson <hnrklssn at gmail.com> wrote:
> Hi Bandhav,
>
> While I'm unfamiliar with the details of codegen and cost modelling in
> LLVM, it is possible to declare multiple address spaces for a target, mark
> pointers as belonging to a specific address space, and cast between them.
> To quote...
2020 May 26
2
Custom Instruction Cost Model to LLVM RISC-V Backend
Hi,
I’m working on a RISC-V architecture that has instruction costs different
from those in the default cost model. Is there an out-of-source way to
provide llc with custom cost model? Or, does this need a change in LLVM
backend?
Also, the cost model is not totally static. For example, loads from
0x1000-0x1ffc take 1 cycle, whereas loads from address > 0x80000000, take
10-100 cycles. Is it