diff options
author | Tom Stellard <[email protected]> | 2012-07-27 21:04:36 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-07-30 21:10:13 +0000 |
commit | aece7970eb171ec6c28c412d22f42362b4f52bac (patch) | |
tree | 16569f3d3bf9c07afbda73fb7c30c8c67c8b510d /src/gallium/drivers/radeon/AMDILInstructions.td | |
parent | 0ce6e506016222b264163ee718202371f19064db (diff) |
radeon/llvm: Cleanup and reorganize AMDIL .td files
Diffstat (limited to 'src/gallium/drivers/radeon/AMDILInstructions.td')
-rw-r--r-- | src/gallium/drivers/radeon/AMDILInstructions.td | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/src/gallium/drivers/radeon/AMDILInstructions.td b/src/gallium/drivers/radeon/AMDILInstructions.td deleted file mode 100644 index 2eebb4a6266..00000000000 --- a/src/gallium/drivers/radeon/AMDILInstructions.td +++ /dev/null @@ -1,82 +0,0 @@ -//===-- AMDILInstructions.td - AMDIL Instruction definitions --------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//==-----------------------------------------------------------------------===// - -//===---------------------------------------------------------------------===// -// Custom Inserter for Branches and returns, this eventually will be a -// seperate pass -//===---------------------------------------------------------------------===// -let isTerminator = 1 in { - def BRANCH : ILFormat<IL_PSEUDO_INST, (outs), (ins brtarget:$target), - "; Pseudo unconditional branch instruction", - [(br bb:$target)]>; - defm BRANCH_COND : BranchConditional<IL_brcond>; -} -//===---------------------------------------------------------------------===// -// return instructions -//===---------------------------------------------------------------------===// -let isTerminator = 1, isReturn = 1, isBarrier = 1, hasCtrlDep = 1 in { - def RETURN : ILFormat<IL_OP_RET,(outs), (ins variable_ops), - IL_OP_RET.Text, [(IL_retflag)]>; -} - -//===---------------------------------------------------------------------===// -// Flow and Program control Instructions -//===---------------------------------------------------------------------===// -let isTerminator=1 in { - def SWITCH : ILFormat<IL_OP_SWITCH, (outs), (ins GPRI32:$src), - !strconcat(IL_OP_SWITCH.Text, " $src"), []>; - def CASE : ILFormat<IL_OP_CASE, (outs), (ins GPRI32:$src), - !strconcat(IL_OP_CASE.Text, " $src"), []>; - def BREAK : ILFormat<IL_OP_BREAK, (outs), (ins), - IL_OP_BREAK.Text, []>; - def CONTINUE : ILFormat<IL_OP_CONTINUE, (outs), (ins), - IL_OP_CONTINUE.Text, []>; - def DEFAULT : ILFormat<IL_OP_DEFAULT, (outs), (ins), - IL_OP_DEFAULT.Text, []>; - def ELSE : ILFormat<IL_OP_ELSE, (outs), (ins), - IL_OP_ELSE.Text, []>; - def ENDSWITCH : ILFormat<IL_OP_ENDSWITCH, (outs), (ins), - IL_OP_ENDSWITCH.Text, []>; - def ENDMAIN : ILFormat<IL_OP_ENDMAIN, (outs), (ins), - IL_OP_ENDMAIN.Text, []>; - def END : ILFormat<IL_OP_END, (outs), (ins), - IL_OP_END.Text, []>; - def ENDFUNC : ILFormat<IL_OP_ENDFUNC, (outs), (ins), - IL_OP_ENDFUNC.Text, []>; - def ENDIF : ILFormat<IL_OP_ENDIF, (outs), (ins), - IL_OP_ENDIF.Text, []>; - def WHILELOOP : ILFormat<IL_OP_WHILE, (outs), (ins), - IL_OP_WHILE.Text, []>; - def ENDLOOP : ILFormat<IL_OP_ENDLOOP, (outs), (ins), - IL_OP_ENDLOOP.Text, []>; - def FUNC : ILFormat<IL_OP_FUNC, (outs), (ins), - IL_OP_FUNC.Text, []>; - def RETDYN : ILFormat<IL_OP_RET_DYN, (outs), (ins), - IL_OP_RET_DYN.Text, []>; - // This opcode has custom swizzle pattern encoded in Swizzle Encoder - defm IF_LOGICALNZ : BranchInstr<IL_OP_IF_LOGICALNZ>; - // This opcode has custom swizzle pattern encoded in Swizzle Encoder - defm IF_LOGICALZ : BranchInstr<IL_OP_IF_LOGICALZ>; - // This opcode has custom swizzle pattern encoded in Swizzle Encoder - defm BREAK_LOGICALNZ : BranchInstr<IL_OP_BREAK_LOGICALNZ>; - // This opcode has custom swizzle pattern encoded in Swizzle Encoder - defm BREAK_LOGICALZ : BranchInstr<IL_OP_BREAK_LOGICALZ>; - // This opcode has custom swizzle pattern encoded in Swizzle Encoder - defm CONTINUE_LOGICALNZ : BranchInstr<IL_OP_CONTINUE_LOGICALNZ>; - // This opcode has custom swizzle pattern encoded in Swizzle Encoder - defm CONTINUE_LOGICALZ : BranchInstr<IL_OP_CONTINUE_LOGICALZ>; - defm IFC : BranchInstr2<IL_OP_IFC>; - defm BREAKC : BranchInstr2<IL_OP_BREAKC>; - defm CONTINUEC : BranchInstr2<IL_OP_CONTINUEC>; -} -let isTerminator = 1, isBarrier = 1, hasCtrlDep = 1 in { - def TRAP : ILFormat<IL_OP_NOP, (outs), (ins), - IL_OP_NOP.Text, [(trap)]>; -} - |