git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217077
91177308-0d34-0410-b5e6-
96231b3b80d8
/// A counter with kind Counter::Expression and an expression
/// with kind CounterExpression::Add
/// Remaining bits - Counter/Expression ID.
/// A counter with kind Counter::Expression and an expression
/// with kind CounterExpression::Add
/// Remaining bits - Counter/Expression ID.
-unsigned encodeCounter(ArrayRef<CounterExpression> Expressions, Counter C) {
+static unsigned encodeCounter(ArrayRef<CounterExpression> Expressions,
+ Counter C) {
unsigned Tag = unsigned(C.getKind());
if (C.isExpression())
Tag += Expressions[C.getExpressionID()].Kind;
unsigned Tag = unsigned(C.getKind());
if (C.isExpression())
Tag += Expressions[C.getExpressionID()].Kind;
#include "MipsELFStreamer.h"
#include "llvm/MC/MCInst.h"
#include "MipsELFStreamer.h"
#include "llvm/MC/MCInst.h"
void MipsELFStreamer::EmitInstruction(const MCInst &Inst,
const MCSubtargetInfo &STI) {
void MipsELFStreamer::EmitInstruction(const MCInst &Inst,
const MCSubtargetInfo &STI) {
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCRegisterInfo.h"
namespace llvm {
class MipsELFStreamer;
class MCSubtargetInfo;
namespace llvm {
class MipsELFStreamer;
class MCSubtargetInfo;
class MipsOptionRecord {
public:
class MipsOptionRecord {
public:
}
~MipsRegInfoRecord() {}
}
~MipsRegInfoRecord() {}
- void EmitMipsOptionRecord();
+ void EmitMipsOptionRecord() override;
void SetPhysRegUsed(unsigned Reg, const MCRegisterInfo *MCRegInfo);
private:
void SetPhysRegUsed(unsigned Reg, const MCRegisterInfo *MCRegInfo);
private:
uint32_t ri_cprmask[4];
int64_t ri_gp_value;
};
uint32_t ri_cprmask[4];
int64_t ri_gp_value;
};
// Returns the loop hint metadata node with the given name (for example,
// "llvm.loop.unroll.count"). If no such metadata node exists, then nullptr is
// returned.
// Returns the loop hint metadata node with the given name (for example,
// "llvm.loop.unroll.count"). If no such metadata node exists, then nullptr is
// returned.
-const MDNode *GetUnrollMetadata(const Loop *L, StringRef Name) {
+static const MDNode *GetUnrollMetadata(const Loop *L, StringRef Name) {
MDNode *LoopID = L->getLoopID();
if (!LoopID)
return nullptr;
MDNode *LoopID = L->getLoopID();
if (!LoopID)
return nullptr;