Displaying 4 results from an estimated 4 matches for "seen_reg".
Did you mean:
seen_regs
2006 Aug 14
2
[LLVMdev] Folding instructions
...hineInstr * mi, KillingSites_Fer & ks) {
if(mi->getOpcode() != TargetInstrInfo::PHI) {
/// This set helps to avoid allocating the same use twice. Even if a
/// virtual is used twice or more in an instruction, it only needs one
/// physical register.
std::set<unsigned> seen_regs;
for(unsigned u = 0; u < mi->getNumOperands(); u++) {
const MachineOperand & mo = mi->getOperand(u);
if(mo.isUse() && mo.isRegister() && mo.getReg()) {
if(MRegisterInfo::isVirtualRegister(mo.getReg())) {
unsigned v_reg = mo.getReg();...
2006 Aug 14
0
[LLVMdev] Folding instructions
...ingSites_Fer & ks) {
> if(mi->getOpcode() != TargetInstrInfo::PHI) {
> /// This set helps to avoid allocating the same use twice. Even if a
> /// virtual is used twice or more in an instruction, it only needs one
> /// physical register.
> std::set<unsigned> seen_regs;
> for(unsigned u = 0; u < mi->getNumOperands(); u++) {
> const MachineOperand & mo = mi->getOperand(u);
> if(mo.isUse() && mo.isRegister() && mo.getReg()) {
> if(MRegisterInfo::isVirtualRegister(mo.getReg())) {
> unsigned v_...
2006 Aug 14
0
[LLVMdev] Folding instructions
On Aug 13, 2006, at 11:16 PM, Fernando Magno Quintao Pereira wrote:
>
> Dear LLVMers,
>
> I am trying to fold memory operands in the way that is done in
> RegAllocLocal.cpp, or in LiveIntervalAnalysis.cpp, but I am getting
> errors
> that
> I don't know how to fix. Could someone tell me which steps should I
> take
> in order
> to correctly fold memory
2006 Aug 14
2
[LLVMdev] Folding instructions
Dear LLVMers,
I am trying to fold memory operands in the way that is done in
RegAllocLocal.cpp, or in LiveIntervalAnalysis.cpp, but I am getting errors
that
I don't know how to fix. Could someone tell me which steps should I take
in order
to correctly fold memory operands? The code that I am using is:
const TargetMachine & target_machine =
this->machine_function->getTarget();