llvm.org GIT mirror llvm / d85ee90
Merging r238146: ------------------------------------------------------------------------ r238146 | thomas.stellard | 2015-05-25 12:15:50 -0400 (Mon, 25 May 2015) | 6 lines R600/SI: Use NAME rather than opName as the key to the MCOpcode tables This lets us drop a parameter the opName parameter to the VINTRP multiclass and makes it possible to create multiple VINTRP defs with the same asm mnemonic. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@240284 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 4 years ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
14201420 VINTRPe_vi ,
14211421 SIMCInstr;
14221422
1423 multiclass VINTRP_m op, string opName, dag outs, dag ins, string asm,
1423 multiclass VINTRP_m op, dag outs, dag ins, string asm,
14241424 string disableEncoding = "", string constraints = "",
14251425 list pattern = []> {
14261426 let DisableEncoding = disableEncoding,
14271427 Constraints = constraints in {
1428 def "" : VINTRP_Pseudo ;
1429
1430 def _si : VINTRP_Real_si ;
1431
1432 def _vi : VINTRP_Real_vi >;
1428 def "" : VINTRP_Pseudo >;
1429
1430 def _si : VINTRP_Real_si ;
1431
1432 def _vi : VINTRP_Real_vi ;
14331433 }
14341434 }
14351435
13761376
13771377 // FIXME: Specify SchedRW for VINTRP insturctions.
13781378 defm V_INTERP_P1_F32 : VINTRP_m <
1379 0x00000000, "v_interp_p1_f32",
1379 0x00000000,
13801380 (outs VGPR_32:$dst),
13811381 (ins VGPR_32:$i, i32imm:$attr_chan, i32imm:$attr, M0Reg:$m0),
13821382 "v_interp_p1_f32 $dst, $i, $attr_chan, $attr, [$m0]",
13831383 "$m0">;
13841384
13851385 defm V_INTERP_P2_F32 : VINTRP_m <
1386 0x00000001, "v_interp_p2_f32",
1386 0x00000001,
13871387 (outs VGPR_32:$dst),
13881388 (ins VGPR_32:$src0, VGPR_32:$j, i32imm:$attr_chan, i32imm:$attr, M0Reg:$m0),
13891389 "v_interp_p2_f32 $dst, [$src0], $j, $attr_chan, $attr, [$m0]",
13911391 "$src0 = $dst">;
13921392
13931393 defm V_INTERP_MOV_F32 : VINTRP_m <
1394 0x00000002, "v_interp_mov_f32",
1394 0x00000002,
13951395 (outs VGPR_32:$dst),
13961396 (ins InterpSlot:$src0, i32imm:$attr_chan, i32imm:$attr, M0Reg:$m0),
13971397 "v_interp_mov_f32 $dst, $src0, $attr_chan, $attr, [$m0]",