Displaying 2 results from an estimated 2 matches for "__needsafloatty_here__".
2015 May 17
2
[LLVMdev] copy value of a global's data field to another global
...e an argumrnt of an instruction like:
I->setOperand(someArgumentIndex,pConst);
However, getGetElementPtr returns a pointerType, which holds the actual type
as sub_type.
This is a problem when I want to use the data from one global for the
initializer of another
pGvar->setInitializer(__NeedsAFloatTy_here__); //not pointerTy
So what I'm trying to do is copy some data-fields of one global to another.
I know the 'index-trace' used in getGetElementPtr, but I need the actual
type, not 'covered' by a pointerType.
Thank You!
Alexander
2015 May 18
2
[LLVMdev] copy value of a global's data field to another global
...tIndex,pConst);
>>
>> However, getGetElementPtr returns a pointerType, which holds the actual
>> type
>> as sub_type.
>> This is a problem when I want to use the data from one global for the
>> initializer of another
>>
>> pGvar->setInitializer(__NeedsAFloatTy_here__); //not pointerTy
>>
>> So what I'm trying to do is copy some data-fields of one global to
>> another. I know the 'index-trace' used in getGetElementPtr, but I need
>> the actual type, not 'covered' by a pointerType.
>>
>
> Perhaps you want g...