[WebAssembly] Fix .td files after rL333900

Differential Revision: https://reviews.llvm.org/D47727

llvm-svn: 333928
This commit is contained in:
Sam Clegg 2018-06-04 16:59:26 +00:00
parent c5a6392be3
commit 537afe6f0e
3 changed files with 33 additions and 33 deletions

View File

@ -68,15 +68,15 @@ multiclass SIMD_CALL<ValueType vt, string prefix> {
} }
let Uses = [SP32, SP64], isCall = 1 in { let Uses = [SP32, SP64], isCall = 1 in {
defm : CALL<I32, "i32.">; defm "" : CALL<I32, "i32.">;
defm : CALL<I64, "i64.">; defm "" : CALL<I64, "i64.">;
defm : CALL<F32, "f32.">; defm "" : CALL<F32, "f32.">;
defm : CALL<F64, "f64.">; defm "" : CALL<F64, "f64.">;
defm : CALL<EXCEPT_REF, "except_ref.">; defm "" : CALL<EXCEPT_REF, "except_ref.">;
defm : SIMD_CALL<v16i8, "i8x16.">; defm "" : SIMD_CALL<v16i8, "i8x16.">;
defm : SIMD_CALL<v8i16, "i16x8.">; defm "" : SIMD_CALL<v8i16, "i16x8.">;
defm : SIMD_CALL<v4i32, "i32x4.">; defm "" : SIMD_CALL<v4i32, "i32x4.">;
defm : SIMD_CALL<v4f32, "f32x4.">; defm "" : SIMD_CALL<v4f32, "f32x4.">;
def CALL_VOID : I<(outs), (ins function32_op:$callee, variable_ops), def CALL_VOID : I<(outs), (ins function32_op:$callee, variable_ops),
[(WebAssemblycall0 (i32 imm:$callee))], [(WebAssemblycall0 (i32 imm:$callee))],

View File

@ -98,15 +98,15 @@ multiclass SIMD_RETURN<ValueType vt> {
let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in { let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in {
let isReturn = 1 in { let isReturn = 1 in {
defm : RETURN<I32>; defm "": RETURN<I32>;
defm : RETURN<I64>; defm "": RETURN<I64>;
defm : RETURN<F32>; defm "": RETURN<F32>;
defm : RETURN<F64>; defm "": RETURN<F64>;
defm : RETURN<EXCEPT_REF>; defm "": RETURN<EXCEPT_REF>;
defm : SIMD_RETURN<v16i8>; defm "": SIMD_RETURN<v16i8>;
defm : SIMD_RETURN<v8i16>; defm "": SIMD_RETURN<v8i16>;
defm : SIMD_RETURN<v4i32>; defm "": SIMD_RETURN<v4i32>;
defm : SIMD_RETURN<v4f32>; defm "": SIMD_RETURN<v4f32>;
def RETURN_VOID : I<(outs), (ins), [(WebAssemblyreturn)], "return", 0x0f>; def RETURN_VOID : I<(outs), (ins), [(WebAssemblyreturn)], "return", 0x0f>;

View File

@ -162,15 +162,15 @@ multiclass SIMD_ARGUMENT<ValueType vt> {
[(set (vt V128:$res), [(set (vt V128:$res),
(WebAssemblyargument timm:$argno))]>; (WebAssemblyargument timm:$argno))]>;
} }
defm : ARGUMENT<I32>; defm "": ARGUMENT<I32>;
defm : ARGUMENT<I64>; defm "": ARGUMENT<I64>;
defm : ARGUMENT<F32>; defm "": ARGUMENT<F32>;
defm : ARGUMENT<F64>; defm "": ARGUMENT<F64>;
defm : ARGUMENT<EXCEPT_REF>; defm "": ARGUMENT<EXCEPT_REF>;
defm : SIMD_ARGUMENT<v16i8>; defm "": SIMD_ARGUMENT<v16i8>;
defm : SIMD_ARGUMENT<v8i16>; defm "": SIMD_ARGUMENT<v8i16>;
defm : SIMD_ARGUMENT<v4i32>; defm "": SIMD_ARGUMENT<v4i32>;
defm : SIMD_ARGUMENT<v4f32>; defm "": SIMD_ARGUMENT<v4f32>;
let Defs = [ARGUMENTS] in { let Defs = [ARGUMENTS] in {
@ -228,12 +228,12 @@ let hasSideEffects = 0 in {
} // hasSideEffects = 0 } // hasSideEffects = 0
} }
defm : LOCAL<I32>; defm "" : LOCAL<I32>;
defm : LOCAL<I64>; defm "" : LOCAL<I64>;
defm : LOCAL<F32>; defm "" : LOCAL<F32>;
defm : LOCAL<F64>; defm "" : LOCAL<F64>;
defm : LOCAL<V128>, Requires<[HasSIMD128]>; defm "" : LOCAL<V128>, Requires<[HasSIMD128]>;
defm : LOCAL<EXCEPT_REF>, Requires<[HasExceptionHandling]>; defm "" : LOCAL<EXCEPT_REF>, Requires<[HasExceptionHandling]>;
let isMoveImm = 1, isAsCheapAsAMove = 1, isReMaterializable = 1 in { let isMoveImm = 1, isAsCheapAsAMove = 1, isReMaterializable = 1 in {
def CONST_I32 : I<(outs I32:$res), (ins i32imm_op:$imm), def CONST_I32 : I<(outs I32:$res), (ins i32imm_op:$imm),