mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 13:50:11 +00:00
[AMDGPU] Make use of CPol::SWZ_* in SelectionDAG. NFC.
For GlobalISel this was already done in AMDGPUInstructionSelector::selectBufferLoadLds.
This commit is contained in:
parent
5dbb30d950
commit
1abf2570b3
@ -9453,6 +9453,7 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
|
||||
case Intrinsic::amdgcn_raw_ptr_buffer_load_lds:
|
||||
case Intrinsic::amdgcn_struct_buffer_load_lds:
|
||||
case Intrinsic::amdgcn_struct_ptr_buffer_load_lds: {
|
||||
assert(!AMDGPU::isGFX12Plus(*Subtarget));
|
||||
unsigned Opc;
|
||||
bool HasVIndex =
|
||||
IntrinsicID == Intrinsic::amdgcn_struct_buffer_load_lds ||
|
||||
@ -9505,8 +9506,8 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
|
||||
unsigned Aux = Op.getConstantOperandVal(8 + OpOffset);
|
||||
Ops.push_back(
|
||||
DAG.getTargetConstant(Aux & AMDGPU::CPol::ALL, DL, MVT::i8)); // cpol
|
||||
Ops.push_back(
|
||||
DAG.getTargetConstant((Aux >> 3) & 1, DL, MVT::i8)); // swz
|
||||
Ops.push_back(DAG.getTargetConstant(
|
||||
Aux & AMDGPU::CPol::SWZ_pregfx12 ? 1 : 0, DL, MVT::i8)); // swz
|
||||
Ops.push_back(M0Val.getValue(0)); // Chain
|
||||
Ops.push_back(M0Val.getValue(1)); // Glue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user