search for: opreands

Displaying 6 results from an estimated 6 matches for "opreands".

Did you mean: operands
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 th...
2005 Sep 07
4
[LLVMdev] LiveIntervals, replace register with representative register?
I don't understand the following code snippet in LiveIntervalAnalysis.cpp. Why changing the type of the opreand from a virtual register to a machine register? The register number (reg) is still a virtual register index (>1024). bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { // perform a final pass over the instructions and compute spill // weights, coalesce
2006 Apr 26
0
[LLVMdev] finding implicit casts
...at are implicit in the C code into explicit casts in the LLVM... which means that there is 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 glo...
2006 Apr 26
1
[LLVMdev] finding implicit casts
...C code into explicit > casts in the LLVM... which means that there is 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...
2005 Sep 07
0
[LLVMdev] LiveIntervals, replace register with representative register?
On Wed, 7 Sep 2005, Tzu-Chien Chiu wrote: > I don't understand the following code snippet in LiveIntervalAnalysis.cpp. > > Why changing the type of the opreand from a virtual register to a > machine register? The register number (reg) is still a virtual > register index (>1024). This code isn't actually replacing the virtual register with a physreg. As you noticed, it
2005 Sep 07
0
[LLVMdev] LiveIntervals, replace register with representative register?
On Wed, 2005-09-07 at 15:09 +0800, Tzu-Chien Chiu wrote: > I don't understand the following code snippet in LiveIntervalAnalysis.cpp. > > Why changing the type of the opreand from a virtual register to a > machine register? The register number (reg) is still a virtual > register index (>1024). > > > bool LiveIntervals::runOnMachineFunction(MachineFunction &fn)