comparison lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children c2174574ed3a
comparison
equal deleted inserted replaced
133:c60214abe0e8 134:3a76565eade5
109 Value *DstAddr = SI->getOperand(1); 109 Value *DstAddr = SI->getOperand(1);
110 unsigned NumLoads = DL.getTypeStoreSize(LI->getType()); 110 unsigned NumLoads = DL.getTypeStoreSize(LI->getType());
111 ConstantInt *CopyLen = 111 ConstantInt *CopyLen =
112 ConstantInt::get(Type::getInt32Ty(Context), NumLoads); 112 ConstantInt::get(Type::getInt32Ty(Context), NumLoads);
113 113
114 if (!TTI.useWideIRMemcpyLoopLowering()) { 114 createMemCpyLoopKnownSize(/* ConvertedInst */ SI,
115 createMemCpyLoop(/* ConvertedInst */ SI, 115 /* SrcAddr */ SrcAddr, /* DstAddr */ DstAddr,
116 /* SrcAddr */ SrcAddr, /* DstAddr */ DstAddr, 116 /* CopyLen */ CopyLen,
117 /* CopyLen */ CopyLen, 117 /* SrcAlign */ LI->getAlignment(),
118 /* SrcAlign */ LI->getAlignment(), 118 /* DestAlign */ SI->getAlignment(),
119 /* DestAlign */ SI->getAlignment(), 119 /* SrcIsVolatile */ LI->isVolatile(),
120 /* SrcIsVolatile */ LI->isVolatile(), 120 /* DstIsVolatile */ SI->isVolatile(), TTI);
121 /* DstIsVolatile */ SI->isVolatile());
122 } else {
123 createMemCpyLoopKnownSize(/* ConvertedInst */ SI,
124 /* SrcAddr */ SrcAddr, /* DstAddr */ DstAddr,
125 /* CopyLen */ CopyLen,
126 /* SrcAlign */ LI->getAlignment(),
127 /* DestAlign */ SI->getAlignment(),
128 /* SrcIsVolatile */ LI->isVolatile(),
129 /* DstIsVolatile */ SI->isVolatile(), TTI);
130 }
131 121
132 SI->eraseFromParent(); 122 SI->eraseFromParent();
133 LI->eraseFromParent(); 123 LI->eraseFromParent();
134 } 124 }
135 125