gk110/ir: fake BAR support
Makes things sorta work until we figure out the real way to do this. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
fd092328e1
commit
88818c4cd6
|
@ -120,6 +120,8 @@ private:
|
||||||
|
|
||||||
void emitPIXLD(const Instruction *);
|
void emitPIXLD(const Instruction *);
|
||||||
|
|
||||||
|
void emitBAR(const Instruction *);
|
||||||
|
|
||||||
void emitFlow(const Instruction *);
|
void emitFlow(const Instruction *);
|
||||||
|
|
||||||
inline void defId(const ValueDef&, const int pos);
|
inline void defId(const ValueDef&, const int pos);
|
||||||
|
@ -1249,6 +1251,13 @@ CodeEmitterGK110::emitPIXLD(const Instruction *i)
|
||||||
code[1] |= 0x00070000;
|
code[1] |= 0x00070000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
CodeEmitterGK110::emitBAR(const Instruction *i)
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
emitNOP(i);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
CodeEmitterGK110::emitFlow(const Instruction *i)
|
CodeEmitterGK110::emitFlow(const Instruction *i)
|
||||||
{
|
{
|
||||||
|
@ -1856,6 +1865,9 @@ CodeEmitterGK110::emitInstruction(Instruction *insn)
|
||||||
emitNOP(insn);
|
emitNOP(insn);
|
||||||
insn->join = 1;
|
insn->join = 1;
|
||||||
break;
|
break;
|
||||||
|
case OP_BAR:
|
||||||
|
emitBAR(insn);
|
||||||
|
break;
|
||||||
case OP_PHI:
|
case OP_PHI:
|
||||||
case OP_UNION:
|
case OP_UNION:
|
||||||
case OP_CONSTRAINT:
|
case OP_CONSTRAINT:
|
||||||
|
|
Loading…
Reference in New Issue