Displaying 1 result from an estimated 1 matches for "__amdil_id_int".
2010 Oct 07
1
[LLVMdev] Target specific type modifications
Is there a way to modify the LLVM-IR type of a pointer, cascading the change to all uses, without causing code duplication?
For example,
define void @test (i32 addrspace(1)* nocapture %a, i32 addrspace(1)* nocapture %b) nounwind {
entry:
%0 = tail call <4 x i32> @__amdil_id_int() nounwind ; <<4 x i32>> [#uses=1]
%1 = extractelement <4 x i32> %0, i32 0 ; <i32> [#uses=2]
%arrayidx = getelementptr i32 addrspace(1)* %a, i32 %1 ; <i32 addrspace(1)*> [#uses=1]
%arrayidx4 = getelementptr i32 addrspace(1)* %b, i32 %1 ; <i32 addrspace...