mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-29 15:17:14 +00:00
Make helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,7 +14,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
MCSymbol *DwarfStringPool::getSectionSymbol() { return SectionSymbol; }
|
MCSymbol *DwarfStringPool::getSectionSymbol() { return SectionSymbol; }
|
||||||
|
|
||||||
std::pair<MCSymbol *, unsigned> &
|
static std::pair<MCSymbol *, unsigned> &
|
||||||
getEntry(AsmPrinter &Asm,
|
getEntry(AsmPrinter &Asm,
|
||||||
StringMap<std::pair<MCSymbol *, unsigned>, BumpPtrAllocator &> &Pool,
|
StringMap<std::pair<MCSymbol *, unsigned>, BumpPtrAllocator &> &Pool,
|
||||||
StringRef Prefix, StringRef Str) {
|
StringRef Prefix, StringRef Str) {
|
||||||
|
@@ -634,7 +634,7 @@ static bool OptimizeCmpExpression(CmpInst *CI) {
|
|||||||
/// 1. Truncate instruction
|
/// 1. Truncate instruction
|
||||||
/// 2. And instruction and the imm is a mask of the low bits:
|
/// 2. And instruction and the imm is a mask of the low bits:
|
||||||
/// imm & (imm+1) == 0
|
/// imm & (imm+1) == 0
|
||||||
bool isExtractBitsCandidateUse(Instruction *User) {
|
static bool isExtractBitsCandidateUse(Instruction *User) {
|
||||||
if (!isa<TruncInst>(User)) {
|
if (!isa<TruncInst>(User)) {
|
||||||
if (User->getOpcode() != Instruction::And ||
|
if (User->getOpcode() != Instruction::And ||
|
||||||
!isa<ConstantInt>(User->getOperand(1)))
|
!isa<ConstantInt>(User->getOperand(1)))
|
||||||
@@ -650,7 +650,7 @@ bool isExtractBitsCandidateUse(Instruction *User) {
|
|||||||
|
|
||||||
/// SinkShiftAndTruncate - sink both shift and truncate instruction
|
/// SinkShiftAndTruncate - sink both shift and truncate instruction
|
||||||
/// to the use of truncate's BB.
|
/// to the use of truncate's BB.
|
||||||
bool
|
static bool
|
||||||
SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
|
SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
|
||||||
DenseMap<BasicBlock *, BinaryOperator *> &InsertedShifts,
|
DenseMap<BasicBlock *, BinaryOperator *> &InsertedShifts,
|
||||||
const TargetLowering &TLI) {
|
const TargetLowering &TLI) {
|
||||||
|
Reference in New Issue
Block a user