Displaying 3 results from an estimated 3 matches for "regitser".
Did you mean:
register
2016 Jan 12
1
Some llvm questions (for tgsi backend)
...seems I need to tackle all 3 of those separately ?
>> 2) Immediates need to be declared with a specific
>> value and then addressed as IMM[x], how would I go about
>> this ?
>>
>
> I would recommend adding a pass that replaced immediates in the code with
> IMM file regitser accesses.
Thinking more about this, I believe I can use the existing const
mechanism for this (and then add a const generation pass to AsmPrinter).
How do I tell llvm to never generate instructions using immediates
and to instead always use the const address space for this ?
>> 3) The get_...
2016 Jan 11
0
Some llvm questions (for tgsi backend)
...1AsmPrinter.html
You probably want to use EmitStartOfAsmFile() for the headers.
> 2) Immediates need to be declared with a specific
> value and then addressed as IMM[x], how would I go about
> this ?
>
I would recommend adding a pass that replaced immediates in the code with
IMM file regitser accesses.
> 3) The get_global_id call needs to be translated into
> simply using the SV[0] "register", how would I go about
> this ?
>
get_global_id should be implemented in libclc with tgsi specific intrinsics
that read from the system value registers.
> 4) The global...
2016 Jan 11
4
Some llvm questions (for tgsi backend)
Hi,
After a few distractions I'm back to work on the llvm tgsi backend. I've
added clang integration and I can now compile a simple opencl program
to something which sort of looks like tgsi.
You can find my latest work on this here:
http://cgit.freedesktop.org/~jwrdegoede/llvm
http://cgit.freedesktop.org/~jwrdegoede/clang
(the latter may still need to sync)
I've a little test