Displaying 1 result from an estimated 1 matches for "unionvar".
2014 Sep 01
2
[LLVMdev] Instrumenting Various Types Using Single Instrumentation Function
...n
functions for different data types.
Can I cast say i32 value to NumericType value in my instrumentation code,
without inserting additional instructions in my benchmark code. I tried
inserting bitcast instructions and it doesn't work for me...
if(!CastInst::isCastable(Lvals[j]->getType(), UnionVar->getType())){
errs()<<"CAST TO NumericType NOT POSSIBLE\n";
exit(0);
}
CastInst *I = CastInst::CreateZExtOrBitCast(Lvals[j],
UnionVar->getType(), "", F);
Is this even possible or some other method will be better?
Thanks!
Manish
-------------- n...