Identified with const-return-type.
virtual ~DependenceGraphInfo() {}
/// Return the label that is used to name this graph.
- const StringRef getName() const { return Name; }
+ StringRef getName() const { return Name; }
/// Return the root node of the graph.
NodeType &getRoot() const {
}
/// Return the estimated ordered loop costs.
- const ArrayRef<LoopCacheCostTy> getLoopCosts() const { return LoopCosts; }
+ ArrayRef<LoopCacheCostTy> getLoopCosts() const { return LoopCosts; }
private:
/// Calculate the cache footprint of each loop in the nest (when it is
element_iterator element_begin() const { return ContainedTys; }
element_iterator element_end() const { return &ContainedTys[NumContainedTys];}
- ArrayRef<Type *> const elements() const {
+ ArrayRef<Type *> elements() const {
return makeArrayRef(element_begin(), element_end());
}
InstructionBase(const InstrDesc &D) : Desc(D), IsOptimizableMove(false) {}
SmallVectorImpl<WriteState> &getDefs() { return Defs; }
- const ArrayRef<WriteState> getDefs() const { return Defs; }
+ ArrayRef<WriteState> getDefs() const { return Defs; }
SmallVectorImpl<ReadState> &getUses() { return Uses; }
- const ArrayRef<ReadState> getUses() const { return Uses; }
+ ArrayRef<ReadState> getUses() const { return Uses; }
const InstrDesc &getDesc() const { return Desc; }
unsigned getLatency() const { return Desc.MaxLatency; }
void cleanUpManifests(std::vector<std::string> &Duplicates);
void printTree(raw_ostream &OS) const;
const TreeNode &getTree() const { return Root; }
- const ArrayRef<std::vector<uint8_t>> getData() const { return Data; }
- const ArrayRef<std::vector<UTF16>> getStringTable() const {
- return StringTable;
- }
+ ArrayRef<std::vector<uint8_t>> getData() const { return Data; }
+ ArrayRef<std::vector<UTF16>> getStringTable() const { return StringTable; }
class TreeNode {
public:
bool isDefault() const { return Def->getValueAsBit("isDefault"); }
// Returns the record name.
- const StringRef getRecordName() const { return Def->getName(); }
+ StringRef getRecordName() const { return Def->getName(); }
protected:
const llvm::Record *Def;
bool DeleteNode = true);
void removeChildContext(const LineLocation &CallSite, StringRef CalleeName);
std::map<uint32_t, ContextTrieNode> &getAllChildContext();
- const StringRef getFuncName() const;
+ StringRef getFuncName() const;
FunctionSamples *getFunctionSamples() const;
void setFunctionSamples(FunctionSamples *FSamples);
LineLocation getCallSiteLoc() const;
PreallocatedArgOffsets[Id].assign(AO.begin(), AO.end());
}
- const ArrayRef<size_t> getPreallocatedArgOffsets(const size_t Id) {
+ ArrayRef<size_t> getPreallocatedArgOffsets(const size_t Id) {
assert(!PreallocatedArgOffsets[Id].empty() && "arg offsets not set");
return PreallocatedArgOffsets[Id];
}
return AllChildContext;
}
-const StringRef ContextTrieNode::getFuncName() const { return FuncName; }
+StringRef ContextTrieNode::getFuncName() const { return FuncName; }
FunctionSamples *ContextTrieNode::getFunctionSamples() const {
return FuncSamples;
const Triple &getTriple() const { return BinaryTriple; }
- const ArrayRef<uint8_t> getUUID() const {
- return ArrayRef<uint8_t>(BinaryUUID);
- }
+ ArrayRef<uint8_t> getUUID() const { return ArrayRef<uint8_t>(BinaryUUID); }
StringRef getBinaryPath() const { return BinaryPath; }
uint64_t offsetToVirtualAddr(uint64_t Offset) const {
return Offset + BaseAddress;
}
- const StringRef getPath() const { return Path; }
- const StringRef getName() const { return llvm::sys::path::filename(Path); }
+ StringRef getPath() const { return Path; }
+ StringRef getName() const { return llvm::sys::path::filename(Path); }
uint64_t getBaseAddress() const { return BaseAddress; }
void setBaseAddress(uint64_t Address) { BaseAddress = Address; }
uint64_t getPreferredBaseAddress() const { return PreferredBaseAddress; }
};
template <class ELFT>
-const StringRef getNoteTypeName(const typename ELFT::Note &Note,
- unsigned ELFType) {
+StringRef getNoteTypeName(const typename ELFT::Note &Note, unsigned ELFType) {
uint32_t Type = Note.getType();
auto FindNote = [&](ArrayRef<NoteType> V) -> StringRef {
for (const NoteType &N : V)