mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[VNCoercion] Use IRBuilderBase; NFC
And remove include from header.
This commit is contained in:
parent
0f8b127b0f
commit
677df00dcf
@ -20,14 +20,15 @@
|
||||
|
||||
#ifndef LLVM_TRANSFORMS_UTILS_VNCOERCION_H
|
||||
#define LLVM_TRANSFORMS_UTILS_VNCOERCION_H
|
||||
#include "llvm/IR/IRBuilder.h"
|
||||
|
||||
namespace llvm {
|
||||
class Constant;
|
||||
class Function;
|
||||
class StoreInst;
|
||||
class LoadInst;
|
||||
class MemIntrinsic;
|
||||
class Instruction;
|
||||
class IRBuilderBase;
|
||||
class Value;
|
||||
class Type;
|
||||
class DataLayout;
|
||||
@ -44,7 +45,7 @@ bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
|
||||
///
|
||||
/// If we can't do it, return null.
|
||||
Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
|
||||
IRBuilder<> &IRB, const DataLayout &DL);
|
||||
IRBuilderBase &IRB, const DataLayout &DL);
|
||||
|
||||
/// This function determines whether a value for the pointer LoadPtr can be
|
||||
/// extracted from the store at DepSI.
|
||||
|
@ -144,7 +144,8 @@ static T *coerceAvailableValueToLoadTypeHelper(T *StoredVal, Type *LoadedTy,
|
||||
///
|
||||
/// If we can't do it, return null.
|
||||
Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
|
||||
IRBuilder<> &IRB, const DataLayout &DL) {
|
||||
IRBuilderBase &IRB,
|
||||
const DataLayout &DL) {
|
||||
return coerceAvailableValueToLoadTypeHelper(StoredVal, LoadedTy, IRB, DL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user