[polly][opaque pointers] Remove use of deprecated APIs.

(See also D76269.)
This commit is contained in:
Eli Friedman 2020-04-03 14:57:12 -07:00
parent b11decc221
commit 3e5d671c19
6 changed files with 8 additions and 8 deletions

View File

@ -188,7 +188,7 @@ public:
/// @param LB The lower bound for the loop we parallelize.
/// @param UB The upper bound for the loop we parallelize.
/// @param Stride The stride of the loop we parallelize.
virtual void deployParallelExecution(Value *SubFn, Value *SubFnParam,
virtual void deployParallelExecution(Function *SubFn, Value *SubFnParam,
Value *LB, Value *UB, Value *Stride) = 0;
/// Prepare the definition of the parallel subfunction.

View File

@ -45,7 +45,7 @@ public:
void createCallSpawnThreads(Value *SubFn, Value *SubFnParam, Value *LB,
Value *UB, Value *Stride);
void deployParallelExecution(Value *SubFn, Value *SubFnParam, Value *LB,
void deployParallelExecution(Function *SubFn, Value *SubFnParam, Value *LB,
Value *UB, Value *Stride) override;
virtual Function *prepareSubFnDefinition(Function *F) const override;

View File

@ -69,7 +69,7 @@ public:
void createCallSpawnThreads(Value *SubFn, Value *SubFnParam, Value *LB,
Value *UB, Value *Stride);
void deployParallelExecution(Value *SubFn, Value *SubFnParam, Value *LB,
void deployParallelExecution(Function *SubFn, Value *SubFnParam, Value *LB,
Value *UB, Value *Stride) override;
virtual Function *prepareSubFnDefinition(Function *F) const override;

View File

@ -47,7 +47,7 @@ void ParallelLoopGeneratorGOMP::createCallSpawnThreads(Value *SubFn,
Builder.CreateCall(F, Args);
}
void ParallelLoopGeneratorGOMP::deployParallelExecution(Value *SubFn,
void ParallelLoopGeneratorGOMP::deployParallelExecution(Function *SubFn,
Value *SubFnParam,
Value *LB, Value *UB,
Value *Stride) {

View File

@ -59,7 +59,7 @@ void ParallelLoopGeneratorKMP::createCallSpawnThreads(Value *SubFn,
Builder.CreateCall(F, Args);
}
void ParallelLoopGeneratorKMP::deployParallelExecution(Value *SubFn,
void ParallelLoopGeneratorKMP::deployParallelExecution(Function *SubFn,
Value *SubFnParam,
Value *LB, Value *UB,
Value *Stride) {

View File

@ -66,11 +66,11 @@ public:
std::string InstName = Alloca->getName().str();
auto NewAlloca =
new AllocaInst(Alloca->getType()->getElementType(), 0,
new AllocaInst(Alloca->getAllocatedType(), 0,
"polly_byref_alloca_" + InstName, &*Entry->begin());
auto *LoadedVal =
new LoadInst(Alloca, "polly_byref_load_" + InstName, &Inst);
auto *LoadedVal = new LoadInst(Alloca->getAllocatedType(), Alloca,
"polly_byref_load_" + InstName, &Inst);
new StoreInst(LoadedVal, NewAlloca, &Inst);
auto *NewBitCast = new BitCastInst(NewAlloca, BitCast->getType(),