/external/llvm/unittests/ADT/ |
D | MakeUniqueTest.cpp | 18 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/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.create/ |
D | make_unique.single.pass.cpp | 18 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()
|
D | make_unique.array.pass.cpp | 28 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/ |
D | FileManagerTest.cpp | 101 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/lib/DebugInfo/PDB/DIA/ |
D | DIASession.cpp | 127 auto RawSymbol = llvm::make_unique<DIARawSymbol>(*this, GlobalScope); in getGlobalScope() 139 auto RawSymbol = llvm::make_unique<DIARawSymbol>(*this, LocatedSymbol); in getSymbolById() 156 auto RawSymbol = llvm::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolByAddress() 166 return llvm::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersByAddress() 174 return llvm::make_unique<DIAEnumSourceFiles>(*this, Files); in getAllSourceFiles() 187 return llvm::make_unique<DIAEnumSourceFiles>(*this, Files); in getSourceFilesForCompiland() 196 return llvm::make_unique<DIASourceFile>(*this, LocatedFile); in getSourceFileById() 204 return llvm::make_unique<DIAEnumDebugStreams>(DiaEnumerator); in getDebugStreams()
|
/external/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 15 make_unique(Args &&... args) { in make_unique() function 204 auto Result = helper::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr() 231 return helper::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr() 255 return helper::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr() 307 LHS = helper::make_unique<BinaryExprAST>(BinOp, std::move(LHS), in ParseBinOpRHS() 344 return helper::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 355 return helper::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition() 363 auto Proto = helper::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 365 return helper::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetMachine.cpp | 47 return make_unique<X86_64MachoTargetObjectFile>(); in createTLOF() 48 return make_unique<TargetLoweringObjectFileMachO>(); in createTLOF() 52 return make_unique<X86LinuxNaClTargetObjectFile>(); in createTLOF() 54 return make_unique<X86ELFTargetObjectFile>(); in createTLOF() 56 return make_unique<X86WindowsTargetObjectFile>(); in createTLOF() 58 return make_unique<TargetLoweringObjectFileCOFF>(); in createTLOF() 166 I = llvm::make_unique<X86Subtarget>(TargetTriple, CPU, FS, *this, in getSubtargetImpl()
|
/external/llvm/lib/TableGen/ |
D | SetTheory.cpp | 248 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/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 213 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr() 240 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr() 264 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr() 317 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS() 353 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 364 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition() 372 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 374 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr() 531 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in InitializeModuleAndPassManager() 535 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldCOFF.cpp | 52 return make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create() 54 return make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create() 60 return llvm::make_unique<LoadedCOFFObjectInfo>(*this, loadObjectImpl(O)); in loadObject()
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 207 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr() 234 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr() 258 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr() 311 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS() 347 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 358 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition() 366 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 368 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr() 580 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in main()
|
/external/clang/lib/Frontend/ |
D | PCHContainerOperations.cpp | 54 return llvm::make_unique<RawPCHContainerGenerator>(OS, Buffer); in CreatePCHContainerGenerator() 64 registerWriter(llvm::make_unique<RawPCHContainerWriter>()); in PCHContainerOperations() 65 registerReader(llvm::make_unique<RawPCHContainerReader>()); in PCHContainerOperations()
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 255 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr() 282 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr() 306 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr() 335 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr() 381 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr() 441 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS() 477 return llvm::make_unique<PrototypeAST>(FnName, std::move(ArgNames)); in ParsePrototype() 488 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition() 496 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() 498 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseTopLevelExpr() [all …]
|
/external/llvm/unittests/Support/ |
D | IteratorTest.cpp | 62 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()
|
D | StreamingMemoryObject.cpp | 27 auto DS = make_unique<NullDataStreamer>(); in TEST() 33 auto DS = make_unique<NullDataStreamer>(); in TEST()
|
/external/llvm/tools/llvm-cov/ |
D | CodeCoverage.cpp | 138 auto SubView = llvm::make_unique<SourceCoverageView>( in attachExpansionSubViews() 156 auto View = llvm::make_unique<SourceCoverageView>( in createFunctionView() 174 auto View = llvm::make_unique<SourceCoverageView>( in createSourceFileView() 181 auto SubView = llvm::make_unique<SourceCoverageView>( in createSourceFileView() 326 NameFilterer->push_back(llvm::make_unique<NameCoverageFilter>(Name)); in run() 329 llvm::make_unique<NameRegexCoverageFilter>(Regex)); in run() 338 StatFilterer->push_back(llvm::make_unique<RegionCoverageFilter>( in run() 341 StatFilterer->push_back(llvm::make_unique<RegionCoverageFilter>( in run() 344 StatFilterer->push_back(llvm::make_unique<LineCoverageFilter>( in run() 347 StatFilterer->push_back(llvm::make_unique<LineCoverageFilter>( in run()
|
/external/llvm/unittests/ExecutionEngine/Orc/ |
D | ObjectTransformLayerTest.cpp | 36 return llvm::make_unique<MockObjectFile>(*Obj + 1); in operator ()() 214 Objs1.push_back(llvm::make_unique<MockObjectFile>(MockObject1)); in TEST() 215 Objs1.push_back(llvm::make_unique<MockObjectFile>(MockObject2)); in TEST() 216 auto MM = llvm::make_unique<MockMemoryManager>(MockManager); in TEST() 217 auto SR = llvm::make_unique<MockSymbolResolver>(MockResolver); in TEST() 270 auto OwnedObj = llvm::make_unique<MockObjectFile>(288); in TEST()
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 288 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr() 315 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr() 339 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr() 368 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr() 414 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr() 453 return llvm::make_unique<UnaryExprAST>(Opc, std::move(Operand)); in ParseUnary() 490 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS() 567 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 579 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition() 587 auto Proto = llvm::make_unique<PrototypeAST>("__anon_expr", in ParseTopLevelExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 307 auto Result = llvm::make_unique<NumberExprAST>(NumVal); in ParseNumberExpr() 334 return llvm::make_unique<VariableExprAST>(IdName); in ParseIdentifierExpr() 358 return llvm::make_unique<CallExprAST>(IdName, std::move(Args)); in ParseIdentifierExpr() 387 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then), in ParseIfExpr() 433 return llvm::make_unique<ForExprAST>(IdName, std::move(Start), std::move(End), in ParseForExpr() 482 return llvm::make_unique<VarExprAST>(std::move(VarNames), std::move(Body)); in ParseVarExpr() 523 return llvm::make_unique<UnaryExprAST>(Opc, std::move(Operand)); in ParseUnary() 560 llvm::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS)); in ParseBinOpRHS() 637 return llvm::make_unique<PrototypeAST>(FnName, ArgNames, Kind != 0, in ParsePrototype() 649 return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E)); in ParseDefinition() [all …]
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFUnitIndex.cpp | 54 Rows = llvm::make_unique<Entry[]>(Header.NumBuckets); in parseImpl() 56 llvm::make_unique<Entry::SectionContribution *[]>(Header.NumUnits); in parseImpl() 57 ColumnKinds = llvm::make_unique<DWARFSectionKind[]>(Header.NumColumns); in parseImpl() 70 llvm::make_unique<Entry::SectionContribution[]>(Header.NumColumns); in parseImpl()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | ExprInspectionChecker.cpp | 110 llvm::make_unique<BugReport>(*BT, getArgumentValueString(CE, C), N)); in analyzerEval() 122 C.emitReport(llvm::make_unique<BugReport>(*BT, "REACHABLE", N)); in analyzerWarnIfReached() 144 llvm::make_unique<BugReport>(*BT, getArgumentValueString(CE, C), N)); in analyzerCheckInlined() 177 C.emitReport(llvm::make_unique<BugReport>(*BT, "SYMBOL DEAD", N)); in checkDeadSymbols()
|
D | PthreadLockChecker.cpp | 148 auto report = llvm::make_unique<BugReport>( in AcquireLock() 210 auto Report = llvm::make_unique<BugReport>( in ReleaseLock() 233 auto report = llvm::make_unique<BugReport>( in ReleaseLock() 278 auto Report = llvm::make_unique<BugReport>(*BT_destroylock, Message, N); in DestroyLock() 313 auto Report = llvm::make_unique<BugReport>(*BT_initlock, Message, N); in InitLock() 326 auto Report = llvm::make_unique<BugReport>( in reportUseDestroyedBug()
|
D | MacOSKeychainAPIChecker.cpp | 270 auto Report = llvm::make_unique<BugReport>(*BT, os.str(), N); in generateDeallocatorMismatchReport() 271 Report->addVisitor(llvm::make_unique<SecKeychainBugVisitor>(AP.first)); in generateDeallocatorMismatchReport() 315 auto Report = llvm::make_unique<BugReport>(*BT, os.str(), N); in checkPreStmt() 316 Report->addVisitor(llvm::make_unique<SecKeychainBugVisitor>(V)); in checkPreStmt() 371 auto Report = llvm::make_unique<BugReport>( in checkPreStmt() 437 auto Report = llvm::make_unique<BugReport>( in checkPreStmt() 439 Report->addVisitor(llvm::make_unique<SecKeychainBugVisitor>(ArgSM)); in checkPreStmt() 548 llvm::make_unique<BugReport>(*BT, os.str(), N, LocUsedForUniqueing, in generateAllocatedDataNotReleasedReport() 551 Report->addVisitor(llvm::make_unique<SecKeychainBugVisitor>(AP.first)); in generateAllocatedDataNotReleasedReport()
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcCBindingsStack.cpp | 27 return llvm::make_unique<CCMgrT>(0); in createCompileCallbackMgr() 39 return llvm::make_unique< in createIndirectStubsMgrBuilder()
|
/external/llvm/lib/CodeGen/ |
D | PseudoSourceValue.cpp | 122 V = llvm::make_unique<FixedStackPseudoSourceValue>(FI); in getFixedStack() 131 E = llvm::make_unique<GlobalValuePseudoSourceValue>(GV); in getGlobalValueCallEntry() 140 E = llvm::make_unique<ExternalSymbolPseudoSourceValue>(ES); in getExternalSymbolCallEntry()
|