Searched defs:StringRef (Results 1 - 24 of 24) sorted by relevance

/freebsd-head/contrib/llvm-project/llvm/include/llvm/IR/
H A DMDBuilder.h18 #include "llvm/ADT/StringRef.h"
42 MDString *createString(StringRef Str);
77 MDNode *createFunctionSectionPrefix(StringRef Prefix);
120 MDNode *createAnonymousAARoot(StringRef Name = StringRef(),
134 MDNode *createAnonymousAliasScopeDomain(StringRef Name = StringRef()) { argument
142 StringRef Name = StringRef()) {
149 MDNode *createTBAARoot(StringRef Nam
141 createAnonymousAliasScope(MDNode *Domain, StringRef Name = StringRef()) argument
[all...]
H A DGlobalVariable.h193 void addAttribute(StringRef Kind, StringRef Val = StringRef()) { argument
203 bool hasAttribute(StringRef Kind) const {
218 Attribute getAttribute(StringRef Kind) const {
H A DFunction.h21 #include "llvm/ADT/StringRef.h"
200 static Intrinsic::ID lookupIntrinsicID(StringRef Name);
234 void addFnAttr(StringRef Kind, StringRef Val = StringRef()) { argument
250 void removeFnAttr(StringRef Kind) {
317 void setSectionPrefix(StringRef Prefix);
320 Optional<StringRef> getSectionPrefix() const;
328 bool hasFnAttribute(StringRef Kind) const {
338 Attribute getFnAttribute(StringRef Kin
[all...]
/freebsd-head/contrib/llvm-project/llvm/include/llvm/WindowsResource/
H A DResourceProcessor.h13 #include "llvm/ADT/StringRef.h"
29 void addDefine(StringRef Key, StringRef Value = StringRef()) { argument
38 Error process(StringRef InputData,
42 StringRef InputData;
44 std::vector<std::pair<StringRef, StringRef>> PreprocessorDefines;
/freebsd-head/contrib/llvm-project/llvm/lib/Passes/
H A DStandardInstrumentations.cpp73 void printIR(const Module *M, StringRef Banner, StringRef Extra = StringRef()) { argument
77 void printIR(const Function *F, StringRef Banner, argument
78 StringRef Extra = StringRef()) {
83 void printIR(const LazyCallGraph::SCC *C, StringRef Banner, argument
84 StringRef Extra = StringRef()) {
97 void printIR(const Loop *L, StringRef Banne
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/
H A DGetopt.java96 private static class StringRef { class in class:Getopt
105 public StringRef
185 parselong(String optstring, String opt, StringRef longoptarg)
314 StringRef longoptarg = new StringRef();
/freebsd-head/contrib/llvm-project/llvm/include/llvm/ADT/
H A DCachedHashString.h1 //===- llvm/ADT/CachedHashString.h - Prehashed string/StringRef -*- C++ -*-===//
23 #include "llvm/ADT/StringRef.h"
28 /// A container which contains a StringRef plus a precomputed hash.
36 explicit CachedHashStringRef(StringRef S)
37 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {}
39 CachedHashStringRef(StringRef S, uint32_t Hash)
44 StringRef val() const { return StringRef(P, Size); }
52 return CachedHashStringRef(DenseMapInfo<StringRef>::getEmptyKey(), 0);
55 return CachedHashStringRef(DenseMapInfo<StringRef>
[all...]
H A DSmallString.h17 #include "llvm/ADT/StringRef.h"
30 /// Initialize from a StringRef.
31 SmallString(StringRef S) : SmallVector<char, InternalLen>(S.begin(), S.end()) {}
56 /// Assign from a StringRef.
57 void assign(StringRef RHS) {
82 /// Append from a StringRef.
83 void append(StringRef RHS) {
98 bool equals(StringRef RHS) const {
103 bool equals_lower(StringRef RHS) const {
109 int compare(StringRef RH
[all...]
H A DStringRef.h1 //===- StringRef.h - Constant String Reference Wrapper ----------*- C++ -*-===//
35 class StringRef;
37 /// Helper functions for StringRef::getAsInteger.
38 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
41 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
43 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
45 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
47 /// StringRef - Represent a constant reference to a string, i.e. a character
52 /// lifetime extends past that of the StringRef. For this reason, it is not in
53 /// general safe to store a StringRef
54 class StringRef { class in namespace:llvm
103 /*implicit*/ constexpr StringRef(const char *Str) function in class:llvm::StringRef
107 /*implicit*/ constexpr StringRef(const char *data, size_t length) function in class:llvm::StringRef
111 /*implicit*/ StringRef(const std::string &Str) function in class:llvm::StringRef
[all...]
/freebsd-head/contrib/llvm-project/clang/include/clang/AST/
H A DOSLog.h77 StringRef MaskType;
81 StringRef maskType = StringRef())
108 StringRef getMaskType() const { return MaskType; }
80 OSLogBufferItem(Kind kind, const Expr *expr, CharUnits size, unsigned flags, StringRef maskType = StringRef()) argument
/freebsd-head/contrib/llvm-project/llvm/lib/IR/
H A DAttributeImpl.h20 #include "llvm/ADT/StringRef.h"
64 bool hasAttribute(StringRef Kind) const;
69 StringRef getKindAsString() const;
70 StringRef getValueAsString() const;
94 static void Profile(FoldingSetNodeID &ID, StringRef Kind, StringRef Values) {
154 StringAttributeImpl(StringRef Kind, StringRef Val = StringRef()) argument
157 StringRef getStringKin
[all...]
/freebsd-head/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h86 std::map<llvm::StringRef, llvm::StringRef, std::greater<llvm::StringRef>>
99 std::string remapPath(StringRef Path) const override {
149 StringRef CWDName;
230 llvm::DIType *getOrCreateStructPtrType(StringRef Name, llvm::DIType *&Cache);
281 llvm::DIType *createFieldType(StringRef name, QualType type,
287 llvm::DIType *createFieldType(StringRef name, QualType type,
361 std::string remapDIPath(StringRef) const;
471 StringRef Nam
725 internString(StringRef A, StringRef B = StringRef()) argument
[all...]
H A DCGExpr.cpp2290 StringRef Name = StringRef()) {
2775 StringRef FnName = CurFn->getName();
2778 StringRef NameItems[] = {
2830 StringRef(), StringRef(), None, Buffer,
2895 StringRef FilenameString = PLoc.getFilename();
2990 const StringRef CheckName = CheckInfo.Name;
3030 const StringRef CheckName = SanitizerHandlers[CheckHandler].Name;
2288 EmitBitCastOfLValueToProperType(CodeGenFunction &CGF, llvm::Value *V, llvm::Type *IRType, StringRef Name = StringRef()) argument
H A DCodeGenFunction.h396 virtual StringRef getHelperName() const { return "__captured_stmt"; }
992 JumpDest getJumpDestInCurrentScope(StringRef Name = StringRef()) { argument
3204 StringRef ParentName,
3207 EmitOMPTargetParallelDeviceFunction(CodeGenModule &CGM, StringRef ParentName,
3211 CodeGenModule &CGM, StringRef ParentName,
3215 CodeGenModule &CGM, StringRef ParentName,
3219 EmitOMPTargetTeamsDeviceFunction(CodeGenModule &CGM, StringRef ParentName,
3223 CodeGenModule &CGM, StringRef ParentName,
3227 CodeGenModule &CGM, StringRef ParentNam
[all...]
/freebsd-head/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h23 #include "llvm/ADT/StringRef.h"
106 StringRef Name;
108 explicit CheckerNameRef(StringRef Name) : Name(Name) {}
113 StringRef getName() const { return Name; }
114 operator StringRef() const { return Name; }
149 StringRef OptionName,
150 StringRef ExpectedValueDesc);
/freebsd-head/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp110 static void error(const Twine &Message, StringRef File) {
118 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C, argument
119 StringRef ArchitectureName = StringRef()) {
123 Expected<StringRef> NameOrErr = C.getName();
146 static void error(llvm::Error E, StringRef FileName, argument
147 StringRef ArchitectureName = StringRef()) {
297 StringRef SegmentName = StringRef(Se
[all...]
/freebsd-head/contrib/llvm-project/llvm/include/llvm/Support/
H A DJSON.h51 #include "llvm/ADT/StringRef.h"
77 bool isUTF8(llvm::StringRef S, size_t *ErrOffset = nullptr);
81 std::string fixUTF8(llvm::StringRef S);
91 using Storage = DenseMap<ObjectKey, Value, llvm::DenseMapInfo<StringRef>>;
125 bool erase(StringRef K);
128 iterator find(StringRef K) { return M.find_as(K); }
129 const_iterator find(StringRef K) const { return M.find_as(K); }
134 Value *get(StringRef K);
135 const Value *get(StringRef K) const;
139 llvm::Optional<std::nullptr_t> getNull(StringRef
[all...]
/freebsd-head/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h16 #include "llvm/ADT/StringRef.h"
36 StringRef SymName;
84 StringRef getSymName() override { return SymName; }
150 StringRef getToken() const {
152 return StringRef(Tok.Data, Tok.Length);
154 void setTokenValue(StringRef Value) {
580 static std::unique_ptr<X86Operand> CreateToken(StringRef Str, SMLoc Loc) {
591 StringRef SymName = StringRef(), void *OpDecl = nullptr) {
615 StringRef SymNam
589 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc, bool AddressOf = false, SMLoc OffsetOfLoc = SMLoc(), StringRef SymName = StringRef(), void *OpDecl = nullptr) argument
613 CreateImm(const MCExpr *Val, SMLoc StartLoc, SMLoc EndLoc, StringRef SymName = StringRef(), void *OpDecl = nullptr, bool GlobalRef = true) argument
629 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc, unsigned Size = 0, StringRef SymName = StringRef(), void *OpDecl = nullptr, unsigned FrontendSize = 0) argument
649 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp, unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, SMLoc EndLoc, unsigned Size = 0, StringRef SymName = StringRef(), void *OpDecl = nullptr, unsigned FrontendSize = 0) argument
[all...]
/freebsd-head/contrib/llvm-project/clang/lib/Lex/
H A DPragma.cpp42 #include "llvm/ADT/StringRef.h"
64 EmptyPragmaHandler::EmptyPragmaHandler(StringRef Name) : PragmaHandler(Name) {}
82 PragmaHandler *PragmaNamespace::FindHandler(StringRef Name,
86 return IgnoreNull ? nullptr : Handlers.lookup(StringRef());
110 : StringRef(),
504 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid);
590 CreateString(StringRef(&StrVal[1], StrVal.size() - 2), MacroTok);
678 StringRef SourceFileName;
699 StringRef ReplaceFileName;
716 StringRef OriginalSourc
1487 PragmaMessageHandler(PPCallbacks::PragmaMessageKind Kind, StringRef Namespace = StringRef()) argument
[all...]
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp40 #include "llvm/ADT/StringRef.h"
53 static StringRef StripTrailingDots(StringRef s) {
54 for (StringRef::size_type i = s.size(); i != 0; --i)
60 PathDiagnosticPiece::PathDiagnosticPiece(StringRef s,
120 StringRef CheckerName, const Decl *declWithIssue, StringRef bugtype,
121 StringRef verboseDesc, StringRef shortDesc, StringRef categor
905 describeClass(raw_ostream &Out, const CXXRecordDecl *D, StringRef Prefix = StringRef()) argument
917 describeCodeDecl(raw_ostream &Out, const Decl *D, bool ExtendedDescription, StringRef Prefix = StringRef()) argument
[all...]
/freebsd-head/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp240 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C, argument
241 StringRef ArchitectureName = StringRef()) {
245 Expected<StringRef> NameOrErr = C.getName();
269 static void error(llvm::Error E, StringRef FileName, argument
270 StringRef ArchitectureName = StringRef()) {
289 StringRef Name;
290 StringRef SectionName;
291 StringRef TypeNam
[all...]
/freebsd-head/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp25 #include "llvm/ADT/StringRef.h"
104 void EmitBytes(StringRef Data) { OS->EmitBytes(Data); }
110 void EmitBinaryData(StringRef Data) { OS->EmitBinaryData(Data); }
174 StringRef CodeViewDebug::getFullFilepath(const DIFile *File) {
179 StringRef Dir = File->getDirectory(), Filename = File->getFilename();
239 StringRef FullPath = getFullFilepath(F);
288 static StringRef getPrettyScopeName(const DIScope *Scope) {
289 StringRef ScopeName = Scope->getName();
303 return StringRef();
307 const DIScope *Scope, SmallVectorImpl<StringRef>
411 getFunctionOptions(const DISubroutineType *Ty, const DICompositeType *ClassTy = nullptr, StringRef SPName = StringRef(�)) argument
[all...]
/freebsd-head/contrib/bsnmp/tests/
H A Dcatch.hpp581 /// Note that, because a StringRef may be a substring of another string,
583 class StringRef { class in namespace:Catch
595 constexpr StringRef() noexcept = default;
597 StringRef( char const* rawChars ) noexcept;
599 constexpr StringRef( char const* rawChars, size_type size ) noexcept
604 StringRef( std::string const& stdString ) noexcept
614 auto operator == ( StringRef const& other ) const noexcept -> bool;
615 auto operator != (StringRef const& other) const noexcept -> bool {
632 // Returns the current start pointer. If the StringRef is not
640 auto substr( size_type start, size_type length ) const noexcept -> StringRef;
[all...]
/freebsd-head/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp368 const StringRef FileName = MachOObj->getFileName();
370 StringRef SymName = unwrapOrError(Symbol.getName(), FileName);
389 StringRef SegName = SLC.segname;
396 StringRef SegName = SLC.segname;
435 const StringRef FileName = O->getFileName();
453 StringRef NameOrErr = unwrapOrError(Section.getName(), O->getFileName());
462 StringRef S;
490 if (Expected<StringRef> NameOrErr = SI->getName())
990 Expected<StringRef> SymNameNext = Symbol.getName();
1023 StringRef SegNam
1913 ProcessMachO(StringRef Name, MachOObjectFile *MachOOF, StringRef ArchiveMemberName = StringRef(), StringRef ArchitectureName = StringRef()) argument
2216 printArchiveChild(StringRef Filename, const Archive::Child &C, size_t ChildIndex, bool verbose, bool print_offset, StringRef ArchitectureName = StringRef()) argument
2287 printArchiveHeaders(StringRef Filename, Archive *A, bool verbose, bool print_offset, StringRef ArchitectureName = StringRef()) argument
[all...]

Completed in 1906 milliseconds