Displaying 1 result from an estimated 1 matches for "piinstr".
Did you mean:
instr
2010 Mar 25
1
[LLVMdev] TSFlagsFields and TSFlagsShifts obsolete?
...<0>;
def SSEPackedInt : Domain<1>;
def SSEPackedSingle : Domain<2>;
def SSEPackedDouble : Domain<3>;
class X86Instr<bits<8> opcod> : Instruction {
Domain ExeDomain = GenericDomain;
let TSFlags{0-7} = opcod;
let TSFlags{22-23} = ExeDomain.Value;
}
class PIInstr<bits<8> opcod> : X86Instr<opcod> {
let ExeDomain = SSEPackedInt;
}
def i1 : X86Instr<0x12>;
def i2 : PIInstr<0x34>;
def i3 : PIInstr<0x34> { let ExeDomain = SSEPackedSingle; }
Wouldn't it be better to assign TSFlags bits directly in an Instruction subcla...