Home
last modified time | relevance | path

Searched refs:make_unique (Results 1 – 25 of 407) sorted by relevance

12345678910>>...17

/external/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp41 case ASTDeclList: return llvm::make_unique<ASTDeclListAction>(); in CreateFrontendBaseAction()
42 case ASTDump: return llvm::make_unique<ASTDumpAction>(); in CreateFrontendBaseAction()
43 case ASTPrint: return llvm::make_unique<ASTPrintAction>(); in CreateFrontendBaseAction()
44 case ASTView: return llvm::make_unique<ASTViewAction>(); in CreateFrontendBaseAction()
45 case DumpRawTokens: return llvm::make_unique<DumpRawTokensAction>(); in CreateFrontendBaseAction()
46 case DumpTokens: return llvm::make_unique<DumpTokensAction>(); in CreateFrontendBaseAction()
47 case EmitAssembly: return llvm::make_unique<EmitAssemblyAction>(); in CreateFrontendBaseAction()
48 case EmitBC: return llvm::make_unique<EmitBCAction>(); in CreateFrontendBaseAction()
49 case EmitHTML: return llvm::make_unique<HTMLPrintAction>(); in CreateFrontendBaseAction()
50 case EmitLLVM: return llvm::make_unique<EmitLLVMAction>(); in CreateFrontendBaseAction()
[all …]
/external/llvm/unittests/ADT/
DMakeUniqueTest.cpp18 auto p0 = make_unique<int>(); in TEST()
22 auto p1 = make_unique<int>(5); in TEST()
26 auto p2 = make_unique<std::tuple<int, int>>(0, 1); in TEST()
30 auto p3 = make_unique<std::tuple<int, int, int>>(0, 1, 2); in TEST()
34 auto p4 = make_unique<std::tuple<int, int, int, int>>(0, 1, 2, 3); in TEST()
38 auto p5 = make_unique<std::tuple<int, int, int, int, int>>(0, 1, 2, 3, 4); in TEST()
43 make_unique<std::tuple<int, int, int, int, int, int>>(0, 1, 2, 3, 4, 5); in TEST()
47 auto p7 = make_unique<std::tuple<int, int, int, int, int, int, int>>( in TEST()
52 auto p8 = make_unique<std::tuple<int, int, int, int, int, int, int, int>>( in TEST()
58 make_unique<std::tuple<int, int, int, int, int, int, int, int, int>>( in TEST()
[all …]
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp84 llvm::make_unique<VerifyIdIsBoundTo<Decl>>("x", 3))); in TEST()
99 llvm::make_unique<VerifyIdIsBoundTo<Type>>("x", 2))); in TEST()
111 llvm::make_unique<VerifyIdIsBoundTo<QualType>>("x", 2))); in TEST()
388 CallExpr, llvm::make_unique<VerifyIdIsBoundTo<ParmVarDecl>>("param", 1))); in TEST()
400 CallExpr2, llvm::make_unique<VerifyIdIsBoundTo<ParmVarDecl>>("param", 1))); in TEST()
412 llvm::make_unique<VerifyIdIsBoundTo<ParmVarDecl>>( in TEST()
416 llvm::make_unique<VerifyIdIsBoundTo<DeclRefExpr>>( in TEST()
421 llvm::make_unique<VerifyIdIsBoundTo<ParmVarDecl>>("param", 2))); in TEST()
424 llvm::make_unique<VerifyIdIsBoundTo<DeclRefExpr>>("arg", 2))); in TEST()
441 llvm::make_unique<VerifyIdIsBoundTo<ParmVarDecl>>("param"))); in TEST()
[all …]
DASTMatchersInternalTest.cpp66 HasClassB, llvm::make_unique<VerifyIdIsBoundTo<Decl>>("b"))); in TEST()
69 HasClassB, llvm::make_unique<VerifyIdIsBoundTo<Decl>>("a"))); in TEST()
72 HasClassB, llvm::make_unique<VerifyIdIsBoundTo<Decl>>("b"))); in TEST()
89 HasClassB, llvm::make_unique<VerifyIdIsBoundTo<Decl>>("b"))); in TEST()
92 HasClassB, llvm::make_unique<VerifyIdIsBoundTo<Decl>>("a"))); in TEST()
95 HasClassB, llvm::make_unique<VerifyIdIsBoundTo<Decl>>("b"))); in TEST()
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.create/
Dmake_unique.single.pass.cpp18 std::unique_ptr<int> p1 = std::make_unique<int>(1); in main()
20 p1 = std::make_unique<int> (); in main()
25 std::unique_ptr<std::string> p2 = std::make_unique<std::string> ( "Meow!" ); in main()
27 p2 = std::make_unique<std::string> (); in main()
29 p2 = std::make_unique<std::string> ( 6, 'z' ); in main()
Dmake_unique.array.pass.cpp28 auto p1 = std::make_unique<int[]>(5); in main()
34 auto p2 = std::make_unique<std::string[]>(5); in main()
40 auto p3 = std::make_unique<foo[]>(7); in main()
/external/clang/unittests/Basic/
DFileManagerTest.cpp101 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
111 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
128 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F()
162 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
179 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F()
196 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F()
215 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F()
228 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F()
241 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
242 auto statCacheOwner = llvm::make_unique<FakeStatCache>(); in TEST_F()
[all …]
/external/llvm/unittests/DebugInfo/PDB/
DMappedBlockStreamTest.cpp95 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
109 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
122 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
140 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
152 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
165 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
178 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
190 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
203 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
223 MappedBlockStreamImpl S(llvm::make_unique<IndexedStreamData>(0, F), F); in TEST()
[all …]
/external/llvm/lib/DebugInfo/PDB/DIA/
DDIASession.cpp145 auto RawSymbol = llvm::make_unique<DIARawSymbol>(*this, GlobalScope); in getGlobalScope()
157 auto RawSymbol = llvm::make_unique<DIARawSymbol>(*this, LocatedSymbol); in getSymbolById()
174 auto RawSymbol = llvm::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolByAddress()
191 return llvm::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbers()
200 return llvm::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersByAddress()
222 return llvm::make_unique<DIAEnumSourceFiles>(*this, SourceFiles); in findSourceFiles()
258 return llvm::make_unique<DIAEnumSourceFiles>(*this, Files); in getAllSourceFiles()
271 return llvm::make_unique<DIAEnumSourceFiles>(*this, Files); in getSourceFilesForCompiland()
280 return llvm::make_unique<DIASourceFile>(*this, LocatedFile); in getSourceFileById()
288 return llvm::make_unique<DIAEnumDebugStreams>(DiaEnumerator); in getDebugStreams()
/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp16 make_unique(Args &&... args) { in make_unique() function
205 auto Result = helper::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
232 return helper::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
256 return helper::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
308 LHS = helper::make_unique<BinaryExprAST>(BinOp, std::move(LHS), in ParseBinOpRHS()
345 return helper::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
356 return helper::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
364 auto Proto = helper::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
366 return helper::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldCOFF.cpp51 return make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create()
53 return make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create()
55 return make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create()
62 return llvm::make_unique<LoadedCOFFObjectInfo>(*this, *ObjSectionToIDOrErr); in loadObject()
/external/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
DMPIBugReporter.cpp34 auto Report = llvm::make_unique<BugReport>(*DoubleNonblockingBugType, in reportDoubleNonblocking()
43 Report->addVisitor(llvm::make_unique<RequestNodeVisitor>( in reportDoubleNonblocking()
58 llvm::make_unique<BugReport>(*MissingWaitBugType, ErrorText, ExplNode); in reportMissingWait()
63 Report->addVisitor(llvm::make_unique<RequestNodeVisitor>( in reportMissingWait()
78 llvm::make_unique<BugReport>(*UnmatchedWaitBugType, ErrorText, ExplNode); in reportUnmatchedWait()
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp224 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
251 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
275 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
328 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS()
364 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
375 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
383 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
385 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
541 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); in InitializeModuleAndPassManager()
545 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
[all …]
/external/llvm/lib/TableGen/
DSetTheory.cpp248 addOperator("add", llvm::make_unique<AddOp>()); in SetTheory()
249 addOperator("sub", llvm::make_unique<SubOp>()); in SetTheory()
250 addOperator("and", llvm::make_unique<AndOp>()); in SetTheory()
251 addOperator("shl", llvm::make_unique<ShlOp>()); in SetTheory()
252 addOperator("trunc", llvm::make_unique<TruncOp>()); in SetTheory()
253 addOperator("rotl", llvm::make_unique<RotOp>(false)); in SetTheory()
254 addOperator("rotr", llvm::make_unique<RotOp>(true)); in SetTheory()
255 addOperator("decimate", llvm::make_unique<DecimateOp>()); in SetTheory()
256 addOperator("interleave", llvm::make_unique<InterleaveOp>()); in SetTheory()
257 addOperator("sequence", llvm::make_unique<SequenceOp>()); in SetTheory()
[all …]
/external/llvm/lib/Target/X86/
DX86TargetMachine.cpp49 return make_unique<X86_64MachoTargetObjectFile>(); in createTLOF()
50 return make_unique<TargetLoweringObjectFileMachO>(); in createTLOF()
54 return make_unique<X86LinuxNaClTargetObjectFile>(); in createTLOF()
56 return make_unique<X86ELFTargetObjectFile>(); in createTLOF()
58 return make_unique<X86WindowsTargetObjectFile>(); in createTLOF()
60 return make_unique<TargetLoweringObjectFileCOFF>(); in createTLOF()
217 I = llvm::make_unique<X86Subtarget>(TargetTriple, CPU, FS, *this, in getSubtargetImpl()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp323 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
350 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
374 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
403 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr()
449 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr()
498 return llvm::make_unique<VarExprAST>(std::move(VarNames), std::move(Body)); in ParseVarExpr()
539 return llvm::make_unique<UnaryExprAST>(Opc, std::move(Operand)); in ParseUnary()
576 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS()
653 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype()
665 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp215 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
242 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
266 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
319 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS()
355 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
366 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
374 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
376 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
587 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); in main()
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp267 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
294 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
318 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
347 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr()
393 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr()
453 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS()
489 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype()
500 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
508 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
510 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
[all …]
/external/llvm/unittests/Support/
DIteratorTest.cpp62 V.push_back(make_unique<int>(1)); in TEST()
63 V.push_back(make_unique<int>(2)); in TEST()
64 V.push_back(make_unique<int>(3)); in TEST()
65 V.push_back(make_unique<int>(4)); in TEST()
DStreamingMemoryObjectTest.cpp43 auto DS = make_unique<NullDataStreamer>(); in TEST()
49 auto DS = make_unique<NullDataStreamer>(); in TEST()
59 StreamingMemoryObject O(make_unique<BufferStreamer>(StringRef( in TEST()
/external/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp100 llvm::make_unique<FunctionSummary>(Flags, NumInsts); in computeFunctionSummary()
113 llvm::make_unique<GlobalVarSummary>(Flags); in computeVariableSummary()
121 : Index(llvm::make_unique<ModuleSummaryIndex>()), M(M) { in ModuleSummaryIndexBuilder()
141 BFIPtr = llvm::make_unique<BlockFrequencyInfo>(F, BPI, LI); in ModuleSummaryIndexBuilder()
174 IndexBuilder = llvm::make_unique<ModuleSummaryIndexBuilder>( in runOnModule()
/external/clang/lib/Frontend/
DPCHContainerOperations.cpp58 return llvm::make_unique<RawPCHContainerGenerator>(OS, Buffer); in CreatePCHContainerGenerator()
68 registerWriter(llvm::make_unique<RawPCHContainerWriter>()); in PCHContainerOperations()
69 registerReader(llvm::make_unique<RawPCHContainerReader>()); in PCHContainerOperations()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp308 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
335 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
359 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
388 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr()
434 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr()
483 return llvm::make_unique<VarExprAST>(std::move(VarNames), std::move(Body)); in ParseVarExpr()
524 return llvm::make_unique<UnaryExprAST>(Opc, std::move(Operand)); in ParseUnary()
561 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS()
638 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype()
650 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
[all …]
/external/llvm/lib/ExecutionEngine/Orc/
DIndirectionUtils.cpp33 return llvm::make_unique<CCMgrT>(ErrorHandlerAddress); in createLocalCompileCallbackManager()
39 return llvm::make_unique<CCMgrT>(ErrorHandlerAddress); in createLocalCompileCallbackManager()
42 return llvm::make_unique<CCMgrT>(ErrorHandlerAddress); in createLocalCompileCallbackManager()
55 return llvm::make_unique< in createLocalIndirectStubsManagerBuilder()
62 return llvm::make_unique< in createLocalIndirectStubsManagerBuilder()
67 return llvm::make_unique< in createLocalIndirectStubsManagerBuilder()
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp300 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr()
327 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr()
351 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr()
380 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr()
426 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr()
465 return llvm::make_unique<UnaryExprAST>(Opc, std::move(Operand)); in ParseUnary()
502 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS()
579 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype()
591 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition()
599 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr()
[all …]

12345678910>>...17