Home
last modified time | relevance | path

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

12345678910>>...39

/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()
142 return std::make_unique<DarwinAArch64TargetInfo>(Triple, Opts); in AllocateTarget()
146 return std::make_unique<FreeBSDTargetInfo<AArch64leTargetInfo>>(Triple, in AllocateTarget()
149 return std::make_unique<FuchsiaTargetInfo<AArch64leTargetInfo>>(Triple, in AllocateTarget()
152 return std::make_unique<HaikuTargetInfo<AArch64leTargetInfo>>(Triple, in AllocateTarget()
[all …]
/freebsd/contrib/llvm-project/clang/lib/FrontendTool/
H A DExecuteCompilerInvocation.cpp46 case ASTDeclList: return std::make_unique<ASTDeclListAction>(); in CreateFrontendBaseAction()
47 case ASTDump: return std::make_unique<ASTDumpAction>(); in CreateFrontendBaseAction()
48 case ASTPrint: return std::make_unique<ASTPrintAction>(); in CreateFrontendBaseAction()
49 case ASTView: return std::make_unique<ASTViewAction>(); in CreateFrontendBaseAction()
51 return std::make_unique<DumpCompilerOptionsAction>(); in CreateFrontendBaseAction()
52 case DumpRawTokens: return std::make_unique<DumpRawTokensAction>(); in CreateFrontendBaseAction()
53 case DumpTokens: return std::make_unique<DumpTokensAction>(); in CreateFrontendBaseAction()
54 case EmitAssembly: return std::make_unique<EmitAssemblyAction>(); in CreateFrontendBaseAction()
55 case EmitBC: return std::make_unique<EmitBCAction>(); in CreateFrontendBaseAction()
58 case EmitHTML: return std::make_unique<HTMLPrintAction>(); 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/Remarks/
H A DRemarkSerializer.cpp28 return std::make_unique<YAMLRemarkSerializer>(OS, Mode); in createRemarkSerializer()
30 return std::make_unique<YAMLStrTabRemarkSerializer>(OS, Mode); in createRemarkSerializer()
32 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<YAMLStrTabRemarkSerializer>(OS, Mode, in createRemarkSerializer()
50 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode, in createRemarkSerializer()
/freebsd/contrib/llvm-project/llvm/lib/Option/
H A DOption.cpp119 return std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal()
123 return std::make_unique<Arg>(*this, Spelling, Index++, Value); in acceptInternal()
128 auto A = std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal()
163 return std::make_unique<Arg>(*this, Spelling, Index - 2, in acceptInternal()
174 auto A = std::make_unique<Arg>(*this, Spelling, Index - 1 - getNumArgs(), in acceptInternal()
184 return std::make_unique<Arg>(*this, Spelling, Index++, Value); in acceptInternal()
193 return std::make_unique<Arg>(*this, Spelling, Index - 2, in acceptInternal()
203 return std::make_unique<Arg>(*this, Spelling, Index - 2, in acceptInternal()
210 auto A = std::make_unique<Arg>(*this, Spelling, Index++); in acceptInternal()
217 auto A = std::make_unique<Ar 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()
H A DSBSourceManager.cpp75 m_opaque_up = std::make_unique<SourceManagerImpl>(debugger.get_sp()); in SBSourceManager()
81 m_opaque_up = std::make_unique<SourceManagerImpl>(target.GetSP()); in SBSourceManager()
90 m_opaque_up = std::make_unique<SourceManagerImpl>(*rhs.m_opaque_up); in SBSourceManager()
97 m_opaque_up = std::make_unique<SourceManagerImpl>(*rhs.m_opaque_up); in operator =()
/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.cpp76 auto Stream = std::make_unique<MemoryBufferByteStream>( in createFromPdb()
79 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdb()
80 auto File = std::make_unique<PDBFile>(Path, std::move(Stream), *Allocator); in createFromPdb()
87 std::make_unique<NativeSession>(std::move(File), std::move(Allocator)); in createFromPdb()
107 auto Stream = std::make_unique<MemoryBufferByteStream>( in loadPdbFile()
110 auto File = std::make_unique<PDBFile>(PdbPath, std::move(Stream), *Allocator); in loadPdbFile()
122 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdbPath()
127 Session = std::make_unique<NativeSession>(std::move(PdbFile.get()), in createFromPdbPath()
162 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromExe()
167 Session = std::make_unique<NativeSessio in createFromExe()
[all...]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DUnwindTable.cpp61 m_eh_frame_up = std::make_unique<DWARFCallFrameInfo>( in Initialize()
67 m_debug_frame_up = std::make_unique<DWARFCallFrameInfo>( in Initialize()
74 std::make_unique<CompactUnwindInfo>(*object_file, sect); in Initialize()
82 std::make_unique<ArmUnwindInfo>(*object_file, sect, sect_extab); in Initialize()
106 m_eh_frame_up = std::make_unique<DWARFCallFrameInfo>( in Update()
112 m_debug_frame_up = std::make_unique<DWARFCallFrameInfo>( in Update()
119 std::make_unique<CompactUnwindInfo>(*object_file, sect); in Update()
127 std::make_unique<ArmUnwindInfo>(*object_file, sect, sect_extab); in Update()
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp301 auto Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in getOutputStream()
503 IM = std::make_unique<mca::InstrumentManager>(*STI, *MCII); in main()
572 IPP = std::make_unique<mca::InstrPostProcess>(*STI, *MCII); in main()
669 auto P = std::make_unique<mca::Pipeline>(); in main()
670 P->appendStage(std::make_unique<mca::EntryStage>(S)); in main()
671 P->appendStage(std::make_unique<mca::InstructionTables>(SM)); in main()
676 std::make_unique<mca::InstructionView>(*STI, *IP, Insts)); in main()
681 Printer.addView(std::make_unique<mca::InstructionInfoView>( in main()
686 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main()
714 CB = std::make_unique<mca::CustomBehaviour>(*STI, S, *MCII); in main()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldCOFF.cpp55 return std::make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create()
57 return std::make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create()
59 return std::make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create()
61 return std::make_unique<RuntimeDyldCOFFAArch64>(MemMgr, Resolver); in create()
68 return std::make_unique<LoadedCOFFObjectInfo>(*this, *ObjSectionToIDOrErr); in loadObject()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DSetTheory.cpp257 addOperator("add", std::make_unique<AddOp>()); in SetTheory()
258 addOperator("sub", std::make_unique<SubOp>()); in SetTheory()
259 addOperator("and", std::make_unique<AndOp>()); in SetTheory()
260 addOperator("shl", std::make_unique<ShlOp>()); in SetTheory()
261 addOperator("trunc", std::make_unique<TruncOp>()); in SetTheory()
262 addOperator("rotl", std::make_unique<RotOp>(false)); in SetTheory()
263 addOperator("rotr", std::make_unique<RotOp>(true)); in SetTheory()
264 addOperator("decimate", std::make_unique<DecimateOp>()); in SetTheory()
265 addOperator("interleave", std::make_unique<InterleaveOp>()); in SetTheory()
266 addOperator("sequence", std::make_unique<SequenceOp>()); in SetTheory()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVSubtarget.cpp83 GR = std::make_unique<SPIRVGlobalRegistry>(PointerSize); in SPIRVSubtarget()
84 CallLoweringInfo = std::make_unique<SPIRVCallLowering>(TLInfo, GR.get()); in SPIRVSubtarget()
85 InlineAsmInfo = std::make_unique<SPIRVInlineAsmLowering>(TLInfo); in SPIRVSubtarget()
86 Legalizer = std::make_unique<SPIRVLegalizerInfo>(*this); in SPIRVSubtarget()
87 RegBankInfo = std::make_unique<SPIRVRegisterBankInfo>(); in SPIRVSubtarget()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DIndirectionUtils.cpp75 CallbacksJD.define(std::make_unique<CompileCallbackMaterializationUnit>( in getCompileCallback()
180 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
187 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
193 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
199 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
205 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
211 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
218 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
224 return std::make_unique< in createLocalIndirectStubsManagerBuilder()
231 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()
455 auto Ctx = std::make_unique<LLVMContext>(); in createPlatformRuntimeModule()
456 auto M = std::make_unique<Module>("__standard_lib", *Ctx); in createPlatformRuntimeModule()
751 D = std::make_unique<DynamicThreadPoolTaskDispatcher>(NumThreads); in prepareForConstruction()
753 D = std::make_unique<InPlaceTaskDispatcher>(); in prepareForConstruction()
810 auto ObjLinkingLayer = std::make_unique<ObjectLinkingLayer>(ES); in prepareForConstruction()
813 std::make_unique<EHFrameRegistrationPlugin>( in prepareForConstruction()
938 auto GetMemMgr = []() { return std::make_unique<SectionMemoryManager>(); }; in createObjectLinkingLayer()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMinidumpYAML.cpp101 return std::make_unique<ExceptionStream>(); in create()
103 return std::make_unique<MemoryInfoListStream>(); in create()
105 return std::make_unique<MemoryListStream>(); in create()
107 return std::make_unique<ModuleListStream>(); in create()
109 return std::make_unique<RawContentStream>(Type); in create()
111 return std::make_unique<SystemInfoStream>(); in create()
113 return std::make_unique<TextContentStream>(Type); in create()
115 return std::make_unique<ThreadListStream>(); in create()
475 return std::make_unique<ExceptionStream>(*ExpectedExceptionStream, in create()
480 return std::make_unique<MemoryInfoListStream>(*ExpectedList); in create()
[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()
H A DMLInlineAdvisor.cpp79 AOTRunner = std::make_unique<ReleaseModeModelRunner<CompiledModelType>>( in getReleaseModeAdvisor()
86 AOTRunner = std::make_unique<InteractiveModelRunner>( in getReleaseModeAdvisor()
91 return std::make_unique<MLInlineAdvisor>(M, MAM, std::move(AOTRunner), in getReleaseModeAdvisor()
357 return std::make_unique<InlineAdvice>(this, CB, ORE, in getAdviceImpl()
379 return std::make_unique<InlineAdvice>(this, CB, ORE, Mandatory); in getAdviceImpl()
390 return std::make_unique<InlineAdvice>(this, CB, ORE, false); in getAdviceImpl()
398 return std::make_unique<InlineAdvice>(this, CB, ORE, false); in getAdviceImpl()
454 return std::make_unique<MLInlineAdvice>( in getAdviceFromModel()
462 return std::make_unique<InlineAdvice>(this, CB, getCallerORE(CB), false); in getSkipAdviceIfUnreachableCallsite()
478 return std::make_unique<InlineAdvice>(this, CB, getCallerORE(CB), Advice); in getMandatoryAdvice()
[all …]
/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()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMLRegallocPriorityAdvisor.cpp
H A DMLRegAllocPriorityAdvisor.cpp145 Runner = std::make_unique<ReleaseModeModelRunner<CompiledModelType>>( in getAdvisor()
148 Runner = std::make_unique<InteractiveModelRunner>( in getAdvisor()
153 return std::make_unique<MLPriorityAdvisor>( in getAdvisor()
231 Runner = std::make_unique<NoInferenceModelRunner>(Ctx, InputFeatures); in doInitialization()
242 auto OS = std::make_unique<raw_fd_ostream>(TrainingLog, EC); in doInitialization()
255 Log = std::make_unique<Logger>(std::move(OS), LFS, Reward, in doInitialization()
268 return std::make_unique<DevelopmentModePriorityAdvisor>( in getAdvisor()

12345678910>>...39