mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-29 13:24:25 +00:00
fixed comments, blanks, nullptr; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236086 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2030,7 +2030,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// This is a base class is used to represent
|
/// This is a base class used to represent
|
||||||
/// MGATHER and MSCATTER nodes
|
/// MGATHER and MSCATTER nodes
|
||||||
///
|
///
|
||||||
class MaskedGatherScatterSDNode : public MemSDNode {
|
class MaskedGatherScatterSDNode : public MemSDNode {
|
||||||
|
@ -3123,7 +3123,7 @@ void SelectionDAGBuilder::visitMaskedScatter(const CallInst &I) {
|
|||||||
Value *BasePtr = Ptr;
|
Value *BasePtr = Ptr;
|
||||||
bool UniformBase = getUniformBase(BasePtr, Base, Index, this);
|
bool UniformBase = getUniformBase(BasePtr, Base, Index, this);
|
||||||
|
|
||||||
Value *MemOpBasePtr = UniformBase ? BasePtr : NULL;
|
Value *MemOpBasePtr = UniformBase ? BasePtr : nullptr;
|
||||||
MachineMemOperand *MMO = DAG.getMachineFunction().
|
MachineMemOperand *MMO = DAG.getMachineFunction().
|
||||||
getMachineMemOperand(MachinePointerInfo(MemOpBasePtr),
|
getMachineMemOperand(MachinePointerInfo(MemOpBasePtr),
|
||||||
MachineMemOperand::MOStore, VT.getStoreSize(),
|
MachineMemOperand::MOStore, VT.getStoreSize(),
|
||||||
@ -3215,15 +3215,14 @@ void SelectionDAGBuilder::visitMaskedGather(const CallInst &I) {
|
|||||||
|
|
||||||
MachineMemOperand *MMO =
|
MachineMemOperand *MMO =
|
||||||
DAG.getMachineFunction().
|
DAG.getMachineFunction().
|
||||||
getMachineMemOperand(MachinePointerInfo(UniformBase ? BasePtr : NULL),
|
getMachineMemOperand(MachinePointerInfo(UniformBase ? BasePtr : nullptr),
|
||||||
MachineMemOperand::MOLoad, VT.getStoreSize(),
|
MachineMemOperand::MOLoad, VT.getStoreSize(),
|
||||||
Alignment, AAInfo, Ranges);
|
Alignment, AAInfo, Ranges);
|
||||||
|
|
||||||
if (!UniformBase) {
|
if (!UniformBase) {
|
||||||
Base = DAG.getTargetConstant(0, sdl, TLI.getPointerTy());
|
Base = DAG.getTargetConstant(0, sdl, TLI.getPointerTy());
|
||||||
Index = getValue(Ptr);
|
Index = getValue(Ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDValue Ops[] = { Root, Src0, Mask, Base, Index };
|
SDValue Ops[] = { Root, Src0, Mask, Base, Index };
|
||||||
SDValue Gather = DAG.getMaskedGather(DAG.getVTList(VT, MVT::Other), VT, sdl,
|
SDValue Gather = DAG.getMaskedGather(DAG.getVTList(VT, MVT::Other), VT, sdl,
|
||||||
Ops, MMO);
|
Ops, MMO);
|
||||||
|
Reference in New Issue
Block a user