Lines Matching refs:ty
130 multiclass WaitPatNoOffset<ValueType ty, Intrinsic kind,
132 def : Pat<(i32 (kind I32:$addr, ty:$exp, I64:$timeout)),
133 (!cast<NI>(inst#_A32) 0, 0, I32:$addr, ty:$exp, I64:$timeout)>,
135 def : Pat<(i32 (kind I64:$addr, ty:$exp, I64:$timeout)),
136 (!cast<NI>(inst#_A64) 0, 0, I64:$addr, ty:$exp, I64:$timeout)>,
151 multiclass WaitPatImmOff<ValueType ty, Intrinsic kind, PatFrag operand,
153 def : Pat<(i32 (kind (operand I32:$addr, imm:$off), ty:$exp, I64:$timeout)),
154 (!cast<NI>(inst#_A32) 0, imm:$off, I32:$addr, ty:$exp,
157 def : Pat<(i32 (kind (operand I64:$addr, imm:$off), ty:$exp, I64:$timeout)),
158 (!cast<NI>(inst#_A64) 0, imm:$off, I64:$addr, ty:$exp,
172 multiclass WaitPatOffsetOnly<ValueType ty, Intrinsic kind, string inst> {
173 def : Pat<(i32 (kind imm:$off, ty:$exp, I64:$timeout)),
174 (!cast<NI>(inst#_A32) 0, imm:$off, (CONST_I32 0), ty:$exp,
177 def : Pat<(i32 (kind imm:$off, ty:$exp, I64:$timeout)),
178 (!cast<NI>(inst#_A64) 0, imm:$off, (CONST_I64 0), ty:$exp,
187 multiclass WaitPatGlobalAddrOffOnly<ValueType ty, Intrinsic kind, string inst> {
188 def : Pat<(i32 (kind (WebAssemblyWrapper tglobaladdr:$off), ty:$exp,
190 (!cast<NI>(inst#_A32) 0, tglobaladdr:$off, (CONST_I32 0), ty:$exp,
193 def : Pat<(i32 (kind (WebAssemblyWrapper tglobaladdr:$off), ty:$exp,
195 (!cast<NI>(inst#_A64) 0, tglobaladdr:$off, (CONST_I64 0), ty:$exp,
354 multiclass AStorePatNoOffset<ValueType ty, PatFrag kind, string inst> {
355 def : Pat<(kind I32:$addr, ty:$val),
356 (!cast<NI>(inst#_A32) 0, 0, I32:$addr, ty:$val)>,
358 def : Pat<(kind I64:$addr, ty:$val),
359 (!cast<NI>(inst#_A64) 0, 0, I64:$addr, ty:$val)>,
368 multiclass AStorePatImmOff<ValueType ty, PatFrag kind, PatFrag operand,
370 def : Pat<(kind (operand I32:$addr, imm:$off), ty:$val),
371 (!cast<NI>(inst#_A32) 0, imm:$off, I32:$addr, ty:$val)>,
373 def : Pat<(kind (operand I64:$addr, imm:$off), ty:$val),
374 (!cast<NI>(inst#_A64) 0, imm:$off, I64:$addr, ty:$val)>,
381 multiclass AStorePatOffsetOnly<ValueType ty, PatFrag kind, string inst> {
382 def : Pat<(kind imm:$off, ty:$val),
383 (!cast<NI>(inst#_A32) 0, imm:$off, (CONST_I32 0), ty:$val)>,
385 def : Pat<(kind imm:$off, ty:$val),
386 (!cast<NI>(inst#_A64) 0, imm:$off, (CONST_I64 0), ty:$val)>,
392 multiclass AStorePatGlobalAddrOffOnly<ValueType ty, PatFrag kind, string inst> {
393 def : Pat<(kind (WebAssemblyWrapper tglobaladdr:$off), ty:$val),
394 (!cast<NI>(inst#_A32) 0, tglobaladdr:$off, (CONST_I32 0), ty:$val)>,
396 def : Pat<(kind (WebAssemblyWrapper tglobaladdr:$off), ty:$val),
397 (!cast<NI>(inst#_A64) 0, tglobaladdr:$off, (CONST_I64 0), ty:$val)>,
562 multiclass BinRMWPatNoOffset<ValueType ty, PatFrag kind, string inst> {
563 def : Pat<(ty (kind I32:$addr, ty:$val)),
564 (!cast<NI>(inst#_A32) 0, 0, I32:$addr, ty:$val)>,
566 def : Pat<(ty (kind I64:$addr, ty:$val)),
567 (!cast<NI>(inst#_A64) 0, 0, I64:$addr, ty:$val)>,
574 multiclass BinRMWPatImmOff<ValueType ty, PatFrag kind, PatFrag operand,
576 def : Pat<(ty (kind (operand I32:$addr, imm:$off), ty:$val)),
577 (!cast<NI>(inst#_A32) 0, imm:$off, I32:$addr, ty:$val)>,
579 def : Pat<(ty (kind (operand I64:$addr, imm:$off), ty:$val)),
580 (!cast<NI>(inst#_A64) 0, imm:$off, I64:$addr, ty:$val)>,
585 multiclass BinRMWPatOffsetOnly<ValueType ty, PatFrag kind, string inst> {
586 def : Pat<(ty (kind imm:$off, ty:$val)),
587 (!cast<NI>(inst#_A32) 0, imm:$off, (CONST_I32 0), ty:$val)>,
589 def : Pat<(ty (kind imm:$off, ty:$val)),
590 (!cast<NI>(inst#_A64) 0, imm:$off, (CONST_I64 0), ty:$val)>,
594 multiclass BinRMWPatGlobalAddrOffOnly<ValueType ty, PatFrag kind, string inst> {
595 def : Pat<(ty (kind (WebAssemblyWrapper tglobaladdr:$off), ty:$val)),
596 (!cast<NI>(inst#_A32) 0, tglobaladdr:$off, (CONST_I32 0), ty:$val)>,
598 def : Pat<(ty (kind (WebAssemblyWrapper tglobaladdr:$off), ty:$val)),
599 (!cast<NI>(inst#_A64) 0, tglobaladdr:$off, (CONST_I64 0), ty:$val)>,
796 multiclass TerRMWPatNoOffset<ValueType ty, PatFrag kind, string inst> {
797 def : Pat<(ty (kind I32:$addr, ty:$exp, ty:$new)),
798 (!cast<NI>(inst#_A32) 0, 0, I32:$addr, ty:$exp, ty:$new)>,
800 def : Pat<(ty (kind I64:$addr, ty:$exp, ty:$new)),
801 (!cast<NI>(inst#_A64) 0, 0, I64:$addr, ty:$exp, ty:$new)>,
808 multiclass TerRMWPatImmOff<ValueType ty, PatFrag kind, PatFrag operand,
810 def : Pat<(ty (kind (operand I32:$addr, imm:$off), ty:$exp, ty:$new)),
811 (!cast<NI>(inst#_A32) 0, imm:$off, I32:$addr, ty:$exp, ty:$new)>,
813 def : Pat<(ty (kind (operand I64:$addr, imm:$off), ty:$exp, ty:$new)),
814 (!cast<NI>(inst#_A64) 0, imm:$off, I64:$addr, ty:$exp, ty:$new)>,
819 multiclass TerRMWPatOffsetOnly<ValueType ty, PatFrag kind, string inst> {
820 def : Pat<(ty (kind imm:$off, ty:$exp, ty:$new)),
821 (!cast<NI>(inst#_A32) 0, imm:$off, (CONST_I32 0), ty:$exp,
822 ty:$new)>;
823 def : Pat<(ty (kind imm:$off, ty:$exp, ty:$new)),
824 (!cast<NI>(inst#_A64) 0, imm:$off, (CONST_I64 0), ty:$exp,
825 ty:$new)>;
828 multiclass TerRMWPatGlobalAddrOffOnly<ValueType ty, PatFrag kind, string inst> {
829 def : Pat<(ty (kind (WebAssemblyWrapper tglobaladdr:$off), ty:$exp, ty:$new)),
830 (!cast<NI>(inst#_A32) 0, tglobaladdr:$off, (CONST_I32 0), ty:$exp,
831 ty:$new)>,
833 def : Pat<(ty (kind (WebAssemblyWrapper tglobaladdr:$off), ty:$exp, ty:$new)),
834 (!cast<NI>(inst#_A64) 0, tglobaladdr:$off, (CONST_I64 0), ty:$exp,
835 ty:$new)>,