mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[WebAssembly] Fix .td files after rL333900
Differential Revision: https://reviews.llvm.org/D47727 llvm-svn: 333928
This commit is contained in:
parent
c040d0bd38
commit
c7ecc0ce30
@ -68,15 +68,15 @@ multiclass SIMD_CALL<ValueType vt, string prefix> {
|
||||
}
|
||||
|
||||
let Uses = [SP32, SP64], isCall = 1 in {
|
||||
defm : CALL<I32, "i32.">;
|
||||
defm : CALL<I64, "i64.">;
|
||||
defm : CALL<F32, "f32.">;
|
||||
defm : CALL<F64, "f64.">;
|
||||
defm : CALL<EXCEPT_REF, "except_ref.">;
|
||||
defm : SIMD_CALL<v16i8, "i8x16.">;
|
||||
defm : SIMD_CALL<v8i16, "i16x8.">;
|
||||
defm : SIMD_CALL<v4i32, "i32x4.">;
|
||||
defm : SIMD_CALL<v4f32, "f32x4.">;
|
||||
defm "" : CALL<I32, "i32.">;
|
||||
defm "" : CALL<I64, "i64.">;
|
||||
defm "" : CALL<F32, "f32.">;
|
||||
defm "" : CALL<F64, "f64.">;
|
||||
defm "" : CALL<EXCEPT_REF, "except_ref.">;
|
||||
defm "" : SIMD_CALL<v16i8, "i8x16.">;
|
||||
defm "" : SIMD_CALL<v8i16, "i16x8.">;
|
||||
defm "" : SIMD_CALL<v4i32, "i32x4.">;
|
||||
defm "" : SIMD_CALL<v4f32, "f32x4.">;
|
||||
|
||||
def CALL_VOID : I<(outs), (ins function32_op:$callee, variable_ops),
|
||||
[(WebAssemblycall0 (i32 imm:$callee))],
|
||||
|
@ -98,15 +98,15 @@ multiclass SIMD_RETURN<ValueType vt> {
|
||||
let isTerminator = 1, hasCtrlDep = 1, isBarrier = 1 in {
|
||||
|
||||
let isReturn = 1 in {
|
||||
defm : RETURN<I32>;
|
||||
defm : RETURN<I64>;
|
||||
defm : RETURN<F32>;
|
||||
defm : RETURN<F64>;
|
||||
defm : RETURN<EXCEPT_REF>;
|
||||
defm : SIMD_RETURN<v16i8>;
|
||||
defm : SIMD_RETURN<v8i16>;
|
||||
defm : SIMD_RETURN<v4i32>;
|
||||
defm : SIMD_RETURN<v4f32>;
|
||||
defm "": RETURN<I32>;
|
||||
defm "": RETURN<I64>;
|
||||
defm "": RETURN<F32>;
|
||||
defm "": RETURN<F64>;
|
||||
defm "": RETURN<EXCEPT_REF>;
|
||||
defm "": SIMD_RETURN<v16i8>;
|
||||
defm "": SIMD_RETURN<v8i16>;
|
||||
defm "": SIMD_RETURN<v4i32>;
|
||||
defm "": SIMD_RETURN<v4f32>;
|
||||
|
||||
def RETURN_VOID : I<(outs), (ins), [(WebAssemblyreturn)], "return", 0x0f>;
|
||||
|
||||
|
@ -162,15 +162,15 @@ multiclass SIMD_ARGUMENT<ValueType vt> {
|
||||
[(set (vt V128:$res),
|
||||
(WebAssemblyargument timm:$argno))]>;
|
||||
}
|
||||
defm : ARGUMENT<I32>;
|
||||
defm : ARGUMENT<I64>;
|
||||
defm : ARGUMENT<F32>;
|
||||
defm : ARGUMENT<F64>;
|
||||
defm : ARGUMENT<EXCEPT_REF>;
|
||||
defm : SIMD_ARGUMENT<v16i8>;
|
||||
defm : SIMD_ARGUMENT<v8i16>;
|
||||
defm : SIMD_ARGUMENT<v4i32>;
|
||||
defm : SIMD_ARGUMENT<v4f32>;
|
||||
defm "": ARGUMENT<I32>;
|
||||
defm "": ARGUMENT<I64>;
|
||||
defm "": ARGUMENT<F32>;
|
||||
defm "": ARGUMENT<F64>;
|
||||
defm "": ARGUMENT<EXCEPT_REF>;
|
||||
defm "": SIMD_ARGUMENT<v16i8>;
|
||||
defm "": SIMD_ARGUMENT<v8i16>;
|
||||
defm "": SIMD_ARGUMENT<v4i32>;
|
||||
defm "": SIMD_ARGUMENT<v4f32>;
|
||||
|
||||
let Defs = [ARGUMENTS] in {
|
||||
|
||||
@ -228,12 +228,12 @@ let hasSideEffects = 0 in {
|
||||
|
||||
} // hasSideEffects = 0
|
||||
}
|
||||
defm : LOCAL<I32>;
|
||||
defm : LOCAL<I64>;
|
||||
defm : LOCAL<F32>;
|
||||
defm : LOCAL<F64>;
|
||||
defm : LOCAL<V128>, Requires<[HasSIMD128]>;
|
||||
defm : LOCAL<EXCEPT_REF>, Requires<[HasExceptionHandling]>;
|
||||
defm "" : LOCAL<I32>;
|
||||
defm "" : LOCAL<I64>;
|
||||
defm "" : LOCAL<F32>;
|
||||
defm "" : LOCAL<F64>;
|
||||
defm "" : LOCAL<V128>, Requires<[HasSIMD128]>;
|
||||
defm "" : LOCAL<EXCEPT_REF>, Requires<[HasExceptionHandling]>;
|
||||
|
||||
let isMoveImm = 1, isAsCheapAsAMove = 1, isReMaterializable = 1 in {
|
||||
def CONST_I32 : I<(outs I32:$res), (ins i32imm_op:$imm),
|
||||
|
Loading…
Reference in New Issue
Block a user