search for: unaryconstantexpr

Displaying 4 results from an estimated 4 matches for "unaryconstantexpr".

2006 Apr 26
2
[LLVMdev] finding implicit casts
I'm trying to find all the implicit casts in a program compiled with llvm-gcc. What I've been doing is for each function taking all the instruction and going through each of their operands (and the opreands of their operands etc...) and checking to see if any are an instance of UnaryConstantExpr. When I encounter such an instance, I determine whether the type of that value and its 0th operand differ, if they do its an implicit cast. I do basically the same procedure for the the global variables. Is this the best approach to take or is there a better way of going about this? I've asked...
2006 Apr 26
0
[LLVMdev] finding implicit casts
...no good way to tell the difference between an implicit or explicit cast. > What I've been doing is for each function taking all the > instruction and going through each of their operands (and the opreands of > their operands etc...) and checking to see if any are an instance of > UnaryConstantExpr. When I encounter such an instance, I determine whether > the type of that value and its 0th operand differ, if they do its an > implicit cast. I do basically the same procedure for the the global > variables. Is this the best approach to take or is there a better way of > going about t...
2006 Apr 26
1
[LLVMdev] finding implicit casts
...ference between an implicit or explicit cast. > > > What I've been doing is for each function taking all the > > instruction and going through each of their operands (and the opreands > of > > their operands etc...) and checking to see if any are an instance of > > UnaryConstantExpr. When I encounter such an instance, I determine > whether > > the type of that value and its 0th operand differ, if they do its an > > implicit cast. I do basically the same procedure for the the global > > variables. Is this the best approach to take or is there a better way o...
2020 Aug 10
3
resolve the name of an ifunc resolver function
Hi, I just spent 4 hours trying to find a way to get the name of the resolver function of a ifunc definition ... :-( and with all that time I didnt event get far: for (GlobalIFunc &IF : M.ifuncs()) { StringRef ifunc_name = IF.getName(); Constant *r = IF.getResolver(); But how do I get to the (Function*) or function name of the resolver from there? I tried everything with the Constant