Home
last modified time | relevance | path

Searched refs:Twine (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/external/llvm/unittests/ADT/
DTwineTest.cpp18 std::string repr(const Twine &Value) { in repr()
26 EXPECT_EQ("", Twine().str()); in TEST()
27 EXPECT_EQ("hi", Twine("hi").str()); in TEST()
28 EXPECT_EQ("hi", Twine(std::string("hi")).str()); in TEST()
29 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); in TEST()
30 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); in TEST()
31 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); in TEST()
32 EXPECT_EQ("hi", Twine(SmallString<4>("hi")).str()); in TEST()
36 EXPECT_EQ("123", Twine(123U).str()); in TEST()
37 EXPECT_EQ("123", Twine(123).str()); in TEST()
[all …]
/external/llvm/lib/Support/
DTwine.cpp16 std::string Twine::str() const { in str()
26 void Twine::toVector(SmallVectorImpl<char> &Out) const { in toVector()
31 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { in toNullTerminatedStringRef()
51 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild()
54 case Twine::NullKind: break; in printOneChild()
55 case Twine::EmptyKind: break; in printOneChild()
56 case Twine::TwineKind: in printOneChild()
59 case Twine::CStringKind: in printOneChild()
62 case Twine::StdStringKind: in printOneChild()
65 case Twine::StringRefKind: in printOneChild()
[all …]
DPath.cpp160 static std::error_code createUniqueEntity(const Twine &Model, int &ResultFD, in createUniqueEntity()
169 if (!sys::path::is_absolute(Twine(ModelStorage))) { in createUniqueEntity()
172 sys::path::append(TDir, Twine(ModelStorage)); in createUniqueEntity()
195 sys::fs::openFileForWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity()
443 void append(SmallVectorImpl<char> &path, const Twine &a, in append()
444 const Twine &b, in append()
445 const Twine &c, in append()
446 const Twine &d) { in append()
504 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension) { in replace_extension()
522 void native(const Twine &path, SmallVectorImpl<char> &result) { in native()
[all …]
DMemoryBuffer.cpp66 const Twine &Name;
67 NamedBufferAlloc(const Twine &Name) : Name(Name) {} in NamedBufferAlloc()
100 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize,
118 MemoryBuffer::getMemBufferCopy(StringRef InputData, const Twine &BufferName) { in getMemBufferCopy()
129 MemoryBuffer::getNewUninitMemBuffer(size_t Size, const Twine &BufferName) { in getNewUninitMemBuffer()
164 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize) { in getFileOrSTDIN()
174 MemoryBuffer::getFileSlice(const Twine &FilePath, uint64_t MapSize, in getFileSlice()
226 getMemoryBufferForStream(int FD, const Twine &BufferName) { in getMemoryBufferForStream()
246 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile()
253 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
[all …]
/external/llvm/include/llvm/ADT/
DTwine.h79 class Twine {
136 const Twine *twine;
165 explicit Twine(NodeKind Kind) in Twine() function
171 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function
179 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function
186 Twine &operator=(const Twine &Other) = delete;
257 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { in Twine() function
261 Twine(const Twine &) = default;
268 /*implicit*/ Twine(const char *Str) in Twine() function
280 /*implicit*/ Twine(const std::string &Str) in Twine() function
[all …]
DTriple.h203 explicit Triple(const Twine &Str);
204 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr);
205 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr,
206 const Twine &EnvironmentStr);
512 void setTriple(const Twine &Str);
/external/llvm/include/llvm/IR/
DIRBuilder.h42 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper()
247 GlobalVariable *CreateGlobalString(StringRef Str, const Twine &Name = "");
433 Value *PassThru = 0, const Twine &Name = "");
449 const Twine &Name = "");
457 const Twine &Name = "");
463 const Twine &Name = "");
471 const Twine &Name = "");
477 Type *DataTy, const Twine &Name = "");
555 InstTy *Insert(InstTy *I, const Twine &Name = "") const {
562 Constant *Insert(Constant *C, const Twine& = "") const {
[all …]
DInstrTypes.h139 const Twine &Name, Instruction *InsertBefore);
141 const Twine &Name, BasicBlock *InsertAtEnd);
158 const Twine &Name = Twine(),
166 const Twine &Name, BasicBlock *InsertAtEnd);
173 const Twine &Name = "") {\
179 const Twine &Name, BasicBlock *BB) {\
185 const Twine &Name, Instruction *I) {\
191 const Twine &Name = "") {
197 const Twine &Name, BasicBlock *BB) {
203 const Twine &Name, Instruction *I) {
[all …]
DDiagnosticInfo.h32 class Twine; variable
111 const Twine &MsgStr;
119 DiagnosticInfoInlineAsm(const Twine &MsgStr,
128 DiagnosticInfoInlineAsm(unsigned LocCookie, const Twine &MsgStr,
138 DiagnosticInfoInlineAsm(const Instruction &I, const Twine &MsgStr,
142 const Twine &getMsgStr() const { return MsgStr; } in getMsgStr()
212 const Twine &Msg,
216 DiagnosticInfoSampleProfile(const char *FileName, const Twine &Msg,
220 DiagnosticInfoSampleProfile(const Twine &Msg,
234 const Twine &getMsg() const { return Msg; } in getMsg()
[all …]
DInstructions.h80 const Twine &Name = "",
83 const Twine &Name, BasicBlock *InsertAtEnd);
85 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = nullptr);
86 AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd);
89 const Twine &Name = "", Instruction *InsertBefore = nullptr);
91 const Twine &Name, BasicBlock *InsertAtEnd);
173 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore);
174 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd);
175 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false,
177 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
[all …]
DGlobalAlias.h37 const Twine &Name, Constant *Aliasee, Module *Parent);
48 LinkageTypes Linkage, const Twine &Name,
53 LinkageTypes Linkage, const Twine &Name,
58 LinkageTypes Linkage, const Twine &Name,
62 static GlobalAlias *create(LinkageTypes Linkage, const Twine &Name,
66 static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
/external/llvm/include/llvm/Support/
DPath.h143 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension);
155 void append(SmallVectorImpl<char> &path, const Twine &a,
156 const Twine &b = "",
157 const Twine &c = "",
158 const Twine &d = "");
184 void native(const Twine &path, SmallVectorImpl<char> &result);
336 bool has_root_name(const Twine &path);
344 bool has_root_directory(const Twine &path);
352 bool has_root_path(const Twine &path);
360 bool has_relative_path(const Twine &path);
[all …]
DFileSystem.h287 std::error_code create_directories(const Twine &path,
296 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true);
309 std::error_code create_link(const Twine &to, const Twine &from);
324 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
330 std::error_code rename(const Twine &from, const Twine &to);
336 std::error_code copy_file(const Twine &From, const Twine &To);
364 std::error_code access(const Twine &Path, AccessMode Mode);
370 inline bool exists(const Twine &Path) { in exists()
378 inline bool can_execute(const Twine &Path) { in can_execute()
386 inline bool can_write(const Twine &Path) { in can_write()
[all …]
DMemoryBuffer.h73 getFile(const Twine &Filename, int64_t FileSize = -1,
80 getOpenFileSlice(int FD, const Twine &Filename, uint64_t MapSize,
90 getOpenFile(int FD, const Twine &Filename, uint64_t FileSize,
105 getMemBufferCopy(StringRef InputData, const Twine &BufferName = "");
117 getNewUninitMemBuffer(size_t Size, const Twine &BufferName = "");
125 getFileOrSTDIN(const Twine &Filename, int64_t FileSize = -1);
129 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset);
/external/llvm/lib/Target/R600/
DAMDGPUAsmPrinter.cpp140 OutStreamer.emitRawComment(" codeLenInByte = " + Twine(KernelInfo.CodeLen), in runOnMachineFunction()
142 OutStreamer.emitRawComment(" NumSgprs: " + Twine(KernelInfo.NumSGPR), in runOnMachineFunction()
144 OutStreamer.emitRawComment(" NumVgprs: " + Twine(KernelInfo.NumVGPR), in runOnMachineFunction()
146 OutStreamer.emitRawComment(" FloatMode: " + Twine(KernelInfo.FloatMode), in runOnMachineFunction()
148 OutStreamer.emitRawComment(" IeeeMode: " + Twine(KernelInfo.IEEEMode), in runOnMachineFunction()
150 OutStreamer.emitRawComment(" ScratchSize: " + Twine(KernelInfo.ScratchSize), in runOnMachineFunction()
155 Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize))); in runOnMachineFunction()
515 OutStreamer.EmitBytes(Twine("HSA Code Unit:" + in EmitAmdKernelCodeT()
516 Twine(header.hsail_version_major) + "." + in EmitAmdKernelCodeT()
517 Twine(header.hsail_version_minor) + ":" + in EmitAmdKernelCodeT()
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DByteStreamer.h31 virtual void EmitInt8(uint8_t Byte, const Twine &Comment = "") = 0;
32 virtual void EmitSLEB128(uint64_t DWord, const Twine &Comment = "") = 0;
33 virtual void EmitULEB128(uint64_t DWord, const Twine &Comment = "") = 0;
42 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8()
46 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { in EmitSLEB128()
50 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { in EmitULEB128()
61 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8()
64 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { in EmitSLEB128()
67 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { in EmitULEB128()
82 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8()
[all …]
DEHStreamer.cpp442 Asm->OutContext.GetOrCreateSymbol(Twine("GCC_except_table")+ in emitExceptionTable()
443 Twine(Asm->getFunctionNumber())); in emitExceptionTable()
507 Asm->OutStreamer.AddComment(">> Call Site " + Twine(idx) + " <<"); in emitExceptionTable()
508 Asm->OutStreamer.AddComment(" On exception at call site "+Twine(idx)); in emitExceptionTable()
520 Twine((S.Action - 1) / 2 + 1)); in emitExceptionTable()
569 Asm->OutStreamer.AddComment(">> Call Site " + Twine(++Entry) + " <<"); in emitExceptionTable()
572 Asm->OutStreamer.AddComment(Twine(" Call between ") + in emitExceptionTable()
585 Asm->OutStreamer.AddComment(Twine(" jumps to ") + in emitExceptionTable()
598 Twine((S.Action - 1) / 2 + 1)); in emitExceptionTable()
612 Asm->OutStreamer.AddComment(">> Action Record " + Twine(++Entry) + " <<"); in emitExceptionTable()
[all …]
/external/llvm/include/llvm/TableGen/
DError.h22 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg);
23 void PrintWarning(const char *Loc, const Twine &Msg);
24 void PrintWarning(const Twine &Msg);
26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
27 void PrintError(const char *Loc, const Twine &Msg);
28 void PrintError(const Twine &Msg);
30 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const Twine &Msg);
32 const Twine &Msg);
/external/llvm/unittests/Support/
DPath.cpp331 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F()
332 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F()
342 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F()
346 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F()
350 ASSERT_NO_ERROR(fs::create_link(Twine(TempPath), Twine(TempPath2))); in TEST_F()
352 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D2)); in TEST_F()
379 ASSERT_TRUE(sys::fs::exists(Twine(TempPath))); in TEST_F()
389 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F()
390 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B)); in TEST_F()
396 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F()
[all …]
/external/llvm/lib/TableGen/
DError.cpp26 const Twine &Msg) { in PrintMessage()
41 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning()
45 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning()
49 void PrintWarning(const Twine &Msg) { in PrintWarning()
53 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError()
57 void PrintError(const char *Loc, const Twine &Msg) { in PrintError()
61 void PrintError(const Twine &Msg) { in PrintError()
65 void PrintFatalError(const Twine &Msg) { in PrintFatalError()
70 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError()
/external/clang/lib/Frontend/
DInitPreprocessor.cpp57 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
71 Builder.append(Twine("#include \"") + File + "\""); in AddImplicitInclude()
75 Builder.append(Twine("#__include_macros \"") + File + "\""); in AddImplicitIncludeMacros()
160 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros()
162 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros()
163 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros()
164 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros()
167 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros()
169 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros()
170 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); in DefineFloatMacros()
[all …]
/external/llvm/lib/IR/
DDiagnosticInfo.cpp95 const Twine &MsgStr, in DiagnosticInfoInlineAsm()
150 return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str(); in getLocationStr()
174 const Twine &Msg) { in emitOptimizationRemark()
181 const Twine &Msg) { in emitOptimizationRemarkMissed()
189 const Twine &Msg) { in emitOptimizationRemarkAnalysis()
200 const DebugLoc &DLoc, const Twine &Msg) { in emitLoopVectorizeWarning()
202 Fn, DLoc, Twine("loop not vectorized: " + Msg))); in emitLoopVectorizeWarning()
206 const DebugLoc &DLoc, const Twine &Msg) { in emitLoopInterleaveWarning()
208 Fn, DLoc, Twine("loop not interleaved: " + Msg))); in emitLoopInterleaveWarning()
DInstructions.cpp181 unsigned NumReservedValues, const Twine &NameStr, in LandingPadInst()
188 unsigned NumReservedValues, const Twine &NameStr, in LandingPadInst()
211 const Twine &NameStr, in Create()
219 const Twine &NameStr, in Create()
226 const Twine &NameStr) { in init()
266 void CallInst::init(Value *Func, ArrayRef<Value *> Args, const Twine &NameStr) { in init()
288 void CallInst::init(Value *Func, const Twine &NameStr) { in init()
302 CallInst::CallInst(Value *Func, const Twine &Name, in CallInst()
312 CallInst::CallInst(Value *Func, const Twine &Name, in CallInst()
388 const Twine &Name) { in createMalloc()
[all …]
/external/clang/include/clang/Basic/
DMacroBuilder.h30 void defineMacro(const Twine &Name, const Twine &Value = "1") {
36 void undefineMacro(const Twine &Name) { in undefineMacro()
41 void append(const Twine &Str) { in append()
/external/clang/include/clang/Tooling/
DTooling.h144 bool runToolOnCode(clang::FrontendAction *ToolAction, const Twine &Code,
145 const Twine &FileName = "input.cc");
161 clang::FrontendAction *ToolAction, const Twine &Code,
162 const std::vector<std::string> &Args, const Twine &FileName = "input.cc",
171 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code,
172 const Twine &FileName = "input.cc");
182 buildASTFromCodeWithArgs(const Twine &Code,
184 const Twine &FileName = "input.cc");

12345678910>>...12