| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 45499
|
|
|
|
| |
llvm-svn: 45496
|
|
|
|
|
|
|
| |
instruction. Also, use "splice" to move the new instruction instead of
remove/insert (where it was leaking memory anyway).
llvm-svn: 45492
|
|
|
|
| |
llvm-svn: 45484
|
|
|
|
|
|
| |
def of the vreg at the start of the list, so the list doesn't need to be traversed.
llvm-svn: 45483
|
|
|
|
|
|
|
|
|
|
|
| |
dereferencing
it now returns the machineinstr of the use. To get the operand, use I.getOperand().
Add a new MachineRegisterInfo::replaceRegWith, which is basically like
Value::replaceAllUsesWith.
llvm-svn: 45482
|
|
|
|
|
|
| |
instruction that defines the specified vreg. Crazy.
llvm-svn: 45480
|
|
|
|
|
|
|
| |
operands. The lists are currently kept in MachineRegisterInfo, but it does
not yet provide an iterator interface to them.
llvm-svn: 45477
|
|
|
|
|
|
|
|
|
|
| |
a header file from libcodegen. This violates a layering order: codegen
depends on target, not the other way around. The fix to this is to
split TII into two classes, TII and TargetInstrInfoImpl, which defines
stuff that depends on libcodegen. It is defined in libcodegen, where
the base is not.
llvm-svn: 45475
|
|
|
|
|
|
|
|
| |
values, which means doing extra legalization work.
It would be easier to get this kind of thing right if
there was some documentation...
llvm-svn: 45472
|
|
|
|
|
|
| |
Machine-level API cleanup instigated by Chris.
llvm-svn: 45470
|
|
|
|
| |
llvm-svn: 45469
|
|
|
|
| |
llvm-svn: 45468
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
llvm-svn: 45459
|
|
|
|
| |
llvm-svn: 45458
|
|
|
|
|
|
| |
knows how to print offsets.
llvm-svn: 45457
|
|
|
|
| |
llvm-svn: 45456
|
|
|
|
| |
llvm-svn: 45455
|
|
|
|
| |
llvm-svn: 45454
|
|
|
|
|
|
| |
machineinstr that owns it.
llvm-svn: 45449
|
|
|
|
| |
llvm-svn: 45436
|
|
|
|
| |
llvm-svn: 45435
|
|
|
|
| |
llvm-svn: 45432
|
|
|
|
| |
llvm-svn: 45428
|
|
|
|
| |
llvm-svn: 45418
|
|
|
|
| |
llvm-svn: 45415
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
comparisons with a constant. This allows us to compile isnan to:
_foo:
fcmpu cr7, f1, f1
mfcr r2
rlwinm r3, r2, 0, 31, 31
blr
instead of:
LCPI1_0: ; float
.space 4
_foo:
lis r2, ha16(LCPI1_0)
lfs f0, lo16(LCPI1_0)(r2)
fcmpu cr7, f1, f0
mfcr r2
rlwinm r3, r2, 0, 31, 31
blr
llvm-svn: 45405
|
|
|
|
| |
llvm-svn: 45402
|
|
|
|
| |
llvm-svn: 45400
|
|
|
|
|
|
|
| |
x = load p
store x -> p
llvm-svn: 45398
|
|
|
|
| |
llvm-svn: 45347
|
|
|
|
| |
llvm-svn: 45334
|
|
|
|
|
|
| |
legalizer support goes in.
llvm-svn: 45323
|
|
|
|
| |
llvm-svn: 45322
|
|
|
|
|
|
| |
or after legalize.
llvm-svn: 45321
|
|
|
|
|
|
| |
targets.
llvm-svn: 45320
|
|
|
|
|
|
|
| |
fixes a bug with indirect calls. (Test case will be included with
ocaml collector patch.)
llvm-svn: 45316
|
|
|
|
| |
llvm-svn: 45310
|
|
|
|
|
|
| |
careful when inserting copies.
llvm-svn: 45309
|
|
|
|
| |
llvm-svn: 45259
|
|
|
|
|
|
| |
strict.
llvm-svn: 45253
|
|
|
|
| |
llvm-svn: 45252
|
|
|
|
| |
llvm-svn: 45245
|
|
|
|
| |
llvm-svn: 45198
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to know about calls that cannot throw ('nounwind'):
if such a call does throw for some reason then the
personality will terminate the program. The distinction
between an ordinary call and a nounwind call is that
an ordinary call gets an entry in the exception table
but a nounwind call does not. This patch sets up the
exception table appropriately. One oddity is that
I've chosen to bracket nounwind calls with labels (like
invokes) - the other choice would have been to bracket
ordinary calls with labels. While bracketing
ordinary calls is more natural (because bracketing
by labels would then correspond exactly to getting an
entry in the exception table), I didn't do it because
introducing labels impedes some optimizations and I'm
guessing that ordinary calls occur more often than
nounwind calls. This fixes the gcc filter2 eh test,
at least at -O0 (the inliner needs some tweaking at
higher optimization levels).
llvm-svn: 45197
|
|
|
|
| |
llvm-svn: 45186
|