Skip to content

Commit

Permalink
Hide some internal symbols. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Jul 31, 2020
1 parent 9853786 commit c6f08b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Expand Up @@ -723,10 +723,10 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
///
/// Note: This only supports non-TFE/LWE image intrinsic calls; those have
/// struct returns.
Value *simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC,
IntrinsicInst &II,
APInt DemandedElts,
int DMaskIdx = -1) {
static Value *simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC,
IntrinsicInst &II,
APInt DemandedElts,
int DMaskIdx = -1) {

auto *IIVTy = cast<VectorType>(II.getType());
unsigned VWidth = IIVTy->getNumElements();
Expand Down
7 changes: 3 additions & 4 deletions llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
Expand Up @@ -172,7 +172,7 @@ bool MVEGatherScatterLowering::isLegalTypeAndAlignment(unsigned NumElements,
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
// getelementptr instruction, and MVE gathers/scatters treat the offset as
// unsigned. Thus, if the element size is smaller than 32, we can only allow
Expand Down Expand Up @@ -1030,9 +1030,8 @@ bool MVEGatherScatterLowering::optimiseOffsets(Value *Offsets, BasicBlock *BB,
return true;
}

Value *CheckAndCreateOffsetAdd(Value *X, Value *Y, Value *GEP,
IRBuilder<> &Builder) {

static Value *CheckAndCreateOffsetAdd(Value *X, Value *Y, Value *GEP,
IRBuilder<> &Builder) {
// 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
// to scale it to the size of the vector elements
Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
Expand Up @@ -1859,6 +1859,7 @@ void DFSanVisitor::visitPHINode(PHINode &PN) {
DFSF.setShadow(&PN, ShadowPN);
}

namespace {
class DataFlowSanitizerLegacyPass : public ModulePass {
private:
std::vector<std::string> ABIListFiles;
Expand All @@ -1874,6 +1875,7 @@ class DataFlowSanitizerLegacyPass : public ModulePass {
return DataFlowSanitizer(ABIListFiles).runImpl(M);
}
};
} // namespace

char DataFlowSanitizerLegacyPass::ID;

Expand Down

0 comments on commit c6f08b1

Please sign in to comment.