Displaying 1 result from an estimated 1 matches for "5315176".
2017 May 29
2
Print 128 bit value at runtime using printf
...ot; in printf .
Please see the code in red below , as I am having a bit difficulty in trying to print the 128 bit value computed at runtime. The code in red is never executed since the value may never be casted to a ConstantInt.
( I saw this approach on SO - https://stackoverflow.com/questions/5315176/llvm-get-constant-integer-back-from-value )
//========= Relevant code below ==========
Value* val = e->codegen() ;
if(!val)
{
return logError("Error evaluating argument to function call");
}
if(val->getType()->isIntegerTy() )
{
if(val->getType()->getIntegerBitWidth...