Displaying 3 results from an estimated 3 matches for "instrument_store".
2017 Jun 11
2
Force casting a Value*
...signed int 64 bit */
// Pass on this value to external function
IRBuilder<> builder(&I);
builder.SetInsertPoint(&B, ++builder.GetInsertPoint());
Constant *func =
F.getParent()->getOrInsertFunction("instrument_store",
Type::getVoidTy(Ctx), Type::getInt8PtrTy(Ctx), NULL);
Value* args[] = {var_value};
builder.CreateCall(func, args);
}
==================================================
To reiterate, I want to wrap up the run-time value (var_value) as a Value*
and c...
2017 Jun 12
2
Force casting a Value*
...ss on this value to external function
>> IRBuilder<> builder(&I);
>> builder.SetInsertPoint(&B,
>> ++builder.GetInsertPoint());
>> Constant *func = F.getParent()->getOrInsertFunc
>> tion("instrument_store",
>>
>> Type::getVoidTy(Ctx), Type::getInt8PtrTy(Ctx), NULL);
>> Value* args[] = {var_value};
>> builder.CreateCall(func, args);
>> }
>>
>> ==================================================
>>
>> To...
2017 Jun 11
2
Force casting a Value*
On 11 June 2017 at 11:32, Nikodemus Siivola <nikodemus at random-state.net>
wrote:
> On Sun, Jun 11, 2017 at 7:49 PM, Dipanjan Das via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>>
>> On 11 June 2017 at 07:53, David Blaikie <dblaikie at gmail.com> wrote:
>>
>>> Sounds like you're looking for reinterpret_cast: http://en.cp