forked from OSchip/llvm-project
Hide some internal symbols. NFC.
This commit is contained in:
parent
9853786ce3
commit
c6f08b14d4
|
@ -723,10 +723,10 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
|
||||||
///
|
///
|
||||||
/// Note: This only supports non-TFE/LWE image intrinsic calls; those have
|
/// Note: This only supports non-TFE/LWE image intrinsic calls; those have
|
||||||
/// struct returns.
|
/// struct returns.
|
||||||
Value *simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC,
|
static Value *simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC,
|
||||||
IntrinsicInst &II,
|
IntrinsicInst &II,
|
||||||
APInt DemandedElts,
|
APInt DemandedElts,
|
||||||
int DMaskIdx = -1) {
|
int DMaskIdx = -1) {
|
||||||
|
|
||||||
auto *IIVTy = cast<VectorType>(II.getType());
|
auto *IIVTy = cast<VectorType>(II.getType());
|
||||||
unsigned VWidth = IIVTy->getNumElements();
|
unsigned VWidth = IIVTy->getNumElements();
|
||||||
|
|
|
@ -172,7 +172,7 @@ bool MVEGatherScatterLowering::isLegalTypeAndAlignment(unsigned NumElements,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkOffsetSize(Value *Offsets, unsigned TargetElemCount) {
|
static bool checkOffsetSize(Value *Offsets, unsigned TargetElemCount) {
|
||||||
// Offsets that are not of type <N x i32> are sign extended by the
|
// Offsets that are not of type <N x i32> are sign extended by the
|
||||||
// getelementptr instruction, and MVE gathers/scatters treat the offset as
|
// getelementptr instruction, and MVE gathers/scatters treat the offset as
|
||||||
// unsigned. Thus, if the element size is smaller than 32, we can only allow
|
// unsigned. Thus, if the element size is smaller than 32, we can only allow
|
||||||
|
@ -1030,9 +1030,8 @@ bool MVEGatherScatterLowering::optimiseOffsets(Value *Offsets, BasicBlock *BB,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Value *CheckAndCreateOffsetAdd(Value *X, Value *Y, Value *GEP,
|
static Value *CheckAndCreateOffsetAdd(Value *X, Value *Y, Value *GEP,
|
||||||
IRBuilder<> &Builder) {
|
IRBuilder<> &Builder) {
|
||||||
|
|
||||||
// Splat the non-vector value to a vector of the given type - if the value is
|
// Splat the non-vector value to a vector of the given type - if the value is
|
||||||
// a constant (and its value isn't too big), we can even use this opportunity
|
// a constant (and its value isn't too big), we can even use this opportunity
|
||||||
// to scale it to the size of the vector elements
|
// to scale it to the size of the vector elements
|
||||||
|
|
|
@ -1859,6 +1859,7 @@ void DFSanVisitor::visitPHINode(PHINode &PN) {
|
||||||
DFSF.setShadow(&PN, ShadowPN);
|
DFSF.setShadow(&PN, ShadowPN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
class DataFlowSanitizerLegacyPass : public ModulePass {
|
class DataFlowSanitizerLegacyPass : public ModulePass {
|
||||||
private:
|
private:
|
||||||
std::vector<std::string> ABIListFiles;
|
std::vector<std::string> ABIListFiles;
|
||||||
|
@ -1874,6 +1875,7 @@ public:
|
||||||
return DataFlowSanitizer(ABIListFiles).runImpl(M);
|
return DataFlowSanitizer(ABIListFiles).runImpl(M);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} // namespace
|
||||||
|
|
||||||
char DataFlowSanitizerLegacyPass::ID;
|
char DataFlowSanitizerLegacyPass::ID;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue