Home
last modified time | relevance | path

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

12345678910>>...46

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DTargets.cpp121 return std::make_unique<ARCTargetInfo>(Triple, Opts); in AllocateTarget()
124 return std::make_unique<XCoreTargetInfo>(Triple, Opts); in AllocateTarget()
129 return std::make_unique<LinuxTargetInfo<HexagonTargetInfo>>(Triple, Opts); in AllocateTarget()
130 return std::make_unique<HexagonTargetInfo>(Triple, Opts); in AllocateTarget()
133 return std::make_unique<LanaiTargetInfo>(Triple, Opts); in AllocateTarget()
137 return std::make_unique<DarwinAArch64TargetInfo>(Triple, Opts); in AllocateTarget()
139 return std::make_unique<AppleMachOAArch64TargetInfo>(Triple, Opts); in AllocateTarget()
144 return std::make_unique<DarwinAArch64TargetInfo>(Triple, Opts); in AllocateTarget()
146 return std::make_unique<AppleMachOAArch64TargetInfo>(Triple, Opts); in AllocateTarget()
150 return std::make_unique<FreeBSDTargetInfo<AArch64leTargetInfo>>(Triple, in AllocateTarget()
[all …]
/freebsd/contrib/llvm-project/clang/lib/FrontendTool/
H A DExecuteCompilerInvocation.cpp60 case ASTDeclList: return std::make_unique<ASTDeclListAction>(); in CreateFrontendBaseAction()
61 case ASTDump: return std::make_unique<ASTDumpAction>(); in CreateFrontendBaseAction()
62 case ASTPrint: return std::make_unique<ASTPrintAction>(); in CreateFrontendBaseAction()
63 case ASTView: return std::make_unique<ASTViewAction>(); in CreateFrontendBaseAction()
65 return std::make_unique<DumpCompilerOptionsAction>(); in CreateFrontendBaseAction()
66 case DumpRawTokens: return std::make_unique<DumpRawTokensAction>(); in CreateFrontendBaseAction()
67 case DumpTokens: return std::make_unique<DumpTokensAction>(); in CreateFrontendBaseAction()
71 return std::make_unique<cir::EmitAssemblyAction>(); in CreateFrontendBaseAction()
73 return std::make_unique<EmitAssemblyAction>(); in CreateFrontendBaseAction()
77 return std::make_unique<cir::EmitBCAction>(); in CreateFrontendBaseAction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MCA/
H A DContext.cpp40 auto RCU = std::make_unique<RetireControlUnit>(SM); in createDefaultPipeline()
41 auto PRF = std::make_unique<RegisterFile>(SM, MRI, Opts.RegisterFileSize); in createDefaultPipeline()
42 auto LSU = std::make_unique<LSUnit>(SM, Opts.LoadQueueSize, in createDefaultPipeline()
44 auto HWS = std::make_unique<Scheduler>(SM, *LSU); in createDefaultPipeline()
47 auto Fetch = std::make_unique<EntryStage>(SrcMgr); in createDefaultPipeline()
49 std::make_unique<DispatchStage>(STI, MRI, Opts.DispatchWidth, *RCU, *PRF); in createDefaultPipeline()
51 std::make_unique<ExecuteStage>(*HWS, Opts.EnableBottleneckAnalysis); in createDefaultPipeline()
52 auto Retire = std::make_unique<RetireStage>(*RCU, *PRF, *LSU); in createDefaultPipeline()
61 auto StagePipeline = std::make_unique<Pipeline>(); in createDefaultPipeline()
64 StagePipeline->appendStage(std::make_unique<MicroOpQueueStage>( in createDefaultPipeline()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DFDRRecordProducer.cpp43 return std::make_unique<NewBufferRecord>(); in metadataRecordType()
50 return std::make_unique<EndBufferRecord>(); in metadataRecordType()
52 return std::make_unique<NewCPUIDRecord>(); in metadataRecordType()
54 return std::make_unique<TSCWrapRecord>(); in metadataRecordType()
56 return std::make_unique<WallclockRecord>(); in metadataRecordType()
59 return std::make_unique<CustomEventRecordV5>(); in metadataRecordType()
60 return std::make_unique<CustomEventRecord>(); in metadataRecordType()
62 return std::make_unique<CallArgRecord>(); in metadataRecordType()
64 return std::make_unique<BufferExtents>(); in metadataRecordType()
66 return std::make_unique<TypedEventRecord>(); in metadataRecordType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Option/
H A DOption.cpp121 return std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal()
125 return std::make_unique<Arg>(*this, Spelling, Index++, Value); in acceptInternal()
130 auto A = std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal()
165 return std::make_unique<Arg>(*this, Spelling, Index - 2, in acceptInternal()
176 auto A = std::make_unique<Arg>(*this, Spelling, Index - 1 - getNumArgs(), in acceptInternal()
186 return std::make_unique<Arg>(*this, Spelling, Index++, Value); in acceptInternal()
195 return std::make_unique<Arg>(*this, Spelling, Index - 2, in acceptInternal()
205 return std::make_unique<Arg>(*this, Spelling, Index - 2, in acceptInternal()
212 auto A = std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal()
219 auto A = std::make_unique<Arg>(*this, Spelling, Index); in acceptInternal()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIASession.cpp153 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, GlobalScope); in getGlobalScope()
188 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, LocatedSymbol); in getSymbolById()
205 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolByAddress()
217 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolByRVA()
230 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolBySectOffset()
246 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbers()
260 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersByAddress()
269 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersByRVA()
279 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersBySectOffset()
301 return std::make_unique<DIAEnumSourceFiles>(*this, SourceFiles); in findSourceFiles()
[all …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBStringList.cpp21 m_opaque_up = std::make_unique<StringList>(*lldb_strings_ptr); in SBStringList()
42 m_opaque_up = std::make_unique<lldb_private::StringList>(); in operator ->()
72 m_opaque_up = std::make_unique<lldb_private::StringList>(str); in AppendString()
83 m_opaque_up = std::make_unique<lldb_private::StringList>(strv, strc); in AppendList()
92 m_opaque_up = std::make_unique<lldb_private::StringList>(); in AppendList()
99 m_opaque_up = std::make_unique<lldb_private::StringList>(); in AppendList()
H A DSBStream.cpp108 m_opaque_up = std::make_unique<StreamFile>(std::move(file.get())); in RedirectToFile()
119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
143 m_opaque_up = std::make_unique<StreamFile>(file_sp); in RedirectToFile()
164 m_opaque_up = std::make_unique<StreamFile>(fd, transfer_fh_ownership); in RedirectToFileDescriptor()
179 m_opaque_up = std::make_unique<StreamString>(); in ref()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeRawSymbol.cpp32 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findChildren()
38 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findChildren()
44 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findChildrenByAddr()
50 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findChildrenByVA()
56 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findChildrenByRVA()
62 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findInlineFramesByAddr()
67 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findInlineFramesByRVA()
72 return std::make_unique<NullEnumerator<PDBSymbol>>(); in findInlineFramesByVA()
77 return std::make_unique<NullEnumerator<IPDBLineNumber>>(); in findInlineeLines()
83 return std::make_unique<NullEnumerator<IPDBLineNumber>>(); in findInlineeLinesByAddr()
[all …]
H A DNativeSession.cpp74 auto Stream = std::make_unique<MemoryBufferByteStream>( in createFromPdb()
77 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdb()
78 auto File = std::make_unique<PDBFile>(Path, std::move(Stream), *Allocator); in createFromPdb()
85 std::make_unique<NativeSession>(std::move(File), std::move(Allocator)); in createFromPdb()
105 auto Stream = std::make_unique<MemoryBufferByteStream>( in loadPdbFile()
108 auto File = std::make_unique<PDBFile>(PdbPath, std::move(Stream), *Allocator); in loadPdbFile()
120 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdbPath()
125 Session = std::make_unique<NativeSession>(std::move(PdbFile.get()), in createFromPdbPath()
160 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromExe()
165 Session = std::make_unique<NativeSession>(std::move(File.get()), in createFromExe()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp320 auto Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in getOutputStream()
520 IM = std::make_unique<mca::InstrumentManager>(*STI, *MCII); in main()
589 IPP = std::make_unique<mca::InstrPostProcess>(*STI, *MCII); in main()
686 auto P = std::make_unique<mca::Pipeline>(); in main()
687 P->appendStage(std::make_unique<mca::EntryStage>(S)); in main()
688 P->appendStage(std::make_unique<mca::InstructionTables>(SM)); in main()
693 std::make_unique<mca::InstructionView>(*STI, *IP, Insts)); in main()
698 Printer.addView(std::make_unique<mca::InstructionInfoView>( in main()
707 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main()
735 CB = std::make_unique<mca::CustomBehaviour>(*STI, S, *MCII); in main()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DRemarkSerializer.cpp29 return std::make_unique<YAMLRemarkSerializer>(OS, Mode); in createRemarkSerializer()
31 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode); in createRemarkSerializer()
45 return std::make_unique<YAMLRemarkSerializer>(OS, Mode, std::move(StrTab)); in createRemarkSerializer()
47 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode, in createRemarkSerializer()
/freebsd/contrib/llvm-project/lldb/source/ValueObject/
H A DDILParser.cpp105 return std::make_unique<UnaryOpNode>(loc, UnaryOpKind::Deref, in ParseUnaryExpression()
108 return std::make_unique<UnaryOpNode>(loc, UnaryOpKind::AddrOf, in ParseUnaryExpression()
140 return std::make_unique<ErrorNode>(); in ParsePostfixExpression()
149 return std::make_unique<ErrorNode>(); in ParsePostfixExpression()
151 lhs = std::make_unique<BitFieldExtractionNode>( in ParsePostfixExpression()
154 lhs = std::make_unique<ArraySubscriptNode>(loc, std::move(lhs), in ParsePostfixExpression()
166 lhs = std::make_unique<MemberOfNode>( in ParsePostfixExpression()
193 return std::make_unique<IdentifierNode>(loc, identifier); in ParsePrimaryExpression()
206 return std::make_unique<ErrorNode>(); in ParsePrimaryExpression()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMLRegAllocPriorityAdvisor.cpp134 Runner = std::make_unique<ReleaseModeModelRunner<CompiledModelType>>( in getAdvisor()
137 Runner = std::make_unique<InteractiveModelRunner>( in getAdvisor()
142 return std::make_unique<MLPriorityAdvisor>(MF, RA, &SI, Runner.get()); in getAdvisor()
167 Provider = std::make_unique<ReleaseModePriorityAdvisorProvider>(); in doInitialization()
215 Runner = std::make_unique<NoInferenceModelRunner>(Ctx, InputFeatures); in DevelopmentModePriorityAdvisorProvider()
226 auto OS = std::make_unique<raw_fd_ostream>(TrainingLog, EC); in DevelopmentModePriorityAdvisorProvider()
239 Log = std::make_unique<Logger>(std::move(OS), LFS, Reward, in DevelopmentModePriorityAdvisorProvider()
267 return std::make_unique<DevelopmentModePriorityAdvisor>( in getAdvisor()
300 Provider = std::make_unique<DevelopmentModePriorityAdvisorProvider>( in doInitialization()
H A DMLRegallocPriorityAdvisor.cpp
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIBugReporter.cpp32 auto Report = std::make_unique<PathSensitiveBugReport>( in reportDoubleNonblocking()
41 Report->addVisitor(std::make_unique<RequestNodeVisitor>( in reportDoubleNonblocking()
55 auto Report = std::make_unique<PathSensitiveBugReport>(MissingWaitBugType, in reportMissingWait()
61 Report->addVisitor(std::make_unique<RequestNodeVisitor>( in reportMissingWait()
75 auto Report = std::make_unique<PathSensitiveBugReport>(UnmatchedWaitBugType, in reportUnmatchedWait()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DSetTheory.cpp258 addOperator("add", std::make_unique<AddOp>()); in SetTheory()
259 addOperator("sub", std::make_unique<SubOp>()); in SetTheory()
260 addOperator("and", std::make_unique<AndOp>()); in SetTheory()
261 addOperator("shl", std::make_unique<ShlOp>()); in SetTheory()
262 addOperator("trunc", std::make_unique<TruncOp>()); in SetTheory()
263 addOperator("rotl", std::make_unique<RotOp>(false)); in SetTheory()
264 addOperator("rotr", std::make_unique<RotOp>(true)); in SetTheory()
265 addOperator("decimate", std::make_unique<DecimateOp>()); in SetTheory()
266 addOperator("interleave", std::make_unique<InterleaveOp>()); in SetTheory()
267 addOperator("sequence", std::make_unique<SequenceOp>()); in SetTheory()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldCOFF.cpp54 return std::make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create()
56 return std::make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create()
58 return std::make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create()
60 return std::make_unique<RuntimeDyldCOFFAArch64>(MemMgr, Resolver); in create()
67 return std::make_unique<LoadedCOFFObjectInfo>(*this, *ObjSectionToIDOrErr); in loadObject()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVSubtarget.cpp97 GR = std::make_unique<SPIRVGlobalRegistry>(PointerSize); in SPIRVSubtarget()
98 CallLoweringInfo = std::make_unique<SPIRVCallLowering>(TLInfo, GR.get()); in SPIRVSubtarget()
99 InlineAsmInfo = std::make_unique<SPIRVInlineAsmLowering>(TLInfo); in SPIRVSubtarget()
100 Legalizer = std::make_unique<SPIRVLegalizerInfo>(*this); in SPIRVSubtarget()
101 RegBankInfo = std::make_unique<SPIRVRegisterBankInfo>(); in SPIRVSubtarget()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMinidumpYAML.cpp102 return std::make_unique<ExceptionStream>(); in create()
104 return std::make_unique<MemoryInfoListStream>(); in create()
106 return std::make_unique<MemoryListStream>(); in create()
108 return std::make_unique<Memory64ListStream>(); in create()
110 return std::make_unique<ModuleListStream>(); in create()
112 return std::make_unique<RawContentStream>(Type); in create()
114 return std::make_unique<SystemInfoStream>(); in create()
116 return std::make_unique<TextContentStream>(Type); in create()
118 return std::make_unique<ThreadListStream>(); in create()
508 return std::make_unique<ExceptionStream>(*ExpectedExceptionStream, in create()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DIndirectionUtils.cpp72 CallbacksJD.define(std::make_unique<CompileCallbackMaterializationUnit>( in getCompileCallback()
209 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
216 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
222 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
228 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
234 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
240 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
247 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
253 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
260 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
[all …]
H A DLLJIT.cpp138 std::make_unique<GenericLLVMIRPlatform>(*this)); in GenericLLVMIRPlatformSupport()
168 auto Ctx = std::make_unique<LLVMContext>(); in setupJITDylib()
169 auto M = std::make_unique<Module>("__standard_lib", *Ctx); in setupJITDylib()
457 auto Ctx = std::make_unique<LLVMContext>(); in createPlatformRuntimeModule()
458 auto M = std::make_unique<Module>("__standard_lib", *Ctx); in createPlatformRuntimeModule()
778 D = std::make_unique<DynamicThreadPoolTaskDispatcher>(NumThreads); in prepareForConstruction()
780 D = std::make_unique<InPlaceTaskDispatcher>(); in prepareForConstruction()
836 return std::make_unique<ObjectLinkingLayer>(ES); in prepareForConstruction()
958 return std::make_unique<SectionMemoryManager>(); in createObjectLinkingLayer()
961 std::make_unique<RTDyldObjectLinkingLayer>(ES, std::move(GetMemMgr)); in createObjectLinkingLayer()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DReplayInlineAdvisor.cpp85 auto Advisor = std::make_unique<ReplayInlineAdvisor>( in getReplayInlineAdvisor()
120 return std::make_unique<DefaultInlineAdvice>( in getAdviceImpl()
127 return std::make_unique<DefaultInlineAdvice>(this, CB, std::nullopt, ORE, in getAdviceImpl()
135 return std::make_unique<DefaultInlineAdvice>( in getAdviceImpl()
141 return std::make_unique<DefaultInlineAdvice>(this, CB, std::nullopt, ORE, in getAdviceImpl()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DInProcessModuleCache.cpp72 Entry = std::make_unique<ModuleCacheEntry>(); in getLock()
75 return std::make_unique<ReaderWriterLock>(CompilationMutex); in getLock()
83 Entry = std::make_unique<ModuleCacheEntry>(); in getModuleTimestamp()
96 Entry = std::make_unique<ModuleCacheEntry>(); in updateModuleTimestamp()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DWorkList.cpp82 return std::make_unique<DFS>(); in makeDFS()
86 return std::make_unique<BFS>(); in makeBFS()
127 return std::make_unique<BFSBlockDFSContents>(); in makeBFSBlockDFSContents()
189 return std::make_unique<UnexploredFirstStack>(); in makeUnexploredFirst()
246 return std::make_unique<UnexploredFirstPriorityQueue>(); in makeUnexploredFirstPriorityQueue()
300 return std::make_unique<UnexploredFirstPriorityLocationQueue>(); in makeUnexploredFirstPriorityLocationQueue()

12345678910>>...46