X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FCodeGenerator.html;h=cc3a541e9c936b86c484d28cc1466ffef4cc93a1;hb=ad95ff9fabbabe53044dfb991a06d811f983233c;hp=9a28f1f0ca3d08679539af30aa1cc80d84ee7488;hpb=587daedce2d6c2b2d380b6a5843a6f8b6cfc79e4;p=oota-llvm.git diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html index 9a28f1f0ca3..cc3a541e9c9 100644 --- a/docs/CodeGenerator.html +++ b/docs/CodeGenerator.html @@ -1380,9 +1380,9 @@ bool RegMapping_Fer::compatible_class(MachineFunction &mf, for RegisterClass, the last parameter of which is a list of registers. Just commenting some out is one simple way to avoid them being used. A more polite way is to explicitly exclude some registers from - the allocation order. See the definition of the GR register - class in lib/Target/IA64/IA64RegisterInfo.td for an example of this - (e.g., numReservedRegs registers are hidden.)

+ the allocation order. See the definition of the GR8 register + class in lib/Target/X86/X86RegisterInfo.td for an example of this. +

Virtual registers are also denoted by integer numbers. Contrary to physical registers, different virtual registers never share the same number. The @@ -1616,9 +1616,9 @@ bool RegMapping_Fer::compatible_class(MachineFunction &mf,

-$ llc -f -regalloc=simple file.bc -o sp.s;
-$ llc -f -regalloc=local file.bc -o lc.s;
-$ llc -f -regalloc=linearscan file.bc -o ln.s;
+$ llc -regalloc=simple file.bc -o sp.s;
+$ llc -regalloc=local file.bc -o lc.s;
+$ llc -regalloc=linearscan file.bc -o ln.s;
 
@@ -1773,6 +1773,8 @@ define fastcc i32 @tailcaller(i32 %in1, i32 %in2) {
  • i386-pc-mingw32msvc — MingW crosscompiler on Linux
  • i686-apple-darwin* — Apple Darwin on X86
  • + +
  • x86_64-unknown-linux-gnu — Linux
  • @@ -1810,24 +1812,27 @@ define fastcc i32 @tailcaller(i32 %in1, i32 %in2) {
    -Base + [1,2,4,8] * IndexReg + Disp32
    +SegmentReg: Base + [1,2,4,8] * IndexReg + Disp32
     
    -

    In order to represent this, LLVM tracks no less than 4 operands for each +

    In order to represent this, LLVM tracks no less than 5 operands for each memory operand of this form. This means that the "load" form of 'mov' has the following MachineOperands in this order:

    -Index:        0     |    1        2       3           4
    -Meaning:   DestReg, | BaseReg,  Scale, IndexReg, Displacement
    -OperandTy: VirtReg, | VirtReg, UnsImm, VirtReg,   SignExtImm
    +Index:        0     |    1        2       3           4          5
    +Meaning:   DestReg, | BaseReg,  Scale, IndexReg, Displacement Segment
    +OperandTy: VirtReg, | VirtReg, UnsImm, VirtReg,   SignExtImm  PhysReg
     

    Stores, and all other instructions, treat the four memory operands in the - same way and in the same order.

    + same way and in the same order. If the segment register is unspecified + (regno = 0), then no segment override is generated. "Lea" operations do not + have a segment register specified, so they only have 4 operands for their + memory reference.