/external/llvm/include/llvm/MC/ |
MCDwarf.h | 35 /// MCDwarfFile - Instances of this class represent the name of the dwarf 41 // Name - the base name of the file without its directory path. 43 StringRef Name; 45 // DirIndex - the index into the list of directory names for this file name. 50 MCDwarfFile(StringRef name, unsigned dirIndex) 51 : Name(name), DirIndex(dirIndex) {} 56 /// getName - Get the base name of this MCDwarfFile. 57 StringRef getName() const { return Name; } [all...] |
/external/llvm/include/llvm/ |
Value.h | 54 /// have a name and they belong to some Module. Setting the name on the Value 82 friend class ValueSymbolTable; // Allow ValueSymbolTable to directly mod Name. 84 ValueName *Name; 114 bool hasName() const { return Name != 0; } 115 ValueName *getValueName() const { return Name; } 117 /// getName() - Return a constant reference to the value's name. This is cheap 128 /// getNameStr() - Return the name of the specified value, *constructing a 133 /// setName() - Change the name of the value, choosing a new unique name i [all...] |
/external/llvm/lib/AsmParser/ |
LLParser.h | 46 t_LocalName, t_GlobalName, // Name in StrVal. 143 /// GetGlobalVal - Get a value with the specified name or ID, creating a 209 bool ParseGlobal(const std::string &Name, LocTy Loc, unsigned Linkage, 211 bool ParseAlias(const std::string &Name, LocTy Loc, unsigned Visibility); 226 bool ParseStructDefinition(SMLoc TypeLoc, StringRef Name, 252 /// GetVal - Get a value with the specified name or ID, creating a 255 Value *GetVal(const std::string &Name, Type *Ty, LocTy Loc); 259 /// basic block, this installs its name. 263 /// GetBB - Get a basic block with the specified name or ID, creating a 266 BasicBlock *GetBB(const std::string &Name, LocTy Loc) [all...] |
/external/llvm/lib/CodeGen/ |
MachineFunction.cpp | 415 SmallString<60> Name; 416 raw_svector_ostream(Name) 418 return Ctx.GetOrCreateSymbol(Name.str());
|
/external/llvm/lib/MC/MCParser/ |
DarwinAsmParser.cpp | 328 StringRef Name; 329 if (getParser().ParseIdentifier(Name)) 333 MCSymbol *Sym = getContext().GetOrCreateSymbol(Name); 380 StringRef Name; 381 if (getParser().ParseIdentifier(Name)) 385 MCSymbol *Sym = getContext().GetOrCreateSymbol(Name); 524 StringRef Name; 525 if (getParser().ParseIdentifier(Name)) 529 MCSymbol *Sym = getContext().GetOrCreateSymbol(Name); 581 return TokError("expected segment name after '.zerofill' directive") [all...] |
/external/llvm/lib/VMCore/ |
AutoUpgrade.cpp | 36 StringRef Name = F->getName(); 37 if (Name.size() <= 8 || !Name.startswith("llvm.")) 39 Name = Name.substr(5); // Strip off "llvm." 44 switch (Name[0]) { 47 if (Name.startswith("atomic.cmp.swap") || 48 Name.startswith("atomic.swap") || 49 Name.startswith("atomic.load.add") || 50 Name.startswith("atomic.load.sub") | [all...] |
/external/llvm/tools/llvm-objdump/ |
llvm-objdump.cpp | 190 StringRef Name; 191 if (error(si->getName(Name))) break; 192 Symbols.push_back(std::make_pair(Address, Name)); 213 StringRef name; local 214 if (error(i->getName(name))) break; 215 outs() << "Disassembly of section " << name << ':'; 220 Symbols.push_back(std::make_pair(0, name)); 305 SmallString<16> name; local 310 if (error(rel_cur->getTypeName(name))) goto skip_print_rel; 313 outs() << format("\t\t\t%8x: ", SectionAddr + addr) << name << "\t 444 StringRef name; local [all...] |
/external/llvm/utils/FileCheck/ |
FileCheck.cpp | 170 // second form is [[foo]] which is a reference to foo. The variable name 186 // Get the regex name (e.g. "foo"). 188 StringRef Name = MatchStr.substr(0, NameEnd); 190 if (Name.empty()) { 191 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, 192 "invalid name in named regex: empty name"); 196 // Verify that the name is well formed. 197 for (unsigned i = 0, e = Name.size(); i != e; ++i) 198 if (Name[i] != '_' && !isalnum(Name[i])) [all...] |
/external/llvm/utils/TableGen/ |
EDEmitter.cpp | 40 std::string Name; 43 EnumEmitter(const char *N) : Name(N) { 50 o.indent(i) << "enum " << Name.c_str() << " {" << "\n"; 67 o.indent(i) << "enum " << Name.c_str() << " {" << "\n"; 243 #define REG(str) if (name == str) SET("kOperandTypeRegister"); 244 #define MEM(str) if (name == str) SET("kOperandTypeX86Memory"); 245 #define LEA(str) if (name == str) SET("kOperandTypeX86EffectiveAddress"); 246 #define IMM(str) if (name == str) SET("kOperandTypeImmediate"); 247 #define PCR(str) if (name == str) SET("kOperandTypeX86PCRelative"); 249 /// X86TypeFromOpName - Processes the name of a single X86 operand (which i 435 const std::string &name = inst.TheDef->getName(); local 767 const std::string &name = inst.TheDef->getName(); local [all...] |
SubtargetEmitter.cpp | 50 // Get and emit name 92 const std::string &Name = Feature->getName(); 93 const std::string &CommandLineName = Feature->getValueAsString("Name"); 102 << Target << "::" << Name << ", "; 150 const std::string &Name = Processor->getValueAsString("Name"); 156 << "\"" << Name << "\", " 157 << "\"Select the " << Name << " processor\", "; 196 // Get name of itinerary class 210 void SubtargetEmitter::FormItineraryStageString(const std::string &Name, [all...] |
/frameworks/compile/slang/ |
slang_rs_export_type.cpp | 403 // Get type name 481 llvm::StringRef Name = RD->getName(); 482 if (Name.empty()) { 484 Name = RD->getTypedefNameForAnonDecl()->getName(); 487 if (Name.empty()) { 488 // Try to find a name from redeclaration (i.e. typedef) 495 Name = (*RI)->getName(); 496 if (!Name.empty()) 501 return Name; 504 // "*" plus pointee name [all...] |
/external/clang/include/clang/AST/ |
Decl.h | 98 /// NamedDecl - This represents a decl with a name. Many decls have names such 101 /// Name - The name of this declaration, which is typically a normal 102 /// identifier but may also be a special kind of name (C++ 104 DeclarationName Name; 108 : Decl(DK, DC, L), Name(N) { } 113 /// no name (e.g., for an unnamed class) or if the name is a special 114 /// name (C++ constructor, Objective-C selector, etc.). 115 IdentifierInfo *getIdentifier() const { return Name.getAsIdentifierInfo(); [all...] |
DeclarationName.h | 35 /// DeclarationName - The name of a declaration. In the common case, 37 /// name. However, it also provides encodings for Objective-C 43 /// NameKind - The kind of name this object contains. 58 /// StoredNameKind - The kind of name that is actually stored in the 68 /// Ptr - The lowest two bits are used to express what kind of name 70 /// on the kind of name this is, the upper bits of Ptr may have one 73 /// StoredIdentifier - The name is a normal identifier, and Ptr is 76 /// StoredObjCZeroArgSelector - The name is an Objective-C 78 /// pointer pointing to the selector name. 80 /// StoredObjCOneArgSelector - The name is an Objective-C selecto [all...] |
/external/clang/lib/AST/ |
DeclCXX.cpp | 348 DeclarationName Name = Context.DeclarationNames.getCXXOperatorName(OO_Equal); 352 for (llvm::tie(Op, OpEnd) = this->lookup(Name); Op != OpEnd; ++Op) { [all...] |
DeclPrinter.cpp | 577 std::string Name = D->getNameAsString(); 578 D->getType().getAsStringInternal(Name, Policy); 579 Out << Name; 607 std::string Name = D->getNameAsString(); 611 T.getAsStringInternal(Name, Policy); 612 Out << Name; 764 if (IdentifierInfo *Name = NTTP->getIdentifier()) { 766 Out << Name->getName(); 844 std::string name = OMD->getSelector().getAsString(); local 849 pos = name.find_first_of(':', lastPos) 856 Out << " " << name; local [all...] |
Stmt.cpp | 27 const char *Name; 41 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ 49 return getStmtInfoTableEntry((StmtClass) StmtBits.sClass).Name; 59 if (StmtClassInfo[i].Name == 0) continue; 65 if (StmtClassInfo[i].Name == 0) continue; 68 << StmtClassInfo[i].Name << ", " << StmtClassInfo[i].Size 295 /// This returns -1 if the operand name is invalid. 439 // Verify that an operand with that name exists.
|
/external/clang/lib/CodeGen/ |
CGRTTI.cpp | 34 /// GetAddrOfTypeName - Returns the mangled type name of the given type. 123 StringRef Name = OutName.str(); 125 // We know that the mangled name of the type starts at index 4 of the 126 // mangled name of the typename, so we can just index into it in order to 127 // get the mangled name of the type. 128 llvm::Constant *Init = llvm::ConstantArray::get(VMContext, Name.substr(4)); 131 CGM.CreateOrReplaceCXXRuntimeVariable(Name, Init->getType(), Linkage); 139 // Mangle the RTTI name. 144 StringRef Name = OutName.str(); 147 llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name); [all...] |
/external/clang/lib/Driver/ |
Driver.cpp | 78 Name = llvm::sys::path::stem(ClangExecutable); 520 << "Name: \"" << A->getOption().getName() << "\", " 532 getOpts().PrintHelp(llvm::outs(), Name.c_str(), DriverTitle.c_str(), 801 // right name without overwriting it. We could remove this oddity by just [all...] |
/external/clang/lib/Frontend/ |
CompilerInvocation.cpp | 37 #define ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN) \ 38 case NAME##Model: return CMDFLAG; 47 #define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN) \ 48 case NAME##Model: return CMDFLAG; 57 #define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATFN, AUTOCREATE) \ 58 case PD_##NAME: return CMDFLAG; 67 #define ANALYSIS_PURGE(NAME, CMDFLAG, DESC) \ 68 case NAME: return CMDFLAG; 164 Res.push_back("-main-file-name"); 301 Res.push_back("-fdiagnostics-show-name"); [all...] |
/external/clang/lib/Parse/ |
ParseExpr.cpp | 438 /// '(' type-name ')' cast-expression 446 /// 'sizeof' '(' type-name ')' 449 /// [GNU] '__alignof' '(' type-name ')' 473 /// [GNU] '__builtin_va_arg' '(' assignment-expression ',' type-name ')' 474 /// [GNU] '__builtin_offsetof' '(' type-name ',' offsetof-member-designator')' 477 /// [GNU] '__builtin_types_compatible_p' '(' type-name ',' type-name ')' 482 /// [OBJC] '@encode' '(' type-name ')' 488 /// [C++] 'const_cast' '<' type-name '>' '(' expression ')' [C++ 5.2p1] 489 /// [C++] 'dynamic_cast' '<' type-name '>' '(' expression ')' [C++ 5.2p1 [all...] |
ParseTemplate.cpp | 484 // Grab the template parameter name (if given) 622 // basically we didn't parse the type name because we couldn't associate 656 /// \brief Parses a template-id that after the template name has 665 /// \param TemplateNameLoc the source location of the template name 667 /// \param SS if non-NULL, the nested-name-specifier preceding the 668 /// template name. 682 assert(Tok.is(tok::less) && "Must have already parsed the template-name"); 737 /// The first token in the stream must be the name of a template that 742 /// a type annotation that includes the optional nested-name-specifier 745 /// nested-name-specifier [all...] |
Parser.cpp | [all...] |
/external/clang/lib/Sema/ |
Sema.cpp | 143 // If either of the 128-bit integer types are unavailable to name lookup, 434 // This means that name lookup that occurs within the template 438 // future, we either need to be able to filter the results of name lookup 721 /// location, looking for a macro expansion with the given name. 724 bool Sema::findMacroSpelling(SourceLocation &locref, StringRef name) { 732 // If that's written with the name, stop here. 734 if (getPreprocessor().getSpelling(loc, buffer) == name) { 747 /// declarations) that injects a name for name-lookup purposes and, therefore, 846 std::string Name = cast<NamedDecl>(TheDecl)->getNameAsString() [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
MacOSKeychainAPIChecker.cpp | 79 const char* Name; 90 /// Given the function name, returns the index of the allocator/deallocator 92 static unsigned getTrackedFunctionIndex(StringRef Name, bool IsAllocator); 181 unsigned MacOSKeychainAPIChecker::getTrackedFunctionIndex(StringRef Name, 185 if (FI.Name != Name) 275 << FunctionsToTrack[PDeallocIdx].Name << "' should be used."; 316 << FunctionsToTrack[DIdx].Name 515 << FunctionsToTrack[FI.DeallocatorIdx].Name << "'.";
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 116 std::string Name; 118 VariableExprAST(const std::string &name) : Name(name) {} 163 /// which captures its name, and its argument names (thus implicitly the number 166 std::string Name; 169 PrototypeAST(const std::string &name, const std::vector<std::string> &args) 170 : Name(name), Args(args) {} 405 return ErrorP("Expected function name in prototype") [all...] |