mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-29 07:39:27 +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:
parent
ed5293c2e9
commit
a2b90dc078
@ -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
|
||||
///
|
||||
class MaskedGatherScatterSDNode : public MemSDNode {
|
||||
|
@ -3123,7 +3123,7 @@ void SelectionDAGBuilder::visitMaskedScatter(const CallInst &I) {
|
||||
Value *BasePtr = Ptr;
|
||||
bool UniformBase = getUniformBase(BasePtr, Base, Index, this);
|
||||
|
||||
Value *MemOpBasePtr = UniformBase ? BasePtr : NULL;
|
||||
Value *MemOpBasePtr = UniformBase ? BasePtr : nullptr;
|
||||
MachineMemOperand *MMO = DAG.getMachineFunction().
|
||||
getMachineMemOperand(MachinePointerInfo(MemOpBasePtr),
|
||||
MachineMemOperand::MOStore, VT.getStoreSize(),
|
||||
@ -3215,15 +3215,14 @@ void SelectionDAGBuilder::visitMaskedGather(const CallInst &I) {
|
||||
|
||||
MachineMemOperand *MMO =
|
||||
DAG.getMachineFunction().
|
||||
getMachineMemOperand(MachinePointerInfo(UniformBase ? BasePtr : NULL),
|
||||
MachineMemOperand::MOLoad, VT.getStoreSize(),
|
||||
Alignment, AAInfo, Ranges);
|
||||
getMachineMemOperand(MachinePointerInfo(UniformBase ? BasePtr : nullptr),
|
||||
MachineMemOperand::MOLoad, VT.getStoreSize(),
|
||||
Alignment, AAInfo, Ranges);
|
||||
|
||||
if (!UniformBase) {
|
||||
Base = DAG.getTargetConstant(0, sdl, TLI.getPointerTy());
|
||||
Index = getValue(Ptr);
|
||||
}
|
||||
|
||||
SDValue Ops[] = { Root, Src0, Mask, Base, Index };
|
||||
SDValue Gather = DAG.getMaskedGather(DAG.getVTList(VT, MVT::Other), VT, sdl,
|
||||
Ops, MMO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user