Home
last modified time | relevance | path

Searched refs:OwningPtr (Results 1 – 25 of 215) sorted by relevance

123456789

/external/llvm/include/llvm/ADT/
DOwningPtr.h27 class OwningPtr {
28 OwningPtr(OwningPtr const &); // DO NOT IMPLEMENT
29 OwningPtr &operator=(OwningPtr const &); // DO NOT IMPLEMENT
32 explicit OwningPtr(T *P = 0) : Ptr(P) {} in Ptr()
34 ~OwningPtr() { in ~OwningPtr()
66 void swap(OwningPtr &RHS) { in swap()
74 inline void swap(OwningPtr<T> &a, OwningPtr<T> &b) { in swap()
/external/llvm/lib/MC/MCDisassembler/
DEDDisassembler.h138 llvm::OwningPtr<const llvm::MCAsmInfo> AsmInfo;
140 llvm::OwningPtr<const llvm::MCSubtargetInfo> STI;
142 llvm::OwningPtr<const llvm::MCInstrInfo> MII;
144 llvm::OwningPtr<const llvm::MCRegisterInfo> MRI;
146 llvm::OwningPtr<const llvm::MCDisassembler> Disassembler;
149 llvm::OwningPtr<std::string> InstString;
152 llvm::OwningPtr<llvm::raw_string_ostream> InstStream;
155 llvm::OwningPtr<llvm::MCInstPrinter> InstPrinter;
164 llvm::OwningPtr<llvm::AsmLexer> GenericAsmLexer;
165 llvm::OwningPtr<llvm::MCTargetAsmLexer> SpecificAsmLexer;
DDisassembler.h63 llvm::OwningPtr<const llvm::MCAsmInfo> MAI;
65 llvm::OwningPtr<const llvm::MCRegisterInfo> MRI;
67 llvm::OwningPtr<const llvm::MCSubtargetInfo> MSI;
69 llvm::OwningPtr<const llvm::MCInstrInfo> MII;
71 llvm::OwningPtr<const llvm::MCContext> Ctx;
73 llvm::OwningPtr<const llvm::MCDisassembler> DisAsm;
75 llvm::OwningPtr<llvm::MCInstPrinter> IP;
/external/llvm/lib/Object/
DBinary.cpp44 OwningPtr<Binary> &Result) { in createBinary()
45 OwningPtr<MemoryBuffer> scopedSource(Source); in createBinary()
55 OwningPtr<Binary> ret(new Archive(scopedSource.take(), ec)); in createBinary()
64 OwningPtr<Binary> ret( in createBinary()
80 OwningPtr<Binary> ret( in createBinary()
88 OwningPtr<Binary> ret(new COFFObjectFile(scopedSource.take(), ec)); in createBinary()
98 error_code object::createBinary(StringRef Path, OwningPtr<Binary> &Result) { in createBinary()
99 OwningPtr<MemoryBuffer> File; in createBinary()
/external/llvm/include/llvm/Support/
DMemoryBuffer.h23 template<class T> class OwningPtr; variable
66 static error_code getFile(StringRef Filename, OwningPtr<MemoryBuffer> &result,
70 OwningPtr<MemoryBuffer> &result,
77 OwningPtr<MemoryBuffer> &result,
110 static error_code getSTDIN(OwningPtr<MemoryBuffer> &result);
117 OwningPtr<MemoryBuffer> &result,
120 OwningPtr<MemoryBuffer> &result,
DYAMLParser.h95 OwningPtr<Scanner> scanner;
96 OwningPtr<Document> CurrentDoc;
116 Node(unsigned int Type, OwningPtr<Document>&, StringRef Anchor);
149 OwningPtr<Document> &Doc;
167 NullNode(OwningPtr<Document> &D) : Node(NK_Null, D, StringRef()) {} in NullNode()
182 ScalarNode(OwningPtr<Document> &D, StringRef Anchor, StringRef Val) in ScalarNode()
224 KeyValueNode(OwningPtr<Document> &D) in KeyValueNode()
342 MappingNode(OwningPtr<Document> &D, StringRef Anchor, MappingType MT) in MappingNode()
402 SequenceNode(OwningPtr<Document> &D, StringRef Anchor, SequenceType ST) in SequenceNode()
447 AliasNode(OwningPtr<Document> &D, StringRef Val) in AliasNode()
[all …]
/external/llvm/unittests/ExecutionEngine/JIT/
DJITMemoryManagerTest.cpp34 OwningPtr<JITMemoryManager> MemMgr( in TEST()
40 OwningPtr<Function> F1(makeFakeFunction()); in TEST()
47 OwningPtr<Function> F2(makeFakeFunction()); in TEST()
54 OwningPtr<Function> F3(makeFakeFunction()); in TEST()
73 OwningPtr<JITMemoryManager> MemMgr( in TEST()
84 OwningPtr<Function> F1(makeFakeFunction()); in TEST()
92 OwningPtr<Function> F2(makeFakeFunction()); in TEST()
100 OwningPtr<Function> F3(makeFakeFunction()); in TEST()
112 OwningPtr<Function> F4(makeFakeFunction()); in TEST()
121 OwningPtr<Function> F5(makeFakeFunction()); in TEST()
[all …]
DMultiJITTest.cpp83 OwningPtr<ExecutionEngine> EE1(EngineBuilder(M1).create()); in TEST()
85 OwningPtr<ExecutionEngine> EE2(EngineBuilder(M2).create()); in TEST()
113 OwningPtr<ExecutionEngine> EE1(EngineBuilder(M1).create()); in TEST()
115 OwningPtr<ExecutionEngine> EE2(EngineBuilder(M2).create()); in TEST()
147 OwningPtr<ExecutionEngine> EE1(EngineBuilder(M1).create()); in TEST()
148 OwningPtr<ExecutionEngine> EE2(EngineBuilder(M2).create()); in TEST()
/external/clang/lib/StaticAnalyzer/Checkers/
DCallAndMessageChecker.cpp31 mutable OwningPtr<BugType> BT_call_null;
32 mutable OwningPtr<BugType> BT_call_undef;
33 mutable OwningPtr<BugType> BT_call_arg;
34 mutable OwningPtr<BugType> BT_msg_undef;
35 mutable OwningPtr<BugType> BT_objc_prop_undef;
36 mutable OwningPtr<BugType> BT_msg_arg;
37 mutable OwningPtr<BugType> BT_msg_ret;
45 const char *BT_desc, OwningPtr<BugType> &BT);
50 OwningPtr<BugType> &BT);
60 static void LazyInit_BT(const char *desc, OwningPtr<BugType> &BT) { in LazyInit_BT()
[all …]
/external/clang/tools/driver/
Dcc1as_main.cpp148 OwningPtr<OptTable> OptTbl(createCC1AsOptTable()); in CreateFromArgs()
150 OwningPtr<InputArgList> Args( in CreateFromArgs()
267 OwningPtr<MemoryBuffer> BufferPtr; in ExecuteAssembler()
284 OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(Opts.Triple)); in ExecuteAssembler()
287 OwningPtr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(Opts.Triple)); in ExecuteAssembler()
297 OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo()); in ExecuteAssembler()
317 OwningPtr<MCStreamer> Str; in ExecuteAssembler()
319 OwningPtr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo()); in ExecuteAssembler()
320 OwningPtr<MCSubtargetInfo> in ExecuteAssembler()
353 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx, in ExecuteAssembler()
[all …]
/external/clang/unittests/Tooling/
DToolingTest.cpp94 llvm::OwningPtr<FrontendActionFactory> Factory( in TEST()
96 llvm::OwningPtr<FrontendAction> Action(Factory->create()); in TEST()
106 llvm::OwningPtr<FrontendActionFactory> Factory( in TEST()
108 llvm::OwningPtr<FrontendAction> Action(Factory->create()); in TEST()
/external/llvm/lib/Support/
DMemoryBuffer.cpp157 OwningPtr<MemoryBuffer> &result, in getFileOrSTDIN()
165 OwningPtr<MemoryBuffer> &result, in getFileOrSTDIN()
204 OwningPtr<MemoryBuffer> &result, in getFile()
214 OwningPtr<MemoryBuffer> &result, in getFile()
275 OwningPtr<MemoryBuffer> &result, in getOpenFile()
328 OwningPtr<MemoryBuffer> SB(Buf); in getOpenFile()
367 error_code MemoryBuffer::getSTDIN(OwningPtr<MemoryBuffer> &result) { in getSTDIN()
/external/clang/lib/Frontend/
DChainedIncludesSource.cpp34 OwningPtr<ASTReader> Reader; in createASTReader()
65 OwningPtr<ChainedIncludesSource> source(new ChainedIncludesSource()); in create()
73 OwningPtr<CompilerInvocation> CInvok; in create()
94 OwningPtr<CompilerInstance> Clang(new CompilerInstance()); in create()
108 OwningPtr<ASTConsumer> consumer; in create()
135 OwningPtr<ExternalASTSource> Reader; in create()
159 OwningPtr<ASTReader> Reader; in create()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp330 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx, in AssembleInput()
332 OwningPtr<MCTargetAsmParser> TAP(TheTarget->createMCAsmParser(STI, *Parser)); in AssembleInput()
371 OwningPtr<MemoryBuffer> BufferPtr; in main()
388 llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(TripleName)); in main()
391 llvm::OwningPtr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in main()
396 OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo()); in main()
416 OwningPtr<tool_output_file> Out(GetOutputStream()); in main()
421 OwningPtr<MCStreamer> Str; in main()
423 OwningPtr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo()); in main()
424 OwningPtr<MCSubtargetInfo> in main()
/external/clang/examples/clang-interpreter/
Dmain.cpp49 OwningPtr<llvm::ExecutionEngine> EE( in Execute()
86 OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args)); in main()
111 OwningPtr<CompilerInvocation> CI(new CompilerInvocation); in main()
143 OwningPtr<CodeGenAction> Act(new EmitLLVMOnlyAction()); in main()
/external/clang/include/clang/Analysis/
DAnalysisContext.h79 OwningPtr<CFG> cfg, completeCFG;
80 OwningPtr<CFGStmtMap> cfgStmtMap;
87 OwningPtr<LiveVariables> liveness;
88 OwningPtr<LiveVariables> relaxedLiveness;
89 OwningPtr<ParentMap> PM;
90 OwningPtr<PseudoConstantAnalysis> PCA;
91 OwningPtr<CFGReverseBlockReachabilityAnalysis> CFA;
/external/llvm/lib/DebugInfo/
DDWARFContext.h30 OwningPtr<DWARFDebugAbbrev> Abbrev;
31 OwningPtr<DWARFDebugAranges> Aranges;
32 OwningPtr<DWARFDebugLine> Line;
/external/llvm/tools/llvm-dwarfdump/
Dllvm-dwarfdump.cpp43 OwningPtr<MemoryBuffer> Buff; in DumpInput()
50 OwningPtr<ObjectFile> Obj(ObjectFile::createObjectFile(Buff.take())); in DumpInput()
82 OwningPtr<DIContext> dictx(DIContext::getDWARFContext(/*FIXME*/true, in DumpInput()
/external/llvm/tools/llvm-objdump/
DMachODump.cpp236 OwningPtr<MemoryBuffer> Buff; in DisassembleInputMachO()
243 OwningPtr<MachOObjectFile> MachOOF(static_cast<MachOObjectFile*>( in DisassembleInputMachO()
252 OwningPtr<const MCInstrInfo> InstrInfo(TheTarget->createMCInstrInfo()); in DisassembleInputMachO()
253 OwningPtr<MCInstrAnalysis> in DisassembleInputMachO()
257 OwningPtr<const MCAsmInfo> AsmInfo(TheTarget->createMCAsmInfo(TripleName)); in DisassembleInputMachO()
258 OwningPtr<const MCSubtargetInfo> in DisassembleInputMachO()
260 OwningPtr<const MCDisassembler> DisAsm(TheTarget->createMCDisassembler(*STI)); in DisassembleInputMachO()
261 OwningPtr<const MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName)); in DisassembleInputMachO()
263 OwningPtr<MCInstPrinter> in DisassembleInputMachO()
312 OwningPtr<DIContext> diContext; in DisassembleInputMachO()
[all …]
/external/clang/lib/CodeGen/
DModuleBuilder.cpp31 OwningPtr<const llvm::TargetData> TD;
35 OwningPtr<llvm::Module> M;
36 OwningPtr<CodeGen::CodeGenModule> Builder;
/external/clang/lib/Tooling/
DCompilationDatabase.cpp116 llvm::OwningPtr<CompilationDatabase> Database( in loadFromDirectory()
154 llvm::OwningPtr<llvm::MemoryBuffer> DatabaseBuffer; in loadFromFile()
161 llvm::OwningPtr<JSONCompilationDatabase> Database( in loadFromFile()
171 llvm::OwningPtr<llvm::MemoryBuffer> DatabaseBuffer( in loadFromBuffer()
173 llvm::OwningPtr<JSONCompilationDatabase> Database( in loadFromBuffer()
/external/llvm/utils/TableGen/
DDAGISelMatcherOpt.cpp25 static void ContractNodes(OwningPtr<Matcher> &MatcherPtr, in ContractNodes()
34 OwningPtr<Matcher> Child(Scope->takeChild(i)); in ContractNodes()
183 static void SinkPatternPredicates(OwningPtr<Matcher> &MatcherPtr) { in SinkPatternPredicates()
192 OwningPtr<Matcher> Child(Scope->takeChild(i)); in SinkPatternPredicates()
248 static void FactorNodes(OwningPtr<Matcher> &MatcherPtr) { in FactorNodes()
265 OwningPtr<Matcher> Child(Scope->takeChild(i)); in FactorNodes()
508 OwningPtr<Matcher> MatcherPtr(TheMatcher); in OptimizeMatcher()
/external/clang/include/clang/Frontend/
DMultiplexConsumer.h58 OwningPtr<MultiplexASTMutationListener> MutationListener;
59 OwningPtr<MultiplexASTDeserializationListener> DeserializationListener;
DChainedDiagnosticConsumer.h25 OwningPtr<DiagnosticConsumer> Primary;
26 OwningPtr<DiagnosticConsumer> Secondary;
/external/clang/include/clang/Rewrite/
DFrontendActions.h31 OwningPtr<FixItRewriter> Rewriter;
32 OwningPtr<FixItOptions> FixItOpts;

123456789