Searched defs:StringRef (Results 1 - 25 of 25) 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.h192 void addAttribute(StringRef Kind, StringRef Val = StringRef()) { argument
202 bool hasAttribute(StringRef Kind) const {
217 Attribute getAttribute(StringRef Kind) const {
H A DFunction.h21 #include "llvm/ADT/StringRef.h"
207 static Intrinsic::ID lookupIntrinsicID(StringRef Name);
241 void addFnAttr(StringRef Kind, StringRef Val = StringRef()) { argument
257 void removeFnAttr(StringRef Kind) {
324 void setSectionPrefix(StringRef Prefix);
327 Optional<StringRef> getSectionPrefix() const;
335 bool hasFnAttribute(StringRef Kind) const {
345 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 Function *F, StringRef Banner, argument
74 StringRef Extra = StringRef()) {
80 void printIR(const Module *M, StringRef Banner, StringRef Extra = StringRef()) { argument
91 void printIR(const LazyCallGraph::SCC *C, StringRef Banner, argument
92 StringRef Extra = StringRef()) {
105 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"
27 /// A container which contains a StringRef plus a precomputed hash.
35 explicit CachedHashStringRef(StringRef S)
36 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {}
38 CachedHashStringRef(StringRef S, uint32_t Hash)
43 StringRef val() const { return StringRef(P, Size); }
51 return CachedHashStringRef(DenseMapInfo<StringRef>::getEmptyKey(), 0);
54 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++ -*-===//
38 class StringRef;
40 /// Helper functions for StringRef::getAsInteger.
41 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
44 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
46 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
48 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
50 /// StringRef - Represent a constant reference to a string, i.e. a character
55 /// lifetime extends past that of the StringRef. For this reason, it is not in
56 /// general safe to store a StringRef
57 class LLVM_GSL_POINTER StringRef { class in namespace:llvm
106 /*implicit*/ constexpr StringRef(const char *Str) function in class:llvm::StringRef
110 /*implicit*/ constexpr StringRef(const char *data, size_t length) function in class:llvm::StringRef
114 /*implicit*/ StringRef(const std::string &Str) function in class:llvm::StringRef
119 /*implicit*/ constexpr StringRef(std::string_view 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.h21 #include "llvm/ADT/StringRef.h"
63 bool hasAttribute(StringRef Kind) const;
68 StringRef getKindAsString() const;
69 StringRef getValueAsString() const;
93 static void Profile(FoldingSetNodeID &ID, StringRef Kind, StringRef Values) {
154 StringAttributeImpl(StringRef Kind, StringRef Val = StringRef()) argument
165 StringRef getStringKin
[all...]
/freebsd-head/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h88 std::map<llvm::StringRef, llvm::StringRef, std::greater<llvm::StringRef>>
101 std::string remapPath(StringRef Path) const override {
151 StringRef CWDName;
235 llvm::DIType *getOrCreateStructPtrType(StringRef Name, llvm::DIType *&Cache);
286 llvm::DIType *createFieldType(StringRef name, QualType type,
292 llvm::DIType *createFieldType(StringRef name, QualType type,
366 std::string remapDIPath(StringRef) const;
474 StringRef Nam
727 internString(StringRef A, StringRef B = StringRef()) argument
[all...]
H A DCodeGenFunction.h410 virtual StringRef getHelperName() const { return "__captured_stmt"; }
1044 JumpDest getJumpDestInCurrentScope(StringRef Name = StringRef()) { argument
1652 static std::string getNameWithSeparators(ArrayRef<StringRef> Parts,
1653 StringRef FirstSeparator = ".",
1654 StringRef Separator = ".");
3421 StringRef ParentName,
3424 EmitOMPTargetParallelDeviceFunction(CodeGenModule &CGM, StringRef ParentName,
3428 CodeGenModule &CGM, StringRef ParentName,
3432 CodeGenModule &CGM, StringRef ParentNam
[all...]
H A DCGExpr.cpp2393 StringRef Name = StringRef()) {
2892 StringRef FnName = CurFn->getName();
2895 StringRef NameItems[] = {
2948 StringRef(), StringRef(), None, Buffer,
3013 StringRef FilenameString = PLoc.getFilename();
3109 const StringRef CheckName = CheckInfo.Name;
3149 const StringRef CheckName = SanitizerHandlers[CheckHandler].Name;
2391 EmitBitCastOfLValueToProperType(CodeGenFunction &CGF, llvm::Value *V, llvm::Type *IRType, StringRef Name = StringRef()) argument
/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()) {
303 StringRef SegmentName = StringRef(Se
[all...]
/freebsd-head/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h24 #include "llvm/ADT/StringRef.h"
110 StringRef Name;
112 explicit CheckerNameRef(StringRef Name) : Name(Name) {}
117 StringRef getName() const { return Name; }
118 operator StringRef() const { return Name; }
188 StringRef OptionName,
189 StringRef ExpectedValueDesc) const;
/freebsd-head/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h16 #include "llvm/ADT/StringRef.h"
34 StringRef SymName;
83 StringRef getSymName() override { return SymName; }
149 StringRef getToken() const {
151 return StringRef(Tok.Data, Tok.Length);
153 void setTokenValue(StringRef Value) {
615 static std::unique_ptr<X86Operand> CreateToken(StringRef Str, SMLoc Loc) {
626 StringRef SymName = StringRef(), void *OpDecl = nullptr) {
650 StringRef SymNam
624 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc, bool AddressOf = false, SMLoc OffsetOfLoc = SMLoc(), StringRef SymName = StringRef(), void *OpDecl = nullptr) argument
648 CreateImm(const MCExpr *Val, SMLoc StartLoc, SMLoc EndLoc, StringRef SymName = StringRef(), void *OpDecl = nullptr, bool GlobalRef = true) argument
664 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc, unsigned Size = 0, StringRef SymName = StringRef(), void *OpDecl = nullptr, unsigned FrontendSize = 0) argument
685 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp, unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, SMLoc EndLoc, unsigned Size = 0, unsigned DefaultBaseReg = X86::NoRegister, StringRef SymName = StringRef(), void *OpDecl = nullptr, unsigned FrontendSize = 0) argument
[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/clang/lib/Lex/
H A DPragma.cpp42 #include "llvm/ADT/StringRef.h"
64 EmptyPragmaHandler::EmptyPragmaHandler(StringRef Name) : PragmaHandler(Name) {}
78 PragmaHandler *PragmaNamespace::FindHandler(StringRef Name,
85 I = Handlers.find(StringRef());
115 : StringRef(),
509 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid);
595 CreateString(StringRef(&StrVal[1], StrVal.size() - 2), MacroTok);
683 StringRef SourceFileName;
704 StringRef ReplaceFileName;
721 StringRef OriginalSourc
1492 PragmaMessageHandler(PPCallbacks::PragmaMessageKind Kind, StringRef Namespace = StringRef()) argument
[all...]
/freebsd-head/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A DStatistics.cpp175 StringRef Prefix = StringRef()) {
527 StringRef FormatName = Obj.getFileFormatName();
174 constructDieID(DWARFDie Die, StringRef Prefix = StringRef()) argument
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp41 #include "llvm/ADT/StringRef.h"
54 static StringRef StripTrailingDots(StringRef s) {
55 for (StringRef::size_type i = s.size(); i != 0; --i)
61 PathDiagnosticPiece::PathDiagnosticPiece(StringRef s,
121 StringRef CheckerName, const Decl *declWithIssue, StringRef bugtype,
122 StringRef verboseDesc, StringRef shortDesc, StringRef categor
906 describeClass(raw_ostream &Out, const CXXRecordDecl *D, StringRef Prefix = StringRef()) argument
918 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.cpp249 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C, argument
250 StringRef ArchitectureName = StringRef()) {
254 Expected<StringRef> NameOrErr = C.getName();
278 static void error(llvm::Error E, StringRef FileName, argument
279 StringRef ArchitectureName = StringRef()) {
298 StringRef Name;
299 StringRef SectionName;
300 StringRef TypeNam
[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/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp25 #include "llvm/ADT/StringRef.h"
104 void emitBytes(StringRef Data) override { OS->emitBytes(Data); }
110 void emitBinaryData(StringRef Data) override { OS->emitBinaryData(Data); }
174 StringRef CodeViewDebug::getFullFilepath(const DIFile *File) {
179 StringRef Dir = File->getDirectory(), Filename = File->getFilename();
239 StringRef FullPath = getFullFilepath(F);
295 static StringRef getPrettyScopeName(const DIScope *Scope) {
296 StringRef ScopeName = Scope->getName();
310 return StringRef();
314 const DIScope *Scope, SmallVectorImpl<StringRef>
430 getFunctionOptions(const DISubroutineType *Ty, const DICompositeType *ClassTy = nullptr, StringRef SPName = StringRef(�)) argument
[all...]
/freebsd-head/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp358 const StringRef FileName = MachOObj->getFileName();
360 StringRef SymName = unwrapOrError(Symbol.getName(), FileName);
379 StringRef SegName = SLC.segname;
386 StringRef SegName = SLC.segname;
425 const StringRef FileName = O->getFileName();
443 StringRef NameOrErr = unwrapOrError(Section.getName(), O->getFileName());
452 StringRef S;
480 if (Expected<StringRef> NameOrErr = SI->getName())
980 Expected<StringRef> SymNameNext = Symbol.getName();
1013 StringRef SegNam
1907 ProcessMachO(StringRef Name, MachOObjectFile *MachOOF, StringRef ArchiveMemberName = StringRef(), StringRef ArchitectureName = StringRef()) argument
2210 printArchiveChild(StringRef Filename, const Archive::Child &C, size_t ChildIndex, bool verbose, bool print_offset, StringRef ArchitectureName = StringRef()) argument
2281 printArchiveHeaders(StringRef Filename, Archive *A, bool verbose, bool print_offset, StringRef ArchitectureName = StringRef()) argument
[all...]

Completed in 173 milliseconds