- Dec 31, 2007
-
-
Owen Anderson authored
Machine-level API cleanup instigated by Chris. llvm-svn: 45470
-
Chris Lattner authored
llvm-svn: 45469
-
Chris Lattner authored
llvm-svn: 45468
-
Chris Lattner authored
that "machine" classes are used to represent the current state of the code being compiled. Given this expanded name, we can start moving other stuff into it. For now, move the UsedPhysRegs and LiveIn/LoveOuts vectors from MachineFunction into it. Update all the clients to match. This also reduces some needless #includes, such as MachineModuleInfo from MachineFunction. llvm-svn: 45467
-
Gordon Henriksen authored
llvm-svn: 45466
-
Chris Lattner authored
llvm-svn: 45465
-
Chris Lattner authored
e.g. MO.isMBB() instead of MO.isMachineBasicBlock(). I don't plan on switching everything over, so new clients should just start using the shorter names. Remove old long accessors, switching everything over to use the short accessor: getMachineBasicBlock() -> getMBB(), getConstantPoolIndex() -> getIndex(), setMachineBasicBlock -> setMBB(), etc. llvm-svn: 45464
-
- Dec 30, 2007
-
-
Gordon Henriksen authored
llvm-svn: 45463
-
Chris Lattner authored
- eliminate the auxInfo union, merging it into the contents union. This shaves 4 bytes off MachineOperand on a 32-bit machine. - Use accessors in ctor methods. - Add comments. llvm-svn: 45462
-
Chris Lattner authored
- Eliminate the static "print" method for operands, moving it into MachineOperand::print. - Change various set* methods for register flags to take a bool for the value to set it to. Remove unset* methods. - Group methods more logically by operand flavor in MachineOperand.h llvm-svn: 45461
-
Chris Lattner authored
- Add getParent() accessors. - Move SubReg out of the AuxInfo union, to make way for future changes. - Remove the getImmedValue/setImmedValue methods. - in some MachineOperand::Create* methods, stop initializing fields that are dead. MachineInstr: - Delete one copy of the MachineInstr printing code, now there is only one dump format and one copy of the code. - Make MachineOperand use the parent field to get info about preg register names if no target info is otherwise available. - Move def/use/kill/dead flag printing to the machineoperand printer, so they are always printed for an operand. llvm-svn: 45460
-
Chris Lattner authored
llvm-svn: 45459
-
Chris Lattner authored
llvm-svn: 45458
-
Chris Lattner authored
knows how to print offsets. llvm-svn: 45457
-
Chris Lattner authored
llvm-svn: 45456
-
Chris Lattner authored
llvm-svn: 45455
-
Chris Lattner authored
llvm-svn: 45454
-
Chris Lattner authored
Use MachineOperand::getImm instead of MachineOperand::getImmedValue. Likewise setImmedValue -> setImm llvm-svn: 45453
-
Gordon Henriksen authored
llvm-svn: 45452
-
Gordon Henriksen authored
llvm-svn: 45451
-
Gordon Henriksen authored
llvm-svn: 45450
-
Chris Lattner authored
machineinstr that owns it. llvm-svn: 45449
-
Gordon Henriksen authored
llvm-svn: 45446
-
Chris Lattner authored
llvm-svn: 45445
-
Bill Wendling authored
function, then go ahead and hoist it out of the loop. This is the result: $ cat a.c volatile int G; int A(int N) { for (; N > 0; --N) G++; } $ llc -o - -relocation-model=pic _A: ... LBB1_2: # bb movl L_G$non_lazy_ptr-"L1$pb"(%eax), %esi incl (%esi) incl %edx cmpl %ecx, %edx jne LBB1_2 # bb ... $ llc -o - -relocation-model=pic -machine-licm _A: ... movl L_G$non_lazy_ptr-"L1$pb"(%eax), %eax LBB1_2: # bb incl (%eax) incl %edx cmpl %ecx, %edx jne LBB1_2 # bb ... I'm limiting this to the MOV32rm x86 instruction for now. llvm-svn: 45444
-
Nate Begeman authored
Add codegen support and test for said casts. llvm-svn: 45443
-
Nate Begeman authored
llvm-svn: 45442
-
Nate Begeman authored
stats statistic when clang is built as a dylib. llvm-svn: 45441
-
Nate Begeman authored
llvm-svn: 45440
-
Chris Lattner authored
llvm-svn: 45439
-
Chris Lattner authored
llvm-svn: 45438
-
Chris Lattner authored
llvm-svn: 45437
-
Chris Lattner authored
llvm-svn: 45436
-
Chris Lattner authored
llvm-svn: 45435
-
Chris Lattner authored
llvm-svn: 45434
-
Chris Lattner authored
llvm-svn: 45433
-
Chris Lattner authored
llvm-svn: 45432
-
Chris Lattner authored
llvm-svn: 45431
-
Chris Lattner authored
operand type. 2. Move these create methods below the accessors. 3. Simplify all the MachineInstr::add* methods to use these. llvm-svn: 45430
-
Chris Lattner authored
llvm-svn: 45429
-