|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/BrainF/BrainFDriver.cpp 145 std::unique_ptr<Module> Mod(bf.parse(in, 65536, cf, Context)); // 64 KiB
examples/Fibonacci/fibonacci.cpp 110 std::unique_ptr<Module> Owner(new Module("test", Context));
examples/HowToUseJIT/HowToUseJIT.cpp 66 std::unique_ptr<Module> Owner = std::make_unique<Module>("test", Context);
examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h 54 static Expected<std::unique_ptr<KaleidoscopeJIT>> Create() {
71 Error addModule(std::unique_ptr<Module> M) {
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp 171 std::unique_ptr<ExprAST> Operand;
174 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
183 std::unique_ptr<ExprAST> LHS, RHS;
186 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
187 std::unique_ptr<ExprAST> RHS)
196 std::vector<std::unique_ptr<ExprAST>> Args;
200 std::vector<std::unique_ptr<ExprAST>> Args)
208 std::unique_ptr<ExprAST> Cond, Then, Else;
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
212 std::unique_ptr<ExprAST> Else)
221 std::unique_ptr<ExprAST> Start, End, Step, Body;
224 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
226 std::unique_ptr<ExprAST> Body)
235 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
236 std::unique_ptr<ExprAST> Body;
240 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
241 std::unique_ptr<ExprAST> Body)
278 std::unique_ptr<PrototypeAST> Proto;
279 std::unique_ptr<ExprAST> Body;
282 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
283 std::unique_ptr<ExprAST> Body)
318 std::unique_ptr<ExprAST> LogError(const char *Str) {
323 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
328 static std::unique_ptr<ExprAST> ParseExpression();
331 static std::unique_ptr<ExprAST> ParseNumberExpr() {
338 static std::unique_ptr<ExprAST> ParseParenExpr() {
353 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
363 std::vector<std::unique_ptr<ExprAST>> Args;
387 static std::unique_ptr<ExprAST> ParseIfExpr() {
417 static std::unique_ptr<ExprAST> ParseForExpr() {
442 std::unique_ptr<ExprAST> Step;
464 static std::unique_ptr<ExprAST> ParseVarExpr() {
467 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
478 std::unique_ptr<ExprAST> Init = nullptr;
517 static std::unique_ptr<ExprAST> ParsePrimary() {
539 static std::unique_ptr<ExprAST> ParseUnary() {
554 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
555 std::unique_ptr<ExprAST> LHS) {
592 static std::unique_ptr<ExprAST> ParseExpression() {
604 static std::unique_ptr<PrototypeAST> ParsePrototype() {
667 static std::unique_ptr<FunctionAST> ParseDefinition() {
679 static std::unique_ptr<FunctionAST> ParseTopLevelExpr(unsigned ExprCount) {
690 static std::unique_ptr<PrototypeAST> ParseExtern() {
699 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
701 static std::unique_ptr<IRBuilder<>> Builder;
702 static std::unique_ptr<Module> TheModule;
704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h 65 static Expected<std::unique_ptr<KaleidoscopeJIT>> Create() {
78 Error addModule(std::unique_ptr<Module> M) {
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp 171 std::unique_ptr<ExprAST> Operand;
174 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
183 std::unique_ptr<ExprAST> LHS, RHS;
186 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
187 std::unique_ptr<ExprAST> RHS)
196 std::vector<std::unique_ptr<ExprAST>> Args;
200 std::vector<std::unique_ptr<ExprAST>> Args)
208 std::unique_ptr<ExprAST> Cond, Then, Else;
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
212 std::unique_ptr<ExprAST> Else)
221 std::unique_ptr<ExprAST> Start, End, Step, Body;
224 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
226 std::unique_ptr<ExprAST> Body)
235 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
236 std::unique_ptr<ExprAST> Body;
240 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
241 std::unique_ptr<ExprAST> Body)
278 std::unique_ptr<PrototypeAST> Proto;
279 std::unique_ptr<ExprAST> Body;
282 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
283 std::unique_ptr<ExprAST> Body)
318 std::unique_ptr<ExprAST> LogError(const char *Str) {
323 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
328 static std::unique_ptr<ExprAST> ParseExpression();
331 static std::unique_ptr<ExprAST> ParseNumberExpr() {
338 static std::unique_ptr<ExprAST> ParseParenExpr() {
353 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
363 std::vector<std::unique_ptr<ExprAST>> Args;
387 static std::unique_ptr<ExprAST> ParseIfExpr() {
417 static std::unique_ptr<ExprAST> ParseForExpr() {
442 std::unique_ptr<ExprAST> Step;
464 static std::unique_ptr<ExprAST> ParseVarExpr() {
467 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
478 std::unique_ptr<ExprAST> Init = nullptr;
517 static std::unique_ptr<ExprAST> ParsePrimary() {
539 static std::unique_ptr<ExprAST> ParseUnary() {
554 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
555 std::unique_ptr<ExprAST> LHS) {
592 static std::unique_ptr<ExprAST> ParseExpression() {
604 static std::unique_ptr<PrototypeAST> ParsePrototype() {
667 static std::unique_ptr<FunctionAST> ParseDefinition() {
679 static std::unique_ptr<FunctionAST> ParseTopLevelExpr(unsigned ExprCount) {
690 static std::unique_ptr<PrototypeAST> ParseExtern() {
699 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
701 static std::unique_ptr<IRBuilder<>> Builder;
702 static std::unique_ptr<Module> TheModule;
704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h 51 std::unique_ptr<TargetMachine> TM;
57 std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
57 std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
61 std::unique_ptr<JITCompileCallbackManager> CompileCallbackManager;
96 VModuleKey addModule(std::unique_ptr<Module> M) {
132 std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
132 std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp 171 std::unique_ptr<ExprAST> Operand;
174 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
183 std::unique_ptr<ExprAST> LHS, RHS;
186 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
187 std::unique_ptr<ExprAST> RHS)
196 std::vector<std::unique_ptr<ExprAST>> Args;
200 std::vector<std::unique_ptr<ExprAST>> Args)
208 std::unique_ptr<ExprAST> Cond, Then, Else;
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
212 std::unique_ptr<ExprAST> Else)
221 std::unique_ptr<ExprAST> Start, End, Step, Body;
224 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
226 std::unique_ptr<ExprAST> Body)
235 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
236 std::unique_ptr<ExprAST> Body;
240 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
241 std::unique_ptr<ExprAST> Body)
278 std::unique_ptr<PrototypeAST> Proto;
279 std::unique_ptr<ExprAST> Body;
282 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
283 std::unique_ptr<ExprAST> Body)
318 std::unique_ptr<ExprAST> LogError(const char *Str) {
323 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
328 static std::unique_ptr<ExprAST> ParseExpression();
331 static std::unique_ptr<ExprAST> ParseNumberExpr() {
338 static std::unique_ptr<ExprAST> ParseParenExpr() {
353 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
363 std::vector<std::unique_ptr<ExprAST>> Args;
387 static std::unique_ptr<ExprAST> ParseIfExpr() {
417 static std::unique_ptr<ExprAST> ParseForExpr() {
442 std::unique_ptr<ExprAST> Step;
464 static std::unique_ptr<ExprAST> ParseVarExpr() {
467 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
478 std::unique_ptr<ExprAST> Init = nullptr;
517 static std::unique_ptr<ExprAST> ParsePrimary() {
539 static std::unique_ptr<ExprAST> ParseUnary() {
554 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
555 std::unique_ptr<ExprAST> LHS) {
592 static std::unique_ptr<ExprAST> ParseExpression() {
604 static std::unique_ptr<PrototypeAST> ParsePrototype() {
667 static std::unique_ptr<FunctionAST> ParseDefinition() {
679 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
690 static std::unique_ptr<PrototypeAST> ParseExtern() {
701 static std::unique_ptr<Module> TheModule;
703 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h 50 std::unique_ptr<PrototypeAST> Proto;
51 std::unique_ptr<ExprAST> Body;
54 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
55 std::unique_ptr<ExprAST> Body)
67 std::unique_ptr<llvm::Module>
77 std::unique_ptr<TargetMachine> TM;
83 std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
83 std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
87 std::unique_ptr<JITCompileCallbackManager> CompileCallbackMgr;
88 std::unique_ptr<IndirectStubsManager> IndirectStubsMgr;
129 VModuleKey addModule(std::unique_ptr<Module> M) {
136 Error addFunctionAST(std::unique_ptr<FunctionAST> FnAST) {
208 std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
208 std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp 171 std::unique_ptr<ExprAST> Operand;
174 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
183 std::unique_ptr<ExprAST> LHS, RHS;
186 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
187 std::unique_ptr<ExprAST> RHS)
196 std::vector<std::unique_ptr<ExprAST>> Args;
200 std::vector<std::unique_ptr<ExprAST>> Args)
208 std::unique_ptr<ExprAST> Cond, Then, Else;
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
211 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
212 std::unique_ptr<ExprAST> Else)
221 std::unique_ptr<ExprAST> Start, End, Step, Body;
224 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
225 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
226 std::unique_ptr<ExprAST> Body)
235 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
236 std::unique_ptr<ExprAST> Body;
240 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
241 std::unique_ptr<ExprAST> Body)
303 std::unique_ptr<ExprAST> LogError(const char *Str) {
308 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
313 static std::unique_ptr<ExprAST> ParseExpression();
316 static std::unique_ptr<ExprAST> ParseNumberExpr() {
323 static std::unique_ptr<ExprAST> ParseParenExpr() {
338 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
348 std::vector<std::unique_ptr<ExprAST>> Args;
372 static std::unique_ptr<ExprAST> ParseIfExpr() {
402 static std::unique_ptr<ExprAST> ParseForExpr() {
427 std::unique_ptr<ExprAST> Step;
449 static std::unique_ptr<ExprAST> ParseVarExpr() {
452 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
463 std::unique_ptr<ExprAST> Init = nullptr;
502 static std::unique_ptr<ExprAST> ParsePrimary() {
524 static std::unique_ptr<ExprAST> ParseUnary() {
539 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
540 std::unique_ptr<ExprAST> LHS) {
577 static std::unique_ptr<ExprAST> ParseExpression() {
589 static std::unique_ptr<PrototypeAST> ParsePrototype() {
652 static std::unique_ptr<FunctionAST> ParseDefinition() {
664 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
675 static std::unique_ptr<PrototypeAST> ParseExtern() {
686 static std::unique_ptr<Module> TheModule;
688 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
689 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
1102 std::unique_ptr<llvm::Module>
examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h 52 std::unique_ptr<PrototypeAST> Proto;
53 std::unique_ptr<ExprAST> Body;
56 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
57 std::unique_ptr<ExprAST> Body)
69 std::unique_ptr<llvm::Module>
82 std::unique_ptr<TargetMachine> TM;
88 std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
88 std::function<std::unique_ptr<Module>(std::unique_ptr<Module>)>;
93 std::unique_ptr<IndirectStubsManager> IndirectStubsMgr;
142 VModuleKey addModule(std::unique_ptr<Module> M) {
149 Error addFunctionAST(std::unique_ptr<FunctionAST> FnAST) {
225 std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
225 std::unique_ptr<Module> optimizeModule(std::unique_ptr<Module> M) {
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp 188 std::unique_ptr<ExprAST> Operand;
191 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
200 std::unique_ptr<ExprAST> LHS, RHS;
203 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
204 std::unique_ptr<ExprAST> RHS)
213 std::vector<std::unique_ptr<ExprAST>> Args;
217 std::vector<std::unique_ptr<ExprAST>> Args)
225 std::unique_ptr<ExprAST> Cond, Then, Else;
228 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
228 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
229 std::unique_ptr<ExprAST> Else)
238 std::unique_ptr<ExprAST> Start, End, Step, Body;
241 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
242 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
242 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
243 std::unique_ptr<ExprAST> Body)
252 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
253 std::unique_ptr<ExprAST> Body;
257 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
258 std::unique_ptr<ExprAST> Body)
320 std::unique_ptr<ExprAST> LogError(const char *Str) {
325 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
330 static std::unique_ptr<ExprAST> ParseExpression();
333 static std::unique_ptr<ExprAST> ParseNumberExpr() {
340 static std::unique_ptr<ExprAST> ParseParenExpr() {
355 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
365 std::vector<std::unique_ptr<ExprAST>> Args;
389 static std::unique_ptr<ExprAST> ParseIfExpr() {
419 static std::unique_ptr<ExprAST> ParseForExpr() {
444 std::unique_ptr<ExprAST> Step;
466 static std::unique_ptr<ExprAST> ParseVarExpr() {
469 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
480 std::unique_ptr<ExprAST> Init = nullptr;
519 static std::unique_ptr<ExprAST> ParsePrimary() {
541 static std::unique_ptr<ExprAST> ParseUnary() {
556 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
557 std::unique_ptr<ExprAST> LHS) {
594 static std::unique_ptr<ExprAST> ParseExpression() {
606 static std::unique_ptr<PrototypeAST> ParsePrototype() {
669 static std::unique_ptr<FunctionAST> ParseDefinition() {
681 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
699 static std::unique_ptr<PrototypeAST> ParseExtern() {
710 static std::unique_ptr<Module> TheModule;
712 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
713 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
1126 std::unique_ptr<llvm::Module>
1234 std::unique_ptr<FDRPCChannel> connect() {
examples/Kaleidoscope/Chapter2/toy.cpp 114 std::unique_ptr<ExprAST> LHS, RHS;
117 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
118 std::unique_ptr<ExprAST> RHS)
125 std::vector<std::unique_ptr<ExprAST>> Args;
129 std::vector<std::unique_ptr<ExprAST>> Args)
149 std::unique_ptr<PrototypeAST> Proto;
150 std::unique_ptr<ExprAST> Body;
153 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
154 std::unique_ptr<ExprAST> Body)
187 std::unique_ptr<ExprAST> LogError(const char *Str) {
191 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
196 static std::unique_ptr<ExprAST> ParseExpression();
199 static std::unique_ptr<ExprAST> ParseNumberExpr() {
206 static std::unique_ptr<ExprAST> ParseParenExpr() {
221 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
231 std::vector<std::unique_ptr<ExprAST>> Args;
258 static std::unique_ptr<ExprAST> ParsePrimary() {
273 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
274 std::unique_ptr<ExprAST> LHS) {
311 static std::unique_ptr<ExprAST> ParseExpression() {
321 static std::unique_ptr<PrototypeAST> ParsePrototype() {
344 static std::unique_ptr<FunctionAST> ParseDefinition() {
356 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
367 static std::unique_ptr<PrototypeAST> ParseExtern() {
examples/Kaleidoscope/Chapter3/toy.cpp 132 std::unique_ptr<ExprAST> LHS, RHS;
135 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
136 std::unique_ptr<ExprAST> RHS)
145 std::vector<std::unique_ptr<ExprAST>> Args;
149 std::vector<std::unique_ptr<ExprAST>> Args)
172 std::unique_ptr<PrototypeAST> Proto;
173 std::unique_ptr<ExprAST> Body;
176 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
177 std::unique_ptr<ExprAST> Body)
212 std::unique_ptr<ExprAST> LogError(const char *Str) {
217 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
222 static std::unique_ptr<ExprAST> ParseExpression();
225 static std::unique_ptr<ExprAST> ParseNumberExpr() {
232 static std::unique_ptr<ExprAST> ParseParenExpr() {
247 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
257 std::vector<std::unique_ptr<ExprAST>> Args;
284 static std::unique_ptr<ExprAST> ParsePrimary() {
299 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
300 std::unique_ptr<ExprAST> LHS) {
337 static std::unique_ptr<ExprAST> ParseExpression() {
347 static std::unique_ptr<PrototypeAST> ParsePrototype() {
370 static std::unique_ptr<FunctionAST> ParseDefinition() {
382 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
393 static std::unique_ptr<PrototypeAST> ParseExtern() {
404 static std::unique_ptr<Module> TheModule;
examples/Kaleidoscope/Chapter4/toy.cpp 142 std::unique_ptr<ExprAST> LHS, RHS;
145 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
146 std::unique_ptr<ExprAST> RHS)
155 std::vector<std::unique_ptr<ExprAST>> Args;
159 std::vector<std::unique_ptr<ExprAST>> Args)
182 std::unique_ptr<PrototypeAST> Proto;
183 std::unique_ptr<ExprAST> Body;
186 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
187 std::unique_ptr<ExprAST> Body)
222 std::unique_ptr<ExprAST> LogError(const char *Str) {
227 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
232 static std::unique_ptr<ExprAST> ParseExpression();
235 static std::unique_ptr<ExprAST> ParseNumberExpr() {
242 static std::unique_ptr<ExprAST> ParseParenExpr() {
257 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
267 std::vector<std::unique_ptr<ExprAST>> Args;
294 static std::unique_ptr<ExprAST> ParsePrimary() {
309 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
310 std::unique_ptr<ExprAST> LHS) {
347 static std::unique_ptr<ExprAST> ParseExpression() {
357 static std::unique_ptr<PrototypeAST> ParsePrototype() {
380 static std::unique_ptr<FunctionAST> ParseDefinition() {
392 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
403 static std::unique_ptr<PrototypeAST> ParseExtern() {
414 static std::unique_ptr<Module> TheModule;
416 static std::unique_ptr<legacy::FunctionPassManager> TheFPM;
417 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
418 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/Chapter5/toy.cpp 160 std::unique_ptr<ExprAST> LHS, RHS;
163 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
164 std::unique_ptr<ExprAST> RHS)
173 std::vector<std::unique_ptr<ExprAST>> Args;
177 std::vector<std::unique_ptr<ExprAST>> Args)
185 std::unique_ptr<ExprAST> Cond, Then, Else;
188 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
188 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
189 std::unique_ptr<ExprAST> Else)
198 std::unique_ptr<ExprAST> Start, End, Step, Body;
201 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
202 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
202 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
203 std::unique_ptr<ExprAST> Body)
227 std::unique_ptr<PrototypeAST> Proto;
228 std::unique_ptr<ExprAST> Body;
231 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
232 std::unique_ptr<ExprAST> Body)
267 std::unique_ptr<ExprAST> LogError(const char *Str) {
272 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
277 static std::unique_ptr<ExprAST> ParseExpression();
280 static std::unique_ptr<ExprAST> ParseNumberExpr() {
287 static std::unique_ptr<ExprAST> ParseParenExpr() {
302 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
312 std::vector<std::unique_ptr<ExprAST>> Args;
336 static std::unique_ptr<ExprAST> ParseIfExpr() {
366 static std::unique_ptr<ExprAST> ParseForExpr() {
391 std::unique_ptr<ExprAST> Step;
417 static std::unique_ptr<ExprAST> ParsePrimary() {
436 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
437 std::unique_ptr<ExprAST> LHS) {
474 static std::unique_ptr<ExprAST> ParseExpression() {
484 static std::unique_ptr<PrototypeAST> ParsePrototype() {
507 static std::unique_ptr<FunctionAST> ParseDefinition() {
519 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
530 static std::unique_ptr<PrototypeAST> ParseExtern() {
541 static std::unique_ptr<Module> TheModule;
543 static std::unique_ptr<legacy::FunctionPassManager> TheFPM;
544 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
545 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/Chapter6/toy.cpp 168 std::unique_ptr<ExprAST> Operand;
171 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
180 std::unique_ptr<ExprAST> LHS, RHS;
183 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
184 std::unique_ptr<ExprAST> RHS)
193 std::vector<std::unique_ptr<ExprAST>> Args;
197 std::vector<std::unique_ptr<ExprAST>> Args)
205 std::unique_ptr<ExprAST> Cond, Then, Else;
208 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
208 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
209 std::unique_ptr<ExprAST> Else)
218 std::unique_ptr<ExprAST> Start, End, Step, Body;
221 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
222 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
222 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
223 std::unique_ptr<ExprAST> Body)
261 std::unique_ptr<PrototypeAST> Proto;
262 std::unique_ptr<ExprAST> Body;
265 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
266 std::unique_ptr<ExprAST> Body)
301 std::unique_ptr<ExprAST> LogError(const char *Str) {
306 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
311 static std::unique_ptr<ExprAST> ParseExpression();
314 static std::unique_ptr<ExprAST> ParseNumberExpr() {
321 static std::unique_ptr<ExprAST> ParseParenExpr() {
336 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
346 std::vector<std::unique_ptr<ExprAST>> Args;
370 static std::unique_ptr<ExprAST> ParseIfExpr() {
400 static std::unique_ptr<ExprAST> ParseForExpr() {
425 std::unique_ptr<ExprAST> Step;
451 static std::unique_ptr<ExprAST> ParsePrimary() {
471 static std::unique_ptr<ExprAST> ParseUnary() {
486 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
487 std::unique_ptr<ExprAST> LHS) {
524 static std::unique_ptr<ExprAST> ParseExpression() {
536 static std::unique_ptr<PrototypeAST> ParsePrototype() {
599 static std::unique_ptr<FunctionAST> ParseDefinition() {
611 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
622 static std::unique_ptr<PrototypeAST> ParseExtern() {
633 static std::unique_ptr<Module> TheModule;
635 static std::unique_ptr<legacy::FunctionPassManager> TheFPM;
636 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
637 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/Chapter7/toy.cpp 176 std::unique_ptr<ExprAST> Operand;
179 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
188 std::unique_ptr<ExprAST> LHS, RHS;
191 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
192 std::unique_ptr<ExprAST> RHS)
201 std::vector<std::unique_ptr<ExprAST>> Args;
205 std::vector<std::unique_ptr<ExprAST>> Args)
213 std::unique_ptr<ExprAST> Cond, Then, Else;
216 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
216 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
217 std::unique_ptr<ExprAST> Else)
226 std::unique_ptr<ExprAST> Start, End, Step, Body;
229 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
230 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
230 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
231 std::unique_ptr<ExprAST> Body)
240 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
241 std::unique_ptr<ExprAST> Body;
245 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
246 std::unique_ptr<ExprAST> Body)
283 std::unique_ptr<PrototypeAST> Proto;
284 std::unique_ptr<ExprAST> Body;
287 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
288 std::unique_ptr<ExprAST> Body)
323 std::unique_ptr<ExprAST> LogError(const char *Str) {
328 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
333 static std::unique_ptr<ExprAST> ParseExpression();
336 static std::unique_ptr<ExprAST> ParseNumberExpr() {
343 static std::unique_ptr<ExprAST> ParseParenExpr() {
358 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
368 std::vector<std::unique_ptr<ExprAST>> Args;
392 static std::unique_ptr<ExprAST> ParseIfExpr() {
422 static std::unique_ptr<ExprAST> ParseForExpr() {
447 std::unique_ptr<ExprAST> Step;
469 static std::unique_ptr<ExprAST> ParseVarExpr() {
472 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
483 std::unique_ptr<ExprAST> Init = nullptr;
522 static std::unique_ptr<ExprAST> ParsePrimary() {
544 static std::unique_ptr<ExprAST> ParseUnary() {
559 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
560 std::unique_ptr<ExprAST> LHS) {
597 static std::unique_ptr<ExprAST> ParseExpression() {
609 static std::unique_ptr<PrototypeAST> ParsePrototype() {
672 static std::unique_ptr<FunctionAST> ParseDefinition() {
684 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
695 static std::unique_ptr<PrototypeAST> ParseExtern() {
706 static std::unique_ptr<Module> TheModule;
708 static std::unique_ptr<legacy::FunctionPassManager> TheFPM;
709 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
710 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/Chapter8/toy.cpp 177 std::unique_ptr<ExprAST> Operand;
180 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
189 std::unique_ptr<ExprAST> LHS, RHS;
192 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS,
193 std::unique_ptr<ExprAST> RHS)
202 std::vector<std::unique_ptr<ExprAST>> Args;
206 std::vector<std::unique_ptr<ExprAST>> Args)
214 std::unique_ptr<ExprAST> Cond, Then, Else;
217 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
217 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
218 std::unique_ptr<ExprAST> Else)
227 std::unique_ptr<ExprAST> Start, End, Step, Body;
230 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
231 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
231 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
232 std::unique_ptr<ExprAST> Body)
241 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
242 std::unique_ptr<ExprAST> Body;
246 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
247 std::unique_ptr<ExprAST> Body)
284 std::unique_ptr<PrototypeAST> Proto;
285 std::unique_ptr<ExprAST> Body;
288 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
289 std::unique_ptr<ExprAST> Body)
324 std::unique_ptr<ExprAST> LogError(const char *Str) {
329 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
334 static std::unique_ptr<ExprAST> ParseExpression();
337 static std::unique_ptr<ExprAST> ParseNumberExpr() {
344 static std::unique_ptr<ExprAST> ParseParenExpr() {
359 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
369 std::vector<std::unique_ptr<ExprAST>> Args;
393 static std::unique_ptr<ExprAST> ParseIfExpr() {
423 static std::unique_ptr<ExprAST> ParseForExpr() {
448 std::unique_ptr<ExprAST> Step;
470 static std::unique_ptr<ExprAST> ParseVarExpr() {
473 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
484 std::unique_ptr<ExprAST> Init = nullptr;
523 static std::unique_ptr<ExprAST> ParsePrimary() {
545 static std::unique_ptr<ExprAST> ParseUnary() {
560 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
561 std::unique_ptr<ExprAST> LHS) {
598 static std::unique_ptr<ExprAST> ParseExpression() {
610 static std::unique_ptr<PrototypeAST> ParsePrototype() {
673 static std::unique_ptr<FunctionAST> ParseDefinition() {
685 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
696 static std::unique_ptr<PrototypeAST> ParseExtern() {
707 static std::unique_ptr<Module> TheModule;
709 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/Chapter9/toy.cpp 244 std::unique_ptr<ExprAST> Operand;
247 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand)
260 std::unique_ptr<ExprAST> LHS, RHS;
263 BinaryExprAST(SourceLocation Loc, char Op, std::unique_ptr<ExprAST> LHS,
264 std::unique_ptr<ExprAST> RHS)
278 std::vector<std::unique_ptr<ExprAST>> Args;
282 std::vector<std::unique_ptr<ExprAST>> Args)
295 std::unique_ptr<ExprAST> Cond, Then, Else;
298 IfExprAST(SourceLocation Loc, std::unique_ptr<ExprAST> Cond,
299 std::unique_ptr<ExprAST> Then, std::unique_ptr<ExprAST> Else)
299 std::unique_ptr<ExprAST> Then, std::unique_ptr<ExprAST> Else)
315 std::unique_ptr<ExprAST> Start, End, Step, Body;
318 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
319 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
319 std::unique_ptr<ExprAST> End, std::unique_ptr<ExprAST> Step,
320 std::unique_ptr<ExprAST> Body)
336 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
337 std::unique_ptr<ExprAST> Body;
341 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
342 std::unique_ptr<ExprAST> Body)
387 std::unique_ptr<PrototypeAST> Proto;
388 std::unique_ptr<ExprAST> Body;
391 FunctionAST(std::unique_ptr<PrototypeAST> Proto,
392 std::unique_ptr<ExprAST> Body)
431 std::unique_ptr<ExprAST> LogError(const char *Str) {
436 std::unique_ptr<PrototypeAST> LogErrorP(const char *Str) {
441 static std::unique_ptr<ExprAST> ParseExpression();
444 static std::unique_ptr<ExprAST> ParseNumberExpr() {
451 static std::unique_ptr<ExprAST> ParseParenExpr() {
466 static std::unique_ptr<ExprAST> ParseIdentifierExpr() {
478 std::vector<std::unique_ptr<ExprAST>> Args;
502 static std::unique_ptr<ExprAST> ParseIfExpr() {
534 static std::unique_ptr<ExprAST> ParseForExpr() {
559 std::unique_ptr<ExprAST> Step;
581 static std::unique_ptr<ExprAST> ParseVarExpr() {
584 std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
595 std::unique_ptr<ExprAST> Init = nullptr;
634 static std::unique_ptr<ExprAST> ParsePrimary() {
656 static std::unique_ptr<ExprAST> ParseUnary() {
671 static std::unique_ptr<ExprAST> ParseBinOpRHS(int ExprPrec,
672 std::unique_ptr<ExprAST> LHS) {
710 static std::unique_ptr<ExprAST> ParseExpression() {
722 static std::unique_ptr<PrototypeAST> ParsePrototype() {
787 static std::unique_ptr<FunctionAST> ParseDefinition() {
799 static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
811 static std::unique_ptr<PrototypeAST> ParseExtern() {
820 static std::unique_ptr<DIBuilder> DBuilder;
859 static std::unique_ptr<Module> TheModule;
861 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
862 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
examples/Kaleidoscope/include/KaleidoscopeJIT.h 63 VModuleKey addModule(std::unique_ptr<Module> M) {
129 std::unique_ptr<TargetMachine> TM;
examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp 34 std::unique_ptr<MemoryBuffer> getObject(const Module *M) override {
48 StringMap<std::unique_ptr<MemoryBuffer>> CachedObjects;
examples/ParallelJIT/ParallelJIT.cpp 262 std::unique_ptr<Module> Owner = std::make_unique<Module>("test", Context);
examples/SpeculativeJIT/SpeculativeJIT.cpp 42 static Expected<std::unique_ptr<SpeculativeJIT>> Create() {
71 std::unique_ptr<SpeculativeJIT> SJ(new SpeculativeJIT(
91 std::function<std::unique_ptr<IndirectStubsManager>()>;
99 std::unique_ptr<ExecutionSession> ES, DataLayout DL,
101 std::unique_ptr<LazyCallThroughManager> LCTMgr,
103 std::unique_ptr<DynamicLibrarySearchGenerator> ProcessSymbolsGenerator)
127 static std::unique_ptr<SectionMemoryManager> createMemMgr() {
131 std::unique_ptr<ExecutionSession> ES;
137 std::unique_ptr<LazyCallThroughManager> LCTMgr;
include/llvm/ADT/Any.h 31 virtual std::unique_ptr<StorageBase> clone() const = 0;
40 std::unique_ptr<StorageBase> clone() const override {
108 std::unique_ptr<StorageBase> Storage;
include/llvm/ADT/Statistic.h 182 std::unique_ptr<raw_fd_ostream> CreateInfoOutputFile();
include/llvm/Analysis/AliasAnalysis.h 764 std::vector<std::unique_ptr<Concept>> AAs;
1158 std::unique_ptr<AAResults> AAR;
include/llvm/Analysis/AssumptionCache.h 203 DenseMap<FunctionCallbackVH, std::unique_ptr<AssumptionCache>,
include/llvm/Analysis/BasicAliasAnalysis.h 235 std::unique_ptr<BasicAAResult> Result;
include/llvm/Analysis/BlockFrequencyInfo.h 40 std::unique_ptr<ImplType> BFI;
include/llvm/Analysis/CFLAndersAliasAnalysis.h 107 std::unique_ptr<CFLAndersAAResult> Result;
include/llvm/Analysis/CFLSteensAliasAnalysis.h 124 std::unique_ptr<CFLSteensAAResult> Result;
include/llvm/Analysis/CallGraph.h 77 std::map<const Function *, std::unique_ptr<CallGraphNode>>;
88 std::unique_ptr<CallGraphNode> CallsExternalNode;
325 std::unique_ptr<CallGraph> G;
457 std::pair<const Function *const, std::unique_ptr<CallGraphNode>>;
484 std::pair<const Function *const, std::unique_ptr<CallGraphNode>>;
include/llvm/Analysis/DDG.h 205 using DependenceList = SmallVector<std::unique_ptr<Dependence>, 1>;
322 using Result = std::unique_ptr<DataDependenceGraph>;
include/llvm/Analysis/DependenceAnalysis.h 287 std::unique_ptr<Dependence> depends(Instruction *Src,
969 std::unique_ptr<DependenceInfo> info;
include/llvm/Analysis/GlobalsModRef.h 138 std::unique_ptr<GlobalsAAResult> Result;
include/llvm/Analysis/IVUsers.h 168 std::unique_ptr<IVUsers> IU;
include/llvm/Analysis/LazyBranchProbabilityInfo.h 84 std::unique_ptr<LazyBranchProbabilityInfo> LBPI;
include/llvm/Analysis/LegacyDivergenceAnalysis.h 62 std::unique_ptr<GPUDivergenceAnalysis> gpuDA;
include/llvm/Analysis/LoopAccessAnalysis.h 631 std::unique_ptr<PredicatedScalarEvolution> PSE;
635 std::unique_ptr<RuntimePointerChecking> PtrRtChecking;
639 std::unique_ptr<MemoryDepChecker> DepChecker;
657 std::unique_ptr<OptimizationRemarkAnalysis> Report;
750 DenseMap<Loop *, std::unique_ptr<LoopAccessInfo>> LoopAccessInfoMap;
include/llvm/Analysis/LoopCacheAnalysis.h 155 using ReferenceGroupTy = SmallVector<std::unique_ptr<IndexedReference>, 8>;
193 static std::unique_ptr<CacheCost>
include/llvm/Analysis/MemorySSA.h 850 using AccessMap = DenseMap<const BasicBlock *, std::unique_ptr<AccessList>>;
851 using DefsMap = DenseMap<const BasicBlock *, std::unique_ptr<DefsList>>;
886 std::unique_ptr<MemoryAccess, ValueDeleter> LiveOnEntryDef;
895 std::unique_ptr<ClobberWalkerBase<AliasAnalysis>> WalkerBase;
896 std::unique_ptr<CachingWalker<AliasAnalysis>> Walker;
897 std::unique_ptr<SkipSelfWalker<AliasAnalysis>> SkipWalker;
936 Result(std::unique_ptr<MemorySSA> &&MSSA) : MSSA(std::move(MSSA)) {}
940 std::unique_ptr<MemorySSA> MSSA;
982 std::unique_ptr<MemorySSA> MSSA;
include/llvm/Analysis/MemorySSAUpdater.h 134 ArrayRef<std::unique_ptr<ValueToValueMapTy>> VMaps, DominatorTree &DT);
include/llvm/Analysis/ObjCARCAliasAnalysis.h 81 std::unique_ptr<ObjCARCAAResult> Result;
include/llvm/Analysis/OptimizationRemarkEmitter.h 105 std::unique_ptr<BlockFrequencyInfo> OwnedBFI;
137 std::unique_ptr<OptimizationRemarkEmitter> ORE;
include/llvm/Analysis/OrderedInstructions.h 31 mutable DenseMap<const BasicBlock *, std::unique_ptr<OrderedBasicBlock>>
include/llvm/Analysis/PhiValues.h 142 std::unique_ptr<PhiValues> Result;
include/llvm/Analysis/ProfileSummaryInfo.h 46 std::unique_ptr<ProfileSummary> Summary;
160 std::unique_ptr<ProfileSummaryInfo> PSI;
include/llvm/Analysis/RegionInfo.h 281 using RegionSet = std::vector<std::unique_ptr<RegionT>>;
286 using BBNodeMapT = std::map<BlockT *, std::unique_ptr<RegionNodeT>>;
include/llvm/Analysis/RegionInfoImpl.h 78 for (std::unique_ptr<RegionT> &Child : *R) {
96 for (std::unique_ptr<RegionT> &Child : *R) {
307 for (const std::unique_ptr<RegionT> &R : *this)
385 for (std::unique_ptr<RegionT> &R : *this) {
402 children.push_back(std::unique_ptr<RegionT>(SubRegion));
419 std::vector<std::unique_ptr<RegionT>> Keep;
420 for (std::unique_ptr<RegionT> &R : *this) {
516 for (const std::unique_ptr<RegionT> &R : *this)
534 for (std::unique_ptr<RegionT> &R : *this)
include/llvm/Analysis/ScalarEvolution.h 1128 std::unique_ptr<SCEVCouldNotCompute> CouldNotCompute;
1251 std::unique_ptr<SCEVUnionPredicate> Predicate;
1256 std::unique_ptr<SCEVUnionPredicate> Predicate)
1937 std::unique_ptr<ScalarEvolution> SE;
include/llvm/Analysis/ScalarEvolutionAliasAnalysis.h 53 std::unique_ptr<SCEVAAResult> Result;
include/llvm/Analysis/ScopedNoAliasAA.h 67 std::unique_ptr<ScopedNoAliasAAResult> Result;
include/llvm/Analysis/StackSafetyAnalysis.h 27 std::unique_ptr<FunctionInfo> Info;
include/llvm/Analysis/SyncDependenceAnalysis.h 78 std::map<const Loop *, std::unique_ptr<ConstBlockSet>> CachedLoopExitJoins;
79 std::map<const Instruction *, std::unique_ptr<ConstBlockSet>>
include/llvm/Analysis/TargetLibraryInfo.h 371 StringMap<std::unique_ptr<TargetLibraryInfoImpl>> Impls;
include/llvm/Analysis/TargetTransformInfo.h 1156 std::unique_ptr<Concept> TTIImpl;
include/llvm/Analysis/TypeBasedAliasAnalysis.h 73 std::unique_ptr<TypeBasedAAResult> Result;
include/llvm/AsmParser/Parser.h 43 std::unique_ptr<Module>
63 std::unique_ptr<Module> parseAssemblyString(StringRef AsmString,
73 std::unique_ptr<Module> Mod;
74 std::unique_ptr<ModuleSummaryIndex> Index;
107 std::unique_ptr<ModuleSummaryIndex>
120 std::unique_ptr<Module> parseAssembly(MemoryBufferRef F, SMDiagnostic &Err,
151 std::unique_ptr<ModuleSummaryIndex>
include/llvm/BinaryFormat/MsgPackDocument.h 242 std::vector<std::unique_ptr<DocNode::MapTy>> Maps;
243 std::vector<std::unique_ptr<DocNode::ArrayTy>> Arrays;
include/llvm/Bitcode/BitcodeReader.h 80 Expected<std::unique_ptr<Module>> getModuleImpl(LLVMContext &Context,
98 Expected<std::unique_ptr<Module>> getLazyModule(LLVMContext &Context,
103 Expected<std::unique_ptr<Module>> parseModule(LLVMContext &Context);
110 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary();
138 Expected<std::unique_ptr<Module>>
147 Expected<std::unique_ptr<Module>> getOwningLazyBitcodeModule(
148 std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context,
166 Expected<std::unique_ptr<Module>> parseBitcodeFile(MemoryBufferRef Buffer,
173 Expected<std::unique_ptr<ModuleSummaryIndex>>
185 Expected<std::unique_ptr<ModuleSummaryIndex>>
include/llvm/Bitcode/BitcodeWriter.h 33 std::unique_ptr<BitstreamWriter> Stream;
include/llvm/CodeGen/AccelTable.h 311 ArrayRef<std::unique_ptr<DwarfCompileUnit>> CUs);
include/llvm/CodeGen/AsmPrinter.h 94 std::unique_ptr<MCStreamer> OutStreamer;
146 std::unique_ptr<AsmPrinterHandler> Handler;
152 HandlerInfo(std::unique_ptr<AsmPrinterHandler> Handler,
174 std::unique_ptr<MachineDominatorTree> OwnedMDT;
177 std::unique_ptr<MachineLoopInfo> OwnedMLI;
181 mutable std::unique_ptr<SrcMgrDiagInfo> DiagInfo;
190 explicit AsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer);
include/llvm/CodeGen/DFAPacketizer.h 219 void addMutation(std::unique_ptr<ScheduleDAGMutation> Mutation);
include/llvm/CodeGen/GCMetadata.h 154 SmallVector<std::unique_ptr<GCStrategy>, 1> GCStrategyList;
166 using FuncInfoVec = std::vector<std::unique_ptr<GCFunctionInfo>>;
181 using iterator = SmallVector<std::unique_ptr<GCStrategy>, 1>::const_iterator;
include/llvm/CodeGen/GlobalISel/CSEInfo.h 58 std::unique_ptr<CSEConfigBase>
79 std::unique_ptr<CSEConfigBase> CSEOpt;
144 void setCSEConfig(std::unique_ptr<CSEConfigBase> Opt) {
210 GISelCSEInfo &get(std::unique_ptr<CSEConfigBase> CSEOpt,
include/llvm/CodeGen/GlobalISel/Combiner.h 41 std::unique_ptr<MachineIRBuilder> Builder;
include/llvm/CodeGen/GlobalISel/GISelKnownBits.h 93 std::unique_ptr<GISelKnownBits> Info;
include/llvm/CodeGen/GlobalISel/IRTranslator.h 494 std::unique_ptr<MachineIRBuilder> CurBuilder;
499 std::unique_ptr<MachineIRBuilder> EntryBuilder;
513 std::unique_ptr<OptimizationRemarkEmitter> ORE;
545 std::unique_ptr<GISelSwitchLowering> SL;
include/llvm/CodeGen/GlobalISel/RegBankSelect.h 329 using InsertionPoints = SmallVector<std::unique_ptr<InsertPoint>, 2>;
504 std::unique_ptr<MachineOptimizationRemarkEmitter> MORE;
include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h 393 mutable DenseMap<unsigned, std::unique_ptr<const PartialMapping>>
398 mutable DenseMap<unsigned, std::unique_ptr<const ValueMapping>>
408 mutable DenseMap<unsigned, std::unique_ptr<const InstructionMapping>>
include/llvm/CodeGen/LazyMachineBlockFrequencyInfo.h 40 mutable std::unique_ptr<MachineBlockFrequencyInfo> OwnedMBFI;
43 mutable std::unique_ptr<MachineLoopInfo> OwnedMLI;
46 mutable std::unique_ptr<MachineDominatorTree> OwnedMDT;
include/llvm/CodeGen/LiveInterval.h 209 std::unique_ptr<SegmentSet> segmentSet;
include/llvm/CodeGen/MIRParser/MIRParser.h 34 std::unique_ptr<MIRParserImpl> Impl;
37 MIRParser(std::unique_ptr<MIRParserImpl> Impl);
45 std::unique_ptr<Module> parseIRModule();
63 std::unique_ptr<MIRParser> createMIRParserFromFile(StringRef Filename,
75 std::unique_ptr<MIRParser>
76 createMIRParser(std::unique_ptr<MemoryBuffer> Contents, LLVMContext &Context);
include/llvm/CodeGen/MIRYamlMapping.h 566 static void mapping(IO &YamlIO, std::unique_ptr<MachineFunctionInfo> &MFI) {
593 std::unique_ptr<MachineFunctionInfo> MachineFuncInfo;
include/llvm/CodeGen/MachineBlockFrequencyInfo.h 35 std::unique_ptr<ImplType> MBFI;
include/llvm/CodeGen/MachineDominators.h 71 std::unique_ptr<DomTreeT> DT;
include/llvm/CodeGen/MachineFunction.h 301 std::unique_ptr<PseudoSourceValueManager> PSVManager;
include/llvm/CodeGen/MachineModuleInfo.h 141 DenseMap<const Function*, std::unique_ptr<MachineFunction>> MachineFunctions;
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h 209 std::unique_ptr<MachineOptimizationRemarkEmitter> ORE;
include/llvm/CodeGen/MachinePipeliner.h 156 std::vector<std::unique_ptr<ScheduleDAGMutation>> Mutations;
277 void addMutation(std::unique_ptr<ScheduleDAGMutation> Mutation) {
432 std::unique_ptr<DFAPacketizer> DFAResources;
include/llvm/CodeGen/MachinePostDominators.h 29 std::unique_ptr<PostDomTreeT> PDT;
include/llvm/CodeGen/MachineScheduler.h 266 std::unique_ptr<MachineSchedStrategy> SchedImpl;
269 std::vector<std::unique_ptr<ScheduleDAGMutation>> Mutations;
288 ScheduleDAGMI(MachineSchedContext *C, std::unique_ptr<MachineSchedStrategy> S,
314 void addMutation(std::unique_ptr<ScheduleDAGMutation> Mutation) {
425 std::unique_ptr<MachineSchedStrategy> S)
1068 std::unique_ptr<ScheduleDAGMutation>
1072 std::unique_ptr<ScheduleDAGMutation>
1076 std::unique_ptr<ScheduleDAGMutation>
include/llvm/CodeGen/MacroFusion.h 38 std::unique_ptr<ScheduleDAGMutation>
44 std::unique_ptr<ScheduleDAGMutation>
include/llvm/CodeGen/ModuloSchedule.h 172 std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo> LoopInfo;
include/llvm/CodeGen/PBQPRAConstraint.h 57 void addConstraint(std::unique_ptr<PBQPRAConstraint> C) {
63 std::vector<std::unique_ptr<PBQPRAConstraint>> Constraints;
include/llvm/CodeGen/ParallelCG.h 38 std::unique_ptr<Module>
39 splitCodeGen(std::unique_ptr<Module> M, ArrayRef<raw_pwrite_stream *> OSs,
41 const std::function<std::unique_ptr<TargetMachine>()> &TMFactory,
include/llvm/CodeGen/PseudoSourceValue.h 158 std::map<int, std::unique_ptr<FixedStackPseudoSourceValue>> FSValues;
159 StringMap<std::unique_ptr<const ExternalSymbolPseudoSourceValue>>
162 std::unique_ptr<const GlobalValuePseudoSourceValue>>
include/llvm/CodeGen/ResourcePriorityQueue.h 66 std::unique_ptr<DFAPacketizer> ResourcesModel;
include/llvm/CodeGen/SelectionDAGISel.h 65 std::unique_ptr<OptimizationRemarkEmitter> ORE;
include/llvm/CodeGen/TargetInstrInfo.h 706 virtual std::unique_ptr<PipelinerLoopInfo>
include/llvm/CodeGen/TargetPassConfig.h 324 virtual std::unique_ptr<CSEConfigBase> getCSEConfig() const;
include/llvm/CodeGen/TargetSubtargetInfo.h 241 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
247 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
287 virtual std::unique_ptr<PBQPRAConstraint> getCustomPBQPConstraints() const {
include/llvm/DebugInfo/CodeView/SymbolDeserializer.h 94 std::unique_ptr<MappingInfo> Mapping;
include/llvm/DebugInfo/CodeView/SymbolDumper.h 29 std::unique_ptr<SymbolDumpDelegate> ObjDelegate, CPUType CPU,
51 std::unique_ptr<SymbolDumpDelegate> ObjDelegate;
include/llvm/DebugInfo/CodeView/TypeDeserializer.h 99 std::unique_ptr<MappingInfo> Mapping;
include/llvm/DebugInfo/DIContext.h 282 virtual std::unique_ptr<LoadedObjectInfo> clone() const = 0;
295 std::unique_ptr<llvm::LoadedObjectInfo> clone() const override {
include/llvm/DebugInfo/DWARF/DWARFContext.h 60 std::unique_ptr<DWARFUnitIndex> CUIndex;
61 std::unique_ptr<DWARFGdbIndex> GdbIndex;
62 std::unique_ptr<DWARFUnitIndex> TUIndex;
63 std::unique_ptr<DWARFDebugAbbrev> Abbrev;
64 std::unique_ptr<DWARFDebugLoc> Loc;
65 std::unique_ptr<DWARFDebugAranges> Aranges;
66 std::unique_ptr<DWARFDebugLine> Line;
67 std::unique_ptr<DWARFDebugFrame> DebugFrame;
68 std::unique_ptr<DWARFDebugFrame> EHFrame;
69 std::unique_ptr<DWARFDebugMacro> Macro;
70 std::unique_ptr<DWARFDebugNames> Names;
71 std::unique_ptr<AppleAcceleratorTable> AppleNames;
72 std::unique_ptr<AppleAcceleratorTable> AppleTypes;
73 std::unique_ptr<AppleAcceleratorTable> AppleNamespaces;
74 std::unique_ptr<AppleAcceleratorTable> AppleObjC;
77 std::unique_ptr<DWARFDebugAbbrev> AbbrevDWO;
78 std::unique_ptr<DWARFDebugLoclists> LocDWO;
85 std::unique_ptr<DWARFContext> Context;
92 std::unique_ptr<MCRegisterInfo> RegInfo;
106 std::unique_ptr<const DWARFObject> DObj;
109 DWARFContext(std::unique_ptr<const DWARFObject> DObj,
349 static std::unique_ptr<DWARFContext>
354 static std::unique_ptr<DWARFContext>
355 create(const StringMap<std::unique_ptr<MemoryBuffer>> &Sections,
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h 270 std::vector<std::unique_ptr<dwarf::FrameEntry>> Entries;
include/llvm/DebugInfo/DWARF/DWARFUnit.h 113 class DWARFUnitVector final : public SmallVector<std::unique_ptr<DWARFUnit>, 1> {
114 std::function<std::unique_ptr<DWARFUnit>(uint64_t, DWARFSectionKind,
121 using UnitVector = SmallVectorImpl<std::unique_ptr<DWARFUnit>>;
144 DWARFUnit *addUnit(std::unique_ptr<DWARFUnit> Unit);
include/llvm/DebugInfo/GSYM/GsymReader.h 49 GsymReader(std::unique_ptr<MemoryBuffer> Buffer);
52 std::unique_ptr<MemoryBuffer> MemBuffer;
70 std::unique_ptr<SwappedData> Swap;
199 create(std::unique_ptr<MemoryBuffer> &MemBuffer);
include/llvm/DebugInfo/MSF/MappedBlockStream.h 43 static std::unique_ptr<MappedBlockStream>
47 static std::unique_ptr<MappedBlockStream>
51 static std::unique_ptr<MappedBlockStream>
55 static std::unique_ptr<MappedBlockStream>
109 static std::unique_ptr<WritableMappedBlockStream>
113 static std::unique_ptr<WritableMappedBlockStream>
117 static std::unique_ptr<WritableMappedBlockStream>
122 static std::unique_ptr<WritableMappedBlockStream>
include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h 25 ConcreteSymbolEnumerator(std::unique_ptr<IPDBEnumSymbols> SymbolEnumerator)
34 std::unique_ptr<ChildType> getChildAtIndex(uint32_t Index) const override {
35 std::unique_ptr<PDBSymbol> Child = Enumerator->getChildAtIndex(Index);
39 std::unique_ptr<ChildType> getNext() override {
47 std::unique_ptr<IPDBEnumSymbols> Enumerator;
include/llvm/DebugInfo/PDB/IPDBEnumChildren.h 21 using ChildTypePtr = std::unique_ptr<ChildType>;
35 virtual std::unique_ptr<ChildType>
39 virtual std::unique_ptr<ChildType> getNext() override {
include/llvm/DebugInfo/PDB/IPDBRawSymbol.h 56 virtual std::unique_ptr<IPDBEnumSymbols>
59 virtual std::unique_ptr<IPDBEnumSymbols>
62 virtual std::unique_ptr<IPDBEnumSymbols>
66 virtual std::unique_ptr<IPDBEnumSymbols>
69 virtual std::unique_ptr<IPDBEnumSymbols>
73 virtual std::unique_ptr<IPDBEnumSymbols>
75 virtual std::unique_ptr<IPDBEnumSymbols>
77 virtual std::unique_ptr<IPDBEnumSymbols>
80 virtual std::unique_ptr<IPDBEnumLineNumbers> findInlineeLines() const = 0;
81 virtual std::unique_ptr<IPDBEnumLineNumbers>
84 virtual std::unique_ptr<IPDBEnumLineNumbers>
86 virtual std::unique_ptr<IPDBEnumLineNumbers>
136 virtual std::unique_ptr<IPDBLineNumber>
158 virtual std::unique_ptr<PDBSymbolTypeBuiltin>
include/llvm/DebugInfo/PDB/IPDBSectionContrib.h 23 virtual std::unique_ptr<PDBSymbolCompiland> getCompiland() const = 0;
include/llvm/DebugInfo/PDB/IPDBSession.h 31 virtual std::unique_ptr<PDBSymbolExe> getGlobalScope() = 0;
32 virtual std::unique_ptr<PDBSymbol>
41 std::unique_ptr<T> getConcreteSymbolById(SymIndexId SymbolId) const {
45 virtual std::unique_ptr<PDBSymbol>
47 virtual std::unique_ptr<PDBSymbol>
49 virtual std::unique_ptr<PDBSymbol>
53 virtual std::unique_ptr<IPDBEnumLineNumbers>
56 virtual std::unique_ptr<IPDBEnumLineNumbers>
58 virtual std::unique_ptr<IPDBEnumLineNumbers>
60 virtual std::unique_ptr<IPDBEnumLineNumbers>
64 virtual std::unique_ptr<IPDBEnumSourceFiles>
67 virtual std::unique_ptr<IPDBSourceFile>
71 virtual std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
74 virtual std::unique_ptr<PDBSymbolCompiland>
78 virtual std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles() const = 0;
79 virtual std::unique_ptr<IPDBEnumSourceFiles>
81 virtual std::unique_ptr<IPDBSourceFile>
84 virtual std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const = 0;
86 virtual std::unique_ptr<IPDBEnumTables> getEnumTables() const = 0;
88 virtual std::unique_ptr<IPDBEnumInjectedSources>
91 virtual std::unique_ptr<IPDBEnumSectionContribs>
94 virtual std::unique_ptr<IPDBEnumFrameData>
include/llvm/DebugInfo/PDB/IPDBSourceFile.h 33 virtual std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h 96 std::vector<std::unique_ptr<codeview::DebugSubsectionRecordBuilder>>
include/llvm/DebugInfo/PDB/Native/DbiStream.h 41 explicit DbiStream(std::unique_ptr<BinaryStream> Stream);
100 Expected<std::unique_ptr<msf::MappedBlockStream>>
103 std::unique_ptr<BinaryStream> Stream;
124 std::unique_ptr<msf::MappedBlockStream> SectionHeaderStream;
127 std::unique_ptr<msf::MappedBlockStream> OldFpoStream;
130 std::unique_ptr<msf::MappedBlockStream> NewFpoStream;
include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h 125 std::vector<std::unique_ptr<DbiModuleDescriptorBuilder>> ModiList;
include/llvm/DebugInfo/PDB/Native/GSIStreamBuilder.h 74 std::unique_ptr<GSIHashStreamBuilder> PSH;
75 std::unique_ptr<GSIHashStreamBuilder> GSH;
include/llvm/DebugInfo/PDB/Native/GlobalsStream.h 72 explicit GlobalsStream(std::unique_ptr<msf::MappedBlockStream> Stream);
82 std::unique_ptr<msf::MappedBlockStream> Stream;
include/llvm/DebugInfo/PDB/Native/InfoStream.h 32 InfoStream(std::unique_ptr<BinaryStream> Stream);
58 std::unique_ptr<BinaryStream> Stream;
include/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h 26 InjectedSourceStream(std::unique_ptr<msf::MappedBlockStream> Stream);
36 std::unique_ptr<msf::MappedBlockStream> Stream;
include/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h 33 std::unique_ptr<msf::MappedBlockStream> Stream);
include/llvm/DebugInfo/PDB/Native/NativeEnumGlobals.h 29 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
30 std::unique_ptr<PDBSymbol> getNext() override;
include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h 28 std::unique_ptr<IPDBInjectedSource>
30 std::unique_ptr<IPDBInjectedSource> getNext() override;
include/llvm/DebugInfo/PDB/Native/NativeEnumModules.h 24 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
25 std::unique_ptr<PDBSymbol> getNext() override;
include/llvm/DebugInfo/PDB/Native/NativeEnumTypes.h 34 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
35 std::unique_ptr<PDBSymbol> getNext() override;
include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h 27 std::unique_ptr<IPDBEnumSymbols>
include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h 32 std::unique_ptr<IPDBEnumSymbols>
34 std::unique_ptr<IPDBEnumSymbols>
37 std::unique_ptr<IPDBEnumSymbols>
41 std::unique_ptr<IPDBEnumSymbols>
44 std::unique_ptr<IPDBEnumSymbols>
48 std::unique_ptr<IPDBEnumSymbols>
50 std::unique_ptr<IPDBEnumSymbols>
52 std::unique_ptr<IPDBEnumSymbols>
55 std::unique_ptr<IPDBEnumLineNumbers> findInlineeLines() const override;
56 std::unique_ptr<IPDBEnumLineNumbers>
59 std::unique_ptr<IPDBEnumLineNumbers>
61 std::unique_ptr<IPDBEnumLineNumbers>
111 std::unique_ptr<IPDBLineNumber> getSrcLineOnTypeDefn() const override;
133 std::unique_ptr<PDBSymbolTypeBuiltin>
include/llvm/DebugInfo/PDB/Native/NativeSession.h 30 NativeSession(std::unique_ptr<PDBFile> PdbFile,
31 std::unique_ptr<BumpPtrAllocator> Allocator);
34 static Error createFromPdb(std::unique_ptr<MemoryBuffer> MB,
35 std::unique_ptr<IPDBSession> &Session);
37 std::unique_ptr<IPDBSession> &Session);
41 std::unique_ptr<PDBSymbolExe> getGlobalScope() override;
42 std::unique_ptr<PDBSymbol> getSymbolById(SymIndexId SymbolId) const override;
49 std::unique_ptr<PDBSymbol>
51 std::unique_ptr<PDBSymbol> findSymbolByRVA(uint32_t RVA,
53 std::unique_ptr<PDBSymbol>
57 std::unique_ptr<IPDBEnumLineNumbers>
60 std::unique_ptr<IPDBEnumLineNumbers>
62 std::unique_ptr<IPDBEnumLineNumbers>
64 std::unique_ptr<IPDBEnumLineNumbers>
68 std::unique_ptr<IPDBEnumSourceFiles>
71 std::unique_ptr<IPDBSourceFile>
75 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
78 std::unique_ptr<PDBSymbolCompiland>
81 std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles() const override;
82 std::unique_ptr<IPDBEnumSourceFiles> getSourceFilesForCompiland(
84 std::unique_ptr<IPDBSourceFile>
87 std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const override;
89 std::unique_ptr<IPDBEnumTables> getEnumTables() const override;
91 std::unique_ptr<IPDBEnumInjectedSources> getInjectedSources() const override;
93 std::unique_ptr<IPDBEnumSectionContribs> getSectionContribs() const override;
95 std::unique_ptr<IPDBEnumFrameData> getFrameData() const override;
107 std::unique_ptr<PDBFile> Pdb;
108 std::unique_ptr<BumpPtrAllocator> Allocator;
include/llvm/DebugInfo/PDB/Native/NativeTypeEnum.h 36 std::unique_ptr<IPDBEnumSymbols>
include/llvm/DebugInfo/PDB/Native/NativeTypeFunctionSig.h 41 std::unique_ptr<IPDBEnumSymbols>
include/llvm/DebugInfo/PDB/Native/PDBFile.h 46 PDBFile(StringRef Path, std::unique_ptr<BinaryStream> PdbFileBuffer,
87 std::unique_ptr<msf::MappedBlockStream>
89 Expected<std::unique_ptr<msf::MappedBlockStream>>
91 Expected<std::unique_ptr<msf::MappedBlockStream>>
128 std::unique_ptr<BinaryStream> Buffer;
132 std::unique_ptr<GlobalsStream> Globals;
133 std::unique_ptr<InfoStream> Info;
134 std::unique_ptr<DbiStream> Dbi;
135 std::unique_ptr<TpiStream> Tpi;
136 std::unique_ptr<TpiStream> Ipi;
137 std::unique_ptr<PublicsStream> Publics;
138 std::unique_ptr<SymbolStream> Symbols;
139 std::unique_ptr<msf::MappedBlockStream> DirectoryStream;
140 std::unique_ptr<msf::MappedBlockStream> StringTableStream;
141 std::unique_ptr<InjectedSourceStream> InjectedSources;
142 std::unique_ptr<PDBStringTable> Strings;
include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h 61 void addInjectedSource(StringRef Name, std::unique_ptr<MemoryBuffer> Buffer);
77 std::unique_ptr<MemoryBuffer> Content;
91 std::unique_ptr<msf::MSFBuilder> Msf;
92 std::unique_ptr<InfoStreamBuilder> Info;
93 std::unique_ptr<DbiStreamBuilder> Dbi;
94 std::unique_ptr<GSIStreamBuilder> Gsi;
95 std::unique_ptr<TpiStreamBuilder> Tpi;
96 std::unique_ptr<TpiStreamBuilder> Ipi;
include/llvm/DebugInfo/PDB/Native/PublicsStream.h 29 PublicsStream(std::unique_ptr<msf::MappedBlockStream> Stream);
48 std::unique_ptr<msf::MappedBlockStream> Stream;
include/llvm/DebugInfo/PDB/Native/SymbolCache.h 36 std::vector<std::unique_ptr<NativeRawSymbol>> Cache;
103 std::unique_ptr<IPDBEnumSymbols>
106 std::unique_ptr<IPDBEnumSymbols>
109 std::unique_ptr<IPDBEnumSymbols>
131 std::unique_ptr<PDBSymbolCompiland> getOrCreateCompiland(uint32_t Index);
134 std::unique_ptr<PDBSymbol> getSymbolById(SymIndexId SymbolId) const;
include/llvm/DebugInfo/PDB/Native/SymbolStream.h 25 SymbolStream(std::unique_ptr<msf::MappedBlockStream> Stream);
42 std::unique_ptr<msf::MappedBlockStream> Stream;
include/llvm/DebugInfo/PDB/Native/TpiStream.h 37 TpiStream(PDBFile &File, std::unique_ptr<msf::MappedBlockStream> Stream);
77 std::unique_ptr<msf::MappedBlockStream> Stream;
79 std::unique_ptr<codeview::LazyRandomTypeCollection> Types;
85 std::unique_ptr<BinaryStream> HashStream;
include/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h 81 std::unique_ptr<BinaryByteStream> HashValueStream;
include/llvm/DebugInfo/PDB/PDB.h 23 std::unique_ptr<IPDBSession> &Session);
26 std::unique_ptr<IPDBSession> &Session);
include/llvm/DebugInfo/PDB/PDBContext.h 35 std::unique_ptr<IPDBSession> PDBSession);
60 std::unique_ptr<IPDBSession> Session;
include/llvm/DebugInfo/PDB/PDBSymbol.h 74 static std::unique_ptr<PDBSymbol> createSymbol(const IPDBSession &PDBSession,
82 static std::unique_ptr<PDBSymbol>
84 std::unique_ptr<IPDBRawSymbol> RawSymbol);
85 static std::unique_ptr<PDBSymbol> create(const IPDBSession &PDBSession,
89 static std::unique_ptr<ConcreteT>
91 std::unique_ptr<IPDBRawSymbol> RawSymbol) {
92 std::unique_ptr<PDBSymbol> S = create(PDBSession, std::move(RawSymbol));
96 static std::unique_ptr<ConcreteT> createAs(const IPDBSession &PDBSession,
98 std::unique_ptr<PDBSymbol> S = create(PDBSession, RawSymbol);
122 template <typename T> std::unique_ptr<T> findOneChild() const {
130 std::unique_ptr<ConcreteSymbolEnumerator<T>> findAllChildren() const {
136 std::unique_ptr<IPDBEnumSymbols> findAllChildren(PDB_SymType Type) const;
137 std::unique_ptr<IPDBEnumSymbols> findAllChildren() const;
139 std::unique_ptr<IPDBEnumSymbols>
142 std::unique_ptr<IPDBEnumSymbols> findChildrenByRVA(PDB_SymType Type,
146 std::unique_ptr<IPDBEnumSymbols> findInlineFramesByRVA(uint32_t RVA) const;
153 std::unique_ptr<IPDBEnumSymbols> getChildStats(TagStats &Stats) const;
156 std::unique_ptr<PDBSymbol> getSymbolByIdHelper(uint32_t Id) const;
159 std::unique_ptr<ConcreteType> getConcreteSymbolByIdHelper(uint32_t Id) const {
164 std::unique_ptr<IPDBRawSymbol> OwnedRawSymbol;
include/llvm/DebugInfo/PDB/PDBSymbolData.h 53 std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
include/llvm/DebugInfo/PDB/PDBSymbolFunc.h 30 std::unique_ptr<IPDBEnumChildren<PDBSymbolData>> getArguments() const;
78 std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h 23 std::unique_ptr<IPDBEnumSymbols> getArguments() const;
include/llvm/DebugInfo/PDB/UDTLayout.h 75 std::unique_ptr<PDBSymbolTypeBuiltin> Sym, uint32_t Offset,
81 std::unique_ptr<PDBSymbolTypeBuiltin> Type;
87 std::unique_ptr<PDBSymbolData> DataMember);
94 std::unique_ptr<PDBSymbolData> DataMember;
95 std::unique_ptr<ClassLayout> UdtLayout;
101 std::unique_ptr<PDBSymbolTypeVTable> VTable);
107 std::unique_ptr<PDBSymbolTypeVTable> VTable;
111 template <typename T> using UniquePtrVector = std::vector<std::unique_ptr<T>>;
124 ArrayRef<std::unique_ptr<PDBSymbolFunc>> funcs() const { return Funcs; }
125 ArrayRef<std::unique_ptr<PDBSymbol>> other_items() const { return Other; }
131 void addChildToLayout(std::unique_ptr<LayoutItemBase> Child);
151 bool Elide, std::unique_ptr<PDBSymbolTypeBaseClass> Base);
158 std::unique_ptr<PDBSymbolTypeBaseClass> Base;
165 explicit ClassLayout(std::unique_ptr<PDBSymbolTypeUDT> UDT);
174 std::unique_ptr<PDBSymbolTypeUDT> OwnedStorage;
include/llvm/DebugInfo/Symbolize/Symbolize.h 92 std::unique_ptr<DIContext> Context,
112 std::map<std::string, std::unique_ptr<SymbolizableModule>> Modules;
123 std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
include/llvm/ExecutionEngine/ExecutionEngine.h 134 SmallVector<std::unique_ptr<Module>, 1> Modules;
140 std::unique_ptr<Module> M, std::string *ErrorStr,
143 std::unique_ptr<TargetMachine> TM);
148 std::unique_ptr<TargetMachine> TM);
150 static ExecutionEngine *(*InterpCtor)(std::unique_ptr<Module> M,
173 virtual void addModule(std::unique_ptr<Module> M) {
187 virtual void addObjectFile(std::unique_ptr<object::ObjectFile> O);
497 explicit ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M);
498 explicit ExecutionEngine(std::unique_ptr<Module> M);
509 void Init(std::unique_ptr<Module> M);
528 std::unique_ptr<Module> M;
549 EngineBuilder(std::unique_ptr<Module> M);
567 EngineBuilder &setMCJITMemoryManager(std::unique_ptr<RTDyldMemoryManager> mcjmm);
570 setMemoryManager(std::unique_ptr<MCJITMemoryManager> MM);
572 EngineBuilder &setSymbolResolver(std::unique_ptr<LegacyJITSymbolResolver> SR);
include/llvm/ExecutionEngine/JITLink/JITLink.h 616 using SectionList = std::vector<std::unique_ptr<Section>>;
726 std::unique_ptr<Section> Sec(new Section(Name, Prot, Sections.size()));
962 std::unique_ptr<JITLinkAsyncLookupContinuation>
998 std::unique_ptr<JITLinkAsyncLookupContinuation> LC) = 0;
1011 notifyFinalized(std::unique_ptr<JITLinkMemoryManager::Allocation> A) = 0;
1039 void jitLink(std::unique_ptr<JITLinkContext> Ctx);
include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h 84 virtual Expected<std::unique_ptr<Allocation>>
91 Expected<std::unique_ptr<Allocation>>
include/llvm/ExecutionEngine/JITLink/MachO.h 25 void jitLink_MachO(std::unique_ptr<JITLinkContext> Ctx);
include/llvm/ExecutionEngine/JITLink/MachO_arm64.h 52 void jitLink_MachO_arm64(std::unique_ptr<JITLinkContext> Ctx);
include/llvm/ExecutionEngine/JITLink/MachO_x86_64.h 56 void jitLink_MachO_x86_64(std::unique_ptr<JITLinkContext> Ctx);
include/llvm/ExecutionEngine/ObjectCache.h 36 virtual std::unique_ptr<MemoryBuffer> getObject(const Module* M) = 0;
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 71 std::function<std::unique_ptr<IndirectStubsManager>()>;
105 std::unique_ptr<IndirectStubsManager> ISMgr)
112 std::unique_ptr<IndirectStubsManager> ISMgr;
191 std::unique_ptr<ResourceOwner<ResourceT>>
199 std::unique_ptr<Module> SourceMod;
209 std::unique_ptr<IndirectStubsMgrT> StubsMgr)
213 SourceModuleHandle addSourceModule(std::unique_ptr<Module> M) {
249 std::unique_ptr<IndirectStubsMgrT> StubsMgr;
262 std::function<std::unique_ptr<IndirectStubsMgrT>()>;
305 Error addModule(VModuleKey K, std::unique_ptr<Module> M) {
317 Error addExtraModule(VModuleKey K, std::unique_ptr<Module> M) {
383 Error addLogicalModule(LogicalDylib &LD, std::unique_ptr<Module> SrcMPtr) {
include/llvm/ExecutionEngine/Orc/CompileUtils.h 36 using CompileResult = std::unique_ptr<MemoryBuffer>;
62 TMOwningSimpleCompiler(std::unique_ptr<TargetMachine> TM,
83 std::unique_ptr<MemoryBuffer> operator()(Module &M);
include/llvm/ExecutionEngine/Orc/Core.h 249 void replace(std::unique_ptr<MaterializationUnit> MU);
331 std::vector<std::unique_ptr<MaterializationUnit>>;
361 inline std::unique_ptr<AbsoluteSymbolsMaterializationUnit>
405 inline std::unique_ptr<ReExportsMaterializationUnit>
416 inline std::unique_ptr<ReExportsMaterializationUnit>
528 GeneratorT &addGenerator(std::unique_ptr<GeneratorT> DefGenerator);
583 Error define(std::unique_ptr<MaterializationUnitType> &&MU);
593 Error define(std::unique_ptr<MaterializationUnitType> &MU);
630 UnmaterializedInfo(std::unique_ptr<MaterializationUnit> MU)
633 std::unique_ptr<MaterializationUnit> MU;
724 std::vector<std::unique_ptr<MaterializationUnit>> &MUs,
736 void replace(std::unique_ptr<MaterializationUnit> MU);
756 std::vector<std::unique_ptr<DefinitionGenerator>> DefGenerators;
771 JITDylib &JD, std::unique_ptr<MaterializationUnit> MU)>;
903 std::unique_ptr<MaterializationUnit> MU) {
922 std::unique_ptr<MaterializationUnit> MU) {
935 std::vector<std::unique_ptr<JITDylib>> JDs;
940 std::vector<std::pair<JITDylib *, std::unique_ptr<MaterializationUnit>>>
945 GeneratorT &JITDylib::addGenerator(std::unique_ptr<GeneratorT> DefGenerator) {
959 Error JITDylib::define(std::unique_ptr<MaterializationUnitType> &&MU) {
975 Error JITDylib::define(std::unique_ptr<MaterializationUnitType> &MU) {
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h 259 static Expected<std::unique_ptr<DynamicLibrarySearchGenerator>>
265 static Expected<std::unique_ptr<DynamicLibrarySearchGenerator>>
291 static Expected<std::unique_ptr<StaticLibraryDefinitionGenerator>>
297 static Expected<std::unique_ptr<StaticLibraryDefinitionGenerator>>
298 Create(ObjectLayer &L, std::unique_ptr<MemoryBuffer> ArchiveBuffer);
305 std::unique_ptr<MemoryBuffer> ArchiveBuffer,
309 std::unique_ptr<MemoryBuffer> ArchiveBuffer;
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h 33 std::function<Expected<std::unique_ptr<MemoryBuffer>>(Module &)>;
62 std::function<void(VModuleKey K, std::unique_ptr<Module>)>;
92 Error addModule(VModuleKey K, std::unique_ptr<Module> M) {
include/llvm/ExecutionEngine/Orc/IRTransformLayer.h 78 Error addModule(VModuleKey K, std::unique_ptr<Module> M) {
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h 75 static Expected<std::unique_ptr<LocalTrampolinePool>>
79 auto LTP = std::unique_ptr<LocalTrampolinePool>(
200 JITCompileCallbackManager(std::unique_ptr<TrampolinePool> TP,
207 void setTrampolinePool(std::unique_ptr<TrampolinePool> TP) {
213 std::unique_ptr<TrampolinePool> TP;
226 static Expected<std::unique_ptr<LocalJITCompileCallbackManager>>
229 auto CCMgr = std::unique_ptr<LocalJITCompileCallbackManager>(
398 Expected<std::unique_ptr<JITCompileCallbackManager>>
405 std::function<std::unique_ptr<IndirectStubsManager>()>
include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h 56 Expected<std::unique_ptr<TargetMachine>> createTargetMachine();
include/llvm/ExecutionEngine/Orc/LLJIT.h 39 static Expected<std::unique_ptr<LLJIT>> Create(LLJITBuilderState &S);
82 Error addObjectFile(JITDylib &JD, std::unique_ptr<MemoryBuffer> Obj);
85 Error addObjectFile(std::unique_ptr<MemoryBuffer> Obj) {
121 static std::unique_ptr<ObjectLayer>
136 std::unique_ptr<ExecutionSession> ES;
140 std::unique_ptr<ThreadPool> CompileThreads;
142 std::unique_ptr<ObjectLayer> ObjLinkingLayer;
143 std::unique_ptr<IRCompileLayer> CompileLayer;
180 std::unique_ptr<LazyCallThroughManager> LCTMgr;
181 std::unique_ptr<IRTransformLayer> TransformLayer;
182 std::unique_ptr<CompileOnDemandLayer> CODLayer;
187 using ObjectLinkingLayerCreator = std::function<std::unique_ptr<ObjectLayer>(
194 std::unique_ptr<ExecutionSession> ES;
258 Expected<std::unique_ptr<JITType>> create() {
263 std::unique_ptr<JITType> J(new JITType(impl(), Err));
283 std::function<std::unique_ptr<IndirectStubsManager>()>;
287 std::unique_ptr<LazyCallThroughManager> LCTMgr;
310 setLazyCallthroughManager(std::unique_ptr<LazyCallThroughManager> LCTMgr) {
include/llvm/ExecutionEngine/Orc/Layer.h 123 virtual Error add(JITDylib &JD, std::unique_ptr<MemoryBuffer> O,
128 std::unique_ptr<MemoryBuffer> O) = 0;
138 static Expected<std::unique_ptr<BasicObjectLayerMaterializationUnit>>
139 Create(ObjectLayer &L, VModuleKey K, std::unique_ptr<MemoryBuffer> O);
142 std::unique_ptr<MemoryBuffer> O,
154 std::unique_ptr<MemoryBuffer> O;
include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h 45 EmissionDeferredModule(VModuleKey K, std::unique_ptr<Module> M)
185 std::unique_ptr<Module> M;
186 mutable std::unique_ptr<StringMap<const GlobalValue*>> MangledSymbols;
190 std::map<VModuleKey, std::unique_ptr<EmissionDeferredModule>> ModuleMap;
205 Error addModule(VModuleKey K, std::unique_ptr<Module> M) {
include/llvm/ExecutionEngine/Orc/LazyReexports.h 72 static std::unique_ptr<NotifyResolvedFunction>
87 std::unique_ptr<TrampolinePool> TP);
91 void setTrampolinePool(std::unique_ptr<TrampolinePool> TP) {
105 std::unique_ptr<TrampolinePool> TP;
134 static Expected<std::unique_ptr<LocalLazyCallThroughManager>>
148 Expected<std::unique_ptr<LazyCallThroughManager>>
184 inline std::unique_ptr<LazyReexportsMaterializationUnit>
include/llvm/ExecutionEngine/Orc/Legacy.h 75 std::unique_ptr<LambdaSymbolResolver<
include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h 77 std::function<void(std::unique_ptr<MemoryBuffer>)>;
95 ObjectLinkingLayer &addPlugin(std::unique_ptr<Plugin> P) {
103 std::unique_ptr<MemoryBuffer> O) override;
137 using AllocPtr = std::unique_ptr<jitlink::JITLinkMemoryManager::Allocation>;
154 std::vector<std::unique_ptr<Plugin>> Plugins;
include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h 28 std::function<Expected<std::unique_ptr<MemoryBuffer>>(
29 std::unique_ptr<MemoryBuffer>)>;
35 std::unique_ptr<MemoryBuffer> O) override;
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h 503 static Expected<std::unique_ptr<OrcRemoteTargetClient>>
540 Expected<std::unique_ptr<RemoteRTDyldMemoryManager>>
551 Expected<std::unique_ptr<RemoteIndirectStubsManager>>
include/llvm/ExecutionEngine/Orc/RPCUtils.h 779 std::unique_ptr<ResponseHandler<ChannelT>> createResponseHandler(HandlerT H) {
1349 std::map<SequenceNumberT, std::unique_ptr<detail::ResponseHandler<ChannelT>>>
include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h 47 std::function<void(VModuleKey, std::unique_ptr<MemoryBuffer>)>;
50 std::function<std::unique_ptr<RuntimeDyld::MemoryManager>()>;
59 std::unique_ptr<MemoryBuffer> O) override;
119 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> LoadedObjInfo,
123 void onObjEmit(VModuleKey K, std::unique_ptr<MemoryBuffer> ObjBuffer,
133 std::vector<std::unique_ptr<RuntimeDyld::MemoryManager>> MemMgrs;
138 using ObjectPtr = std::unique_ptr<MemoryBuffer>;
242 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> Info =
324 std::unique_ptr<RuntimeDyld> RTDyld;
331 std::unique_ptr<PreFinalizeContents> PFC;
335 std::unique_ptr<ConcreteLinkedObject<MemoryManagerPtrT>>
475 std::map<VModuleKey, std::unique_ptr<LinkedObject>> LinkedObjects;
include/llvm/ExecutionEngine/Orc/RemoteObjectLayer.h 304 using ObjectPtr = std::unique_ptr<MemoryBuffer>;
include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h 32 State(std::unique_ptr<LLVMContext> Ctx) : Ctx(std::move(Ctx)) {}
34 std::unique_ptr<LLVMContext> Ctx;
53 ThreadSafeContext(std::unique_ptr<LLVMContext> NewCtx)
104 ThreadSafeModule(std::unique_ptr<Module> M, std::unique_ptr<LLVMContext> Ctx)
104 ThreadSafeModule(std::unique_ptr<Module> M, std::unique_ptr<LLVMContext> Ctx)
109 ThreadSafeModule(std::unique_ptr<Module> M, ThreadSafeContext TSCtx)
159 std::unique_ptr<Module> M;
include/llvm/ExecutionEngine/RuntimeDyld.h 182 std::unique_ptr<LoadedObjectInfo> loadObject(const object::ObjectFile &O);
272 std::unique_ptr<MemoryBuffer> UnderlyingBuffer,
275 unique_function<Error(std::unique_ptr<LoadedObjectInfo>,
282 std::unique_ptr<RuntimeDyldImpl> Dyld;
296 object::ObjectFile &Obj, std::unique_ptr<MemoryBuffer> UnderlyingBuffer,
299 unique_function<Error(std::unique_ptr<RuntimeDyld::LoadedObjectInfo>,
include/llvm/ExecutionEngine/RuntimeDyldChecker.h 179 std::unique_ptr<RuntimeDyldCheckerImpl> Impl;
include/llvm/FuzzMutate/FuzzerCLI.h 58 std::unique_ptr<Module> parseModule(const uint8_t *Data, size_t Size,
73 std::unique_ptr<Module> parseAndVerify(const uint8_t *Data, size_t Size,
include/llvm/FuzzMutate/IRMutator.h 62 std::vector<std::unique_ptr<IRMutationStrategy>> Strategies;
66 std::vector<std::unique_ptr<IRMutationStrategy>> &&Strategies)
include/llvm/IR/Function.h 75 std::unique_ptr<ValueSymbolTable>
include/llvm/IR/LLVMContext.h 187 void setDiagnosticHandler(std::unique_ptr<DiagnosticHandler> &&DH,
204 std::unique_ptr<DiagnosticHandler> getDiagnosticHandler();
238 void setRemarkStreamer(std::unique_ptr<RemarkStreamer> RemarkStreamer);
include/llvm/IR/Metadata.h 775 std::unique_ptr<ReplaceableMetadataImpl> ReplaceableUses)
818 makeReplaceable(std::unique_ptr<ReplaceableMetadataImpl> ReplaceableUses) {
829 std::unique_ptr<ReplaceableMetadataImpl> takeReplaceableUses() {
831 std::unique_ptr<ReplaceableMetadataImpl> ReplaceableUses(
971 replaceWithPermanent(std::unique_ptr<T, TempMDNodeDeleter> N) {
983 replaceWithUniqued(std::unique_ptr<T, TempMDNodeDeleter> N) {
993 replaceWithDistinct(std::unique_ptr<T, TempMDNodeDeleter> N) {
include/llvm/IR/Module.h 180 std::unique_ptr<MemoryBuffer>
183 std::unique_ptr<GVMaterializer>
260 std::unique_ptr<RandomNumberGenerator> createRNG(const Pass* P) const;
899 void setOwnedMemoryBuffer(std::unique_ptr<MemoryBuffer> MB);
include/llvm/IR/ModuleSlotTracker.h 31 std::unique_ptr<SlotTracker> MachineStorage;
include/llvm/IR/ModuleSummaryIndex.h 120 using GlobalValueSummaryList = std::vector<std::unique_ptr<GlobalValueSummary>>;
183 ArrayRef<std::unique_ptr<GlobalValueSummary>> getSummaryList() const {
589 std::unique_ptr<TypeIdInfo> TIdInfo;
753 std::unique_ptr<VTableFuncList> VTableFuncs;
1141 std::unique_ptr<GlobalValueSummary> Summary) {
1147 std::unique_ptr<GlobalValueSummary> Summary) {
1154 std::unique_ptr<GlobalValueSummary> Summary) {
1421 std::unique_ptr<GlobalValueSummary> Root =
include/llvm/IR/PassManager.h 561 std::vector<std::unique_ptr<PassConceptT>> Passes;
627 std::list<std::pair<AnalysisKey *, std::unique_ptr<ResultConceptT>>>;
999 DenseMap<AnalysisKey *, std::unique_ptr<PassConceptT>>;
include/llvm/IR/PassManagerInternal.h 246 virtual std::unique_ptr<
288 std::unique_ptr<
include/llvm/IR/PassTimingInfo.h 59 DenseMap<PassInvocationID, std::unique_ptr<Timer>> TimingData;
include/llvm/IR/RemarkStreamer.h 31 std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer;
41 RemarkStreamer(std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer,
92 Expected<std::unique_ptr<ToolOutputFile>>
include/llvm/IR/Value.h 723 using unique_value = std::unique_ptr<Value, ValueDeleter>;
include/llvm/IRReader/IRReader.h 35 std::unique_ptr<Module> getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer,
35 std::unique_ptr<Module> getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer,
44 std::unique_ptr<Module>
55 std::unique_ptr<Module> parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err,
67 std::unique_ptr<Module> parseIRFile(StringRef Filename, SMDiagnostic &Err,
include/llvm/LTO/Caching.h 28 std::function<void(unsigned Task, std::unique_ptr<MemoryBuffer> MB)>;
include/llvm/LTO/Config.h 127 std::unique_ptr<raw_ostream> ResolutionFile;
include/llvm/LTO/LTO.h 89 Expected<std::unique_ptr<ToolOutputFile>>
95 Expected<std::unique_ptr<ToolOutputFile>>
128 static Expected<std::unique_ptr<InputFile>> create(MemoryBufferRef Object);
194 NativeObjectStream(std::unique_ptr<raw_pwrite_stream> OS) : OS(std::move(OS)) {}
195 std::unique_ptr<raw_pwrite_stream> OS;
204 std::function<std::unique_ptr<NativeObjectStream>(unsigned Task)>;
224 using ThinBackend = std::function<std::unique_ptr<ThinBackendProc>(
284 Error add(std::unique_ptr<InputFile> Obj, ArrayRef<SymbolResolution> Res);
320 std::unique_ptr<Module> CombinedModule;
321 std::unique_ptr<IRMover> Mover;
328 std::unique_ptr<Module> M;
include/llvm/LTO/LTOBackend.h 40 std::unique_ptr<Module> M, ModuleSummaryIndex &CombinedIndex);
include/llvm/LTO/legacy/LTOCodeGenerator.h 82 void setModule(std::unique_ptr<LTOModule> M);
156 std::unique_ptr<MemoryBuffer> compile(bool DisableVerify, bool DisableInline,
169 std::unique_ptr<MemoryBuffer> compileOptimized();
208 std::unique_ptr<TargetMachine> createTargetMachine();
216 std::unique_ptr<Module> MergedModule;
217 std::unique_ptr<Linker> TheLinker;
218 std::unique_ptr<TargetMachine> TargetMach;
242 std::unique_ptr<ToolOutputFile> DiagnosticOutputFile;
244 std::unique_ptr<ToolOutputFile> StatsFile = nullptr;
include/llvm/LTO/legacy/LTOModule.h 47 std::unique_ptr<LLVMContext> OwnedContext;
53 std::unique_ptr<Module> Mod;
56 std::unique_ptr<TargetMachine> _target;
64 LTOModule(std::unique_ptr<Module> M, MemoryBufferRef MBRef,
88 static std::unique_ptr<MemoryBuffer>
99 static ErrorOr<std::unique_ptr<LTOModule>>
102 static ErrorOr<std::unique_ptr<LTOModule>>
105 static ErrorOr<std::unique_ptr<LTOModule>>
109 static ErrorOr<std::unique_ptr<LTOModule>>
112 static ErrorOr<std::unique_ptr<LTOModule>>
113 createInLocalContext(std::unique_ptr<LLVMContext> Context, const void *mem,
120 std::unique_ptr<Module> takeModule() { return std::move(Mod); }
213 static ErrorOr<std::unique_ptr<LTOModule>>
include/llvm/LTO/legacy/ThinLTOCodeGenerator.h 44 std::unique_ptr<TargetMachine> create() const;
88 std::vector<std::unique_ptr<MemoryBuffer>> &getProducedBinaries() {
247 std::unique_ptr<ModuleSummaryIndex> linkCombinedIndex();
305 std::vector<std::unique_ptr<MemoryBuffer>> ProducedBinaries;
312 std::vector<std::unique_ptr<lto::InputFile>> Modules;
include/llvm/LineEditor/LineEditor.h 114 std::unique_ptr<InternalData> Data;
148 std::unique_ptr<const CompleterConcept> Completer;
include/llvm/Linker/IRMover.h 75 Error move(std::unique_ptr<Module> Src, ArrayRef<GlobalValue *> ValuesToLink,
include/llvm/Linker/Linker.h 46 bool linkInModule(std::unique_ptr<Module> Src, unsigned Flags = Flags::None,
50 static bool linkModules(Module &Dest, std::unique_ptr<Module> Src,
include/llvm/MC/MCAsmBackend.h 42 std::unique_ptr<MCCodePadder> CodePadder;
59 std::unique_ptr<MCObjectWriter>
65 std::unique_ptr<MCObjectWriter>
68 virtual std::unique_ptr<MCObjectTargetWriter>
include/llvm/MC/MCAssembler.h 104 std::unique_ptr<MCAsmBackend> Backend;
106 std::unique_ptr<MCCodeEmitter> Emitter;
108 std::unique_ptr<MCObjectWriter> Writer;
221 MCAssembler(MCContext &Context, std::unique_ptr<MCAsmBackend> Backend,
222 std::unique_ptr<MCCodeEmitter> Emitter,
223 std::unique_ptr<MCObjectWriter> Writer);
include/llvm/MC/MCContext.h 85 std::unique_ptr<CodeViewContext> CVContext;
137 std::unique_ptr<raw_fd_ostream> SecureLog;
667 void setSecureLog(std::unique_ptr<raw_fd_ostream> Value) {
include/llvm/MC/MCDisassembler/MCDisassembler.h 106 std::unique_ptr<MCSymbolizer> Symbolizer;
119 void setSymbolizer(std::unique_ptr<MCSymbolizer> Symzer);
include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h 41 std::unique_ptr<MCRelocationInfo> RelInfo,
include/llvm/MC/MCDisassembler/MCSymbolizer.h 41 std::unique_ptr<MCRelocationInfo> RelInfo;
45 MCSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> RelInfo)
include/llvm/MC/MCELFObjectWriter.h 152 std::unique_ptr<MCObjectWriter>
153 createELFObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW,
156 std::unique_ptr<MCObjectWriter>
157 createELFDwoObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW,
include/llvm/MC/MCELFStreamer.h 25 MCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
26 std::unique_ptr<MCObjectWriter> OW,
27 std::unique_ptr<MCCodeEmitter> Emitter);
101 std::unique_ptr<MCAsmBackend> TAB,
102 std::unique_ptr<MCObjectWriter> OW,
103 std::unique_ptr<MCCodeEmitter> Emitter,
include/llvm/MC/MCMachObjectWriter.h 93 std::unique_ptr<MCMachObjectTargetWriter> TargetObjectWriter;
126 MachObjectWriter(std::unique_ptr<MCMachObjectTargetWriter> MOTW,
281 std::unique_ptr<MCObjectWriter>
282 createMachObjectWriter(std::unique_ptr<MCMachObjectTargetWriter> MOTW,
include/llvm/MC/MCObjectStreamer.h 36 std::unique_ptr<MCAssembler> Assembler;
58 MCObjectStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
59 std::unique_ptr<MCObjectWriter> OW,
60 std::unique_ptr<MCCodeEmitter> Emitter);
include/llvm/MC/MCParser/MCTargetAsmParser.h 32 using OperandVector = SmallVectorImpl<std::unique_ptr<MCParsedAsmOperand>>;
include/llvm/MC/MCStreamer.h 183 std::unique_ptr<AssemblerConstantPools> ConstantPools;
198 std::unique_ptr<MCTargetStreamer> TargetStreamer;
205 std::vector<std::unique_ptr<WinEH::FrameInfo>> WinFrameInfos;
283 ArrayRef<std::unique_ptr<WinEH::FrameInfo>> getWinFrameInfos() const {
1043 std::unique_ptr<formatted_raw_ostream> OS,
include/llvm/MC/MCWasmObjectWriter.h 51 std::unique_ptr<MCObjectWriter>
52 createWasmObjectWriter(std::unique_ptr<MCWasmObjectTargetWriter> MOTW,
include/llvm/MC/MCWasmStreamer.h 29 MCWasmStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
30 std::unique_ptr<MCObjectWriter> OW,
31 std::unique_ptr<MCCodeEmitter> Emitter)
include/llvm/MC/MCWinCOFFObjectWriter.h 51 std::unique_ptr<MCObjectWriter>
52 createWinCOFFObjectWriter(std::unique_ptr<MCWinCOFFObjectTargetWriter> MOTW,
include/llvm/MC/MCWinCOFFStreamer.h 29 MCWinCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
30 std::unique_ptr<MCCodeEmitter> CE,
31 std::unique_ptr<MCObjectWriter> OW);
include/llvm/MC/MCXCOFFObjectWriter.h 35 std::unique_ptr<MCObjectWriter>
36 createXCOFFObjectWriter(std::unique_ptr<MCXCOFFObjectTargetWriter> MOTW,
include/llvm/MC/MCXCOFFStreamer.h 18 MCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
19 std::unique_ptr<MCObjectWriter> OW,
20 std::unique_ptr<MCCodeEmitter> Emitter);
include/llvm/MCA/Context.h 51 SmallVector<std::unique_ptr<HardwareUnit>, 4> Hardware;
63 void addHardwareUnit(std::unique_ptr<HardwareUnit> H) {
69 std::unique_ptr<Pipeline> createDefaultPipeline(const PipelineOptions &Opts,
include/llvm/MCA/HardwareUnits/LSUnit.h 195 DenseMap<unsigned, std::unique_ptr<MemoryGroup>> Groups;
include/llvm/MCA/HardwareUnits/ResourceManager.h 340 std::vector<std::unique_ptr<ResourceState>> Resources;
341 std::vector<std::unique_ptr<ResourceStrategy>> Strategies;
383 void setCustomStrategyImpl(std::unique_ptr<ResourceStrategy> S,
392 void setCustomStrategy(std::unique_ptr<ResourceStrategy> S,
440 for (const std::unique_ptr<ResourceState> &Resource : Resources)
include/llvm/MCA/HardwareUnits/Scheduler.h 74 std::unique_ptr<SchedulerStrategy> Strategy;
77 std::unique_ptr<ResourceManager> Resources;
134 void initializeStrategy(std::unique_ptr<SchedulerStrategy> S);
161 std::unique_ptr<SchedulerStrategy> SelectStrategy)
165 Scheduler(std::unique_ptr<ResourceManager> RM, LSUnitBase &Lsu,
166 std::unique_ptr<SchedulerStrategy> SelectStrategy)
include/llvm/MCA/InstrBuilder.h 45 DenseMap<unsigned short, std::unique_ptr<const InstrDesc>> Descriptors;
46 DenseMap<const MCInst *, std::unique_ptr<const InstrDesc>> VariantDescriptors;
71 Expected<std::unique_ptr<Instruction>> createInstruction(const MCInst &MCI);
include/llvm/MCA/Pipeline.h 57 SmallVector<std::unique_ptr<Stage>, 8> Stages;
68 void appendStage(std::unique_ptr<Stage> S);
include/llvm/MCA/SourceMgr.h 29 using UniqueInst = std::unique_ptr<Instruction>;
include/llvm/MCA/Stages/EntryStage.h 28 SmallVector<std::unique_ptr<Instruction>, 16> Instructions;
include/llvm/Object/Archive.h 142 Expected<std::unique_ptr<Binary>>
222 static Expected<std::unique_ptr<Archive>> create(MemoryBufferRef Source);
266 std::vector<std::unique_ptr<MemoryBuffer>> takeThinBuffers() {
280 mutable std::vector<std::unique_ptr<MemoryBuffer>> ThinBuffers;
include/llvm/Object/ArchiveWriter.h 24 std::unique_ptr<MemoryBuffer> Buf;
44 std::unique_ptr<MemoryBuffer> OldArchiveBuf = nullptr);
include/llvm/Object/Binary.h 180 Expected<std::unique_ptr<Binary>> createBinary(MemoryBufferRef Source,
184 std::unique_ptr<T> Bin;
185 std::unique_ptr<MemoryBuffer> Buf;
189 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
189 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
193 std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>> takeBinary();
193 std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>> takeBinary();
200 OwningBinary<T>::OwningBinary(std::unique_ptr<T> Bin,
201 std::unique_ptr<MemoryBuffer> Buf)
218 std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>>
218 std::pair<std::unique_ptr<T>, std::unique_ptr<MemoryBuffer>>
include/llvm/Object/IRObjectFile.h 32 std::vector<std::unique_ptr<Module>> Mods;
35 std::vector<std::unique_ptr<Module>> Mods);
52 pointee_iterator<std::vector<std::unique_ptr<Module>>::const_iterator,
72 static Expected<std::unique_ptr<IRObjectFile>> create(MemoryBufferRef Object,
include/llvm/Object/MachO.h 271 static Expected<std::unique_ptr<MachOObjectFile>>
670 std::unique_ptr<BindRebaseSegInfo> BindRebaseSectionTable;
include/llvm/Object/MachOUniversal.h 114 Expected<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const;
116 Expected<std::unique_ptr<Archive>> getAsArchive() const;
140 static Expected<std::unique_ptr<MachOUniversalBinary>>
165 Expected<std::unique_ptr<MachOObjectFile>>
168 Expected<std::unique_ptr<Archive>>
include/llvm/Object/Minidump.h 28 static Expected<std::unique_ptr<MinidumpFile>> create(MemoryBufferRef Source);
include/llvm/Object/ObjectFile.h 342 static Expected<std::unique_ptr<ObjectFile>>
344 static Expected<std::unique_ptr<ObjectFile>>
353 static Expected<std::unique_ptr<COFFObjectFile>>
356 static Expected<std::unique_ptr<ObjectFile>>
359 static Expected<std::unique_ptr<ObjectFile>>
362 static Expected<std::unique_ptr<MachOObjectFile>>
367 static Expected<std::unique_ptr<WasmObjectFile>>
include/llvm/Object/SymbolicFile.h 163 static Expected<std::unique_ptr<SymbolicFile>>
167 static Expected<std::unique_ptr<SymbolicFile>>
include/llvm/Object/TapiUniversal.h 58 Expected<std::unique_ptr<TapiFile>> getAsObjectFile() const;
83 static Expected<std::unique_ptr<TapiUniversal>>
102 std::unique_ptr<MachO::InterfaceFile> ParsedFile;
include/llvm/Object/WindowsResource.h 142 static Expected<std::unique_ptr<WindowsResource>>
171 using Children = std::map<T, std::unique_ptr<TreeNode>>;
190 static std::unique_ptr<TreeNode> createStringNode(uint32_t Index);
191 static std::unique_ptr<TreeNode> createIDNode();
193 static std::unique_ptr<TreeNode> createDataNode(uint16_t MajorVersion,
262 Expected<std::unique_ptr<MemoryBuffer>>
include/llvm/Object/XCOFFObjectFile.h 220 static Expected<std::unique_ptr<XCOFFObjectFile>> create(unsigned Type,
229 friend Expected<std::unique_ptr<ObjectFile>>
include/llvm/ObjectYAML/DWARFEmitter.h 40 Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
43 StringMap<std::unique_ptr<MemoryBuffer>>
include/llvm/ObjectYAML/ELFYAML.h 390 std::vector<std::unique_ptr<Section>> Sections;
574 static void mapping(IO &IO, std::unique_ptr<ELFYAML::Section> &Section);
575 static StringRef validate(IO &io, std::unique_ptr<ELFYAML::Section> &Section);
include/llvm/ObjectYAML/MinidumpYAML.h 49 static std::unique_ptr<Stream> create(minidump::StreamType Type);
52 static Expected<std::unique_ptr<Stream>>
209 std::vector<std::unique_ptr<Stream>> Streams)
216 std::vector<std::unique_ptr<Stream>> Streams;
238 static void mapping(IO &IO, std::unique_ptr<MinidumpYAML::Stream> &S);
239 static StringRef validate(IO &IO, std::unique_ptr<MinidumpYAML::Stream> &S);
include/llvm/ObjectYAML/ObjectYAML.h 26 std::unique_ptr<ELFYAML::Object> Elf;
27 std::unique_ptr<COFFYAML::Object> Coff;
28 std::unique_ptr<MachOYAML::Object> MachO;
29 std::unique_ptr<MachOYAML::UniversalBinary> FatMachO;
30 std::unique_ptr<MinidumpYAML::Object> Minidump;
31 std::unique_ptr<WasmYAML::Object> Wasm;
include/llvm/ObjectYAML/WasmYAML.h 394 std::vector<std::unique_ptr<Section>> Sections;
431 static void mapping(IO &IO, std::unique_ptr<WasmYAML::Section> &Section);
include/llvm/ObjectYAML/yaml2obj.h 60 std::unique_ptr<object::ObjectFile>
include/llvm/Option/Arg.h 64 std::unique_ptr<Arg> Alias;
101 void setAlias(std::unique_ptr<Arg> Alias) { this->Alias = std::move(Alias); }
include/llvm/Option/ArgList.h 439 mutable SmallVector<std::unique_ptr<Arg>, 16> SynthesizedArgs;
include/llvm/PassRegistry.h 48 std::vector<std::unique_ptr<const PassInfo>> ToFree;
include/llvm/ProfileData/Coverage/CoverageMapping.h 537 static Expected<std::unique_ptr<CoverageMapping>>
538 load(ArrayRef<std::unique_ptr<CoverageMappingReader>> CoverageReaders,
544 static Expected<std::unique_ptr<CoverageMapping>>
include/llvm/ProfileData/Coverage/CoverageMappingReader.h 206 static Expected<std::vector<std::unique_ptr<BinaryCoverageReader>>>
208 SmallVectorImpl<std::unique_ptr<MemoryBuffer>> &ObjectFileBuffers);
210 static Expected<std::unique_ptr<BinaryCoverageReader>>
include/llvm/ProfileData/GCOV.h 260 SmallVector<std::unique_ptr<GCOVFunction>, 16> Functions;
279 SmallVectorImpl<std::unique_ptr<GCOVBlock>>::const_iterator>;
308 SmallVector<std::unique_ptr<GCOVBlock>, 16> Blocks;
309 SmallVector<std::unique_ptr<GCOVEdge>, 16> Edges;
445 std::unique_ptr<raw_ostream> openCoveragePath(StringRef CoveragePath);
include/llvm/ProfileData/InstrProf.h 787 std::unique_ptr<ValueProfData> ValueData;
1077 inline std::unique_ptr<Summary> allocSummary(uint32_t TotalSize) {
include/llvm/ProfileData/InstrProfData.inc 367 static std::unique_ptr<ValueProfData>
378 static Expected<std::unique_ptr<ValueProfData>>
include/llvm/ProfileData/InstrProfReader.h 98 std::unique_ptr<InstrProfSymtab> Symtab;
129 static Expected<std::unique_ptr<InstrProfReader>> create(const Twine &Path);
131 static Expected<std::unique_ptr<InstrProfReader>>
132 create(std::unique_ptr<MemoryBuffer> Buffer);
146 std::unique_ptr<MemoryBuffer> DataBuffer;
155 TextInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer_)
190 std::unique_ptr<MemoryBuffer> DataBuffer;
210 RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
375 std::unique_ptr<HashTableImpl> HashTable;
429 std::unique_ptr<MemoryBuffer> DataBuffer;
431 std::unique_ptr<MemoryBuffer> RemappingBuffer;
433 std::unique_ptr<InstrProfReaderIndexBase> Index;
435 std::unique_ptr<InstrProfReaderRemapper> Remapper;
437 std::unique_ptr<ProfileSummary> Summary;
439 std::unique_ptr<ProfileSummary> CS_Summary;
451 std::unique_ptr<MemoryBuffer> DataBuffer,
452 std::unique_ptr<MemoryBuffer> RemappingBuffer = nullptr)
494 static Expected<std::unique_ptr<IndexedInstrProfReader>>
497 static Expected<std::unique_ptr<IndexedInstrProfReader>>
498 create(std::unique_ptr<MemoryBuffer> Buffer,
499 std::unique_ptr<MemoryBuffer> RemappingBuffer = nullptr);
include/llvm/ProfileData/InstrProfWriter.h 75 std::unique_ptr<MemoryBuffer> writeBuffer();
include/llvm/ProfileData/ProfileCommon.h 78 std::unique_ptr<ProfileSummary> getSummary();
88 std::unique_ptr<ProfileSummary> getSummary();
include/llvm/ProfileData/SampleProfReader.h 245 SampleProfileReaderItaniumRemapper(std::unique_ptr<MemoryBuffer> B,
246 std::unique_ptr<SymbolRemappingReader> SRR,
254 static ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
260 static ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
261 create(std::unique_ptr<MemoryBuffer> &B, SampleProfileReader &Reader,
284 std::unique_ptr<MemoryBuffer> Buffer;
285 std::unique_ptr<SymbolRemappingReader> Remappings;
323 SampleProfileReader(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
386 static ErrorOr<std::unique_ptr<SampleProfileReader>>
392 static ErrorOr<std::unique_ptr<SampleProfileReader>>
393 create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C,
404 virtual std::unique_ptr<ProfileSymbolList> getProfileSymbolList() {
425 std::unique_ptr<MemoryBuffer> Buffer;
428 std::unique_ptr<ProfileSummary> Summary;
431 static std::unique_ptr<ProfileSummary>
439 std::unique_ptr<SampleProfileReaderItaniumRemapper> Remapper;
447 SampleProfileReaderText(std::unique_ptr<MemoryBuffer> B, LLVMContext &C)
462 SampleProfileReaderBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
540 SampleProfileReaderRawBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
578 std::unique_ptr<ProfileSymbolList> ProfSymList;
587 SampleProfileReaderExtBinaryBase(std::unique_ptr<MemoryBuffer> B,
619 SampleProfileReaderExtBinary(std::unique_ptr<MemoryBuffer> B, LLVMContext &C,
626 virtual std::unique_ptr<ProfileSymbolList> getProfileSymbolList() override {
653 SampleProfileReaderCompactBinary(std::unique_ptr<MemoryBuffer> B,
684 SampleProfileReaderGCC(std::unique_ptr<MemoryBuffer> B, LLVMContext &C)
include/llvm/ProfileData/SampleProfWriter.h 51 static ErrorOr<std::unique_ptr<SampleProfileWriter>>
56 static ErrorOr<std::unique_ptr<SampleProfileWriter>>
57 create(std::unique_ptr<raw_ostream> &OS, SampleProfileFormat Format);
62 SampleProfileWriter(std::unique_ptr<raw_ostream> &OS)
74 std::unique_ptr<raw_ostream> OutputStream;
77 std::unique_ptr<ProfileSummary> Summary;
92 SampleProfileWriterText(std::unique_ptr<raw_ostream> &OS)
106 friend ErrorOr<std::unique_ptr<SampleProfileWriter>>
107 SampleProfileWriter::create(std::unique_ptr<raw_ostream> &OS,
114 SampleProfileWriterBinary(std::unique_ptr<raw_ostream> &OS)
135 friend ErrorOr<std::unique_ptr<SampleProfileWriter>>
136 SampleProfileWriter::create(std::unique_ptr<raw_ostream> &OS,
141 using SampleProfileWriterBinary::SampleProfileWriterBinary;
145 using SampleProfileWriterBinary::SampleProfileWriterBinary;
183 std::unique_ptr<raw_ostream> LocalBufStream;
195 SampleProfileWriterExtBinary(std::unique_ptr<raw_ostream> &OS)
268 using SampleProfileWriterBinary::SampleProfileWriterBinary;
include/llvm/Remarks/BitstreamRemarkSerializer.h 148 std::unique_ptr<MetaSerializer>
include/llvm/Remarks/RemarkParser.h 52 virtual Expected<std::unique_ptr<Remark>> next() = 0;
78 Expected<std::unique_ptr<RemarkParser>> createRemarkParser(Format ParserFormat,
81 Expected<std::unique_ptr<RemarkParser>>
85 Expected<std::unique_ptr<RemarkParser>>
include/llvm/Remarks/RemarkSerializer.h 58 virtual std::unique_ptr<MetaSerializer>
76 Expected<std::unique_ptr<RemarkSerializer>>
81 Expected<std::unique_ptr<RemarkSerializer>>
include/llvm/Remarks/YAMLRemarkSerializer.h 41 std::unique_ptr<MetaSerializer>
84 std::unique_ptr<MetaSerializer>
include/llvm/Support/BinaryByteStream.h 77 MemoryBufferByteStream(std::unique_ptr<MemoryBuffer> Buffer,
82 std::unique_ptr<MemoryBuffer> MemBuffer;
209 StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer,
231 std::unique_ptr<FileOutputBuffer> FileBuffer;
235 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer,
include/llvm/Support/BuryPointer.h 23 template <typename T> void BuryPointer(std::unique_ptr<T> Ptr) {
include/llvm/Support/Casting.h 82 struct isa_impl_cl<To, const std::unique_ptr<From>> {
83 static inline bool doit(const std::unique_ptr<From> &Val) {
184 struct cast_retty_impl<To, std::unique_ptr<From>> {
190 using ret_type = std::unique_ptr<ResultType>;
270 inline typename cast_retty<X, std::unique_ptr<Y>>::ret_type
271 cast(std::unique_ptr<Y> &&Val) {
273 using ret_type = typename cast_retty<X, std::unique_ptr<Y>>::ret_type;
313 inline typename cast_retty<X, std::unique_ptr<Y>>::ret_type
314 cast_or_null(std::unique_ptr<Y> &&Val) {
377 LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &Val)
385 LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &&Val)
393 LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &Val)
401 LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &&Val)
include/llvm/Support/Error.h 198 Error(std::unique_ptr<ErrorInfoBase> Payload) {
303 std::unique_ptr<ErrorInfoBase> takePayload() {
304 std::unique_ptr<ErrorInfoBase> Tmp(getPtr());
383 ErrorList(std::unique_ptr<ErrorInfoBase> Payload1,
384 std::unique_ptr<ErrorInfoBase> Payload2) {
417 std::vector<std::unique_ptr<ErrorInfoBase>> Payloads;
441 using error_type = std::unique_ptr<ErrorInfoBase>;
794 static Error apply(HandlerT &&H, std::unique_ptr<ErrorInfoBase> E) {
808 static Error apply(HandlerT &&H, std::unique_ptr<ErrorInfoBase> E) {
817 class ErrorHandlerTraits<Error (&)(std::unique_ptr<ErrT>)> {
824 static Error apply(HandlerT &&H, std::unique_ptr<ErrorInfoBase> E) {
826 std::unique_ptr<ErrT> SubE(static_cast<ErrT *>(E.release()));
833 class ErrorHandlerTraits<void (&)(std::unique_ptr<ErrT>)> {
840 static Error apply(HandlerT &&H, std::unique_ptr<ErrorInfoBase> E) {
842 std::unique_ptr<ErrT> SubE(static_cast<ErrT *>(E.release()));
872 : public ErrorHandlerTraits<RetT (&)(std::unique_ptr<ErrT>)> {};
878 : public ErrorHandlerTraits<RetT (&)(std::unique_ptr<ErrT>)> {};
880 inline Error handleErrorImpl(std::unique_ptr<ErrorInfoBase> Payload) {
885 Error handleErrorImpl(std::unique_ptr<ErrorInfoBase> Payload,
905 std::unique_ptr<ErrorInfoBase> Payload = E.takePayload();
1244 std::unique_ptr<ErrorInfoBase> E) {
1260 std::unique_ptr<ErrorInfoBase> Err;
include/llvm/Support/FileCheck.h 141 std::unique_ptr<FileCheckPatternContext> PatternContext;
143 std::unique_ptr<std::vector<FileCheckString>> CheckStrings;
include/llvm/Support/FileOutputBuffer.h 46 static Expected<std::unique_ptr<FileOutputBuffer>>
include/llvm/Support/GenericDomTree.h 87 std::unique_ptr<DomTreeNodeBase> addChild(
88 std::unique_ptr<DomTreeNodeBase> C) {
243 DenseMap<NodeT *, std::unique_ptr<DomTreeNodeBase<NodeT>>>;
include/llvm/Support/JSON.h 529 std::unique_ptr<std::string> Owned;
include/llvm/Support/MemoryBuffer.h 79 static ErrorOr<std::unique_ptr<MemoryBuffer>>
86 static ErrorOr<std::unique_ptr<MemoryBuffer>>
92 static ErrorOr<std::unique_ptr<MemoryBuffer>>
102 static ErrorOr<std::unique_ptr<MemoryBuffer>>
108 static std::unique_ptr<MemoryBuffer>
112 static std::unique_ptr<MemoryBuffer>
117 static std::unique_ptr<MemoryBuffer>
121 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
125 static ErrorOr<std::unique_ptr<MemoryBuffer>>
130 static ErrorOr<std::unique_ptr<MemoryBuffer>>
179 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
184 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
191 static std::unique_ptr<WritableMemoryBuffer>
197 static std::unique_ptr<WritableMemoryBuffer>
241 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
245 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
include/llvm/Support/Registry.h 29 std::unique_ptr<T> (*Ctor)();
32 SimpleRegistryEntry(StringRef N, StringRef D, std::unique_ptr<T> (*C)())
37 std::unique_ptr<T> instantiate() const { return Ctor(); }
118 static std::unique_ptr<T> CtorFn() { return std::make_unique<V>(); }
include/llvm/Support/SourceMgr.h 58 std::unique_ptr<MemoryBuffer> Buffer;
153 unsigned AddNewSourceBuffer(std::unique_ptr<MemoryBuffer> F,
include/llvm/Support/SpecialCaseList.h 70 static std::unique_ptr<SpecialCaseList>
74 static std::unique_ptr<SpecialCaseList> create(const MemoryBuffer *MB,
78 static std::unique_ptr<SpecialCaseList>
127 std::vector<std::pair<std::unique_ptr<Regex>, unsigned>> RegExes;
133 Section(std::unique_ptr<Matcher> M) : SectionMatcher(std::move(M)){};
135 std::unique_ptr<Matcher> SectionMatcher;
include/llvm/Support/TarWriter.h 20 static Expected<std::unique_ptr<TarWriter>> create(StringRef OutputPath,
include/llvm/Support/TargetRegistry.h 82 createAsmStreamer(MCContext &Ctx, std::unique_ptr<formatted_raw_ostream> OS,
84 MCInstPrinter *InstPrint, std::unique_ptr<MCCodeEmitter> &&CE,
85 std::unique_ptr<MCAsmBackend> &&TAB, bool ShowInst);
88 std::unique_ptr<MCAsmBackend> &&TAB,
89 std::unique_ptr<MCObjectWriter> &&OW,
90 std::unique_ptr<MCCodeEmitter> &&CE,
93 std::unique_ptr<MCAsmBackend> &&TAB,
94 std::unique_ptr<MCObjectWriter> &&OW,
95 std::unique_ptr<MCCodeEmitter> &&CE,
99 std::unique_ptr<MCAsmBackend> &&TAB,
100 std::unique_ptr<MCObjectWriter> &&OW,
101 std::unique_ptr<MCCodeEmitter> &&CE,
104 std::unique_ptr<MCAsmBackend> &&TAB,
105 std::unique_ptr<MCObjectWriter> &&OW,
106 std::unique_ptr<MCCodeEmitter> &&CE,
114 std::unique_ptr<MCRelocationInfo> &&RelInfo);
147 TargetMachine &TM, std::unique_ptr<MCStreamer> &&Streamer);
168 std::unique_ptr<MCAsmBackend> &&TAB,
169 std::unique_ptr<MCObjectWriter> &&OW,
170 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll);
172 MCStreamer *(*)(MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB,
173 std::unique_ptr<MCObjectWriter> &&OW,
174 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll,
177 MCStreamer *(*)(MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB,
178 std::unique_ptr<MCObjectWriter> &&OW,
179 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll,
183 std::unique_ptr<MCAsmBackend> &&TAB,
184 std::unique_ptr<MCObjectWriter> &&OW,
185 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll);
197 std::unique_ptr<MCRelocationInfo> &&RelInfo);
431 std::unique_ptr<MCStreamer> &&Streamer) const {
471 std::unique_ptr<MCAsmBackend> &&TAB,
472 std::unique_ptr<MCObjectWriter> &&OW,
473 std::unique_ptr<MCCodeEmitter> &&Emitter,
524 std::unique_ptr<formatted_raw_ostream> OS,
527 std::unique_ptr<MCCodeEmitter> &&CE,
528 std::unique_ptr<MCAsmBackend> &&TAB,
586 std::unique_ptr<MCRelocationInfo> &&RelInfo) const {
1181 std::unique_ptr<MCStreamer> &&Streamer) {
include/llvm/Support/VirtualFileSystem.h 117 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
252 virtual llvm::ErrorOr<std::unique_ptr<File>>
257 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
309 std::unique_ptr<FileSystem> createPhysicalFileSystem();
335 llvm::ErrorOr<std::unique_ptr<File>>
377 llvm::ErrorOr<std::unique_ptr<File>>
416 std::unique_ptr<detail::InMemoryDirectory> Root;
423 std::unique_ptr<llvm::MemoryBuffer> Buffer,
440 std::unique_ptr<llvm::MemoryBuffer> Buffer,
477 llvm::ErrorOr<std::unique_ptr<File>>
502 getVFSFromYAML(std::unique_ptr<llvm::MemoryBuffer> Buffer,
591 std::vector<std::unique_ptr<Entry>> Contents;
596 std::vector<std::unique_ptr<Entry>> Contents,
605 void addContent(std::unique_ptr<Entry> Content) {
655 std::vector<std::unique_ptr<Entry>> Roots;
720 create(std::unique_ptr<MemoryBuffer> Buffer,
725 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override;
753 std::unique_ptr<llvm::MemoryBuffer> Buffer,
include/llvm/Support/YAMLParser.h 108 std::unique_ptr<Scanner> scanner;
109 std::unique_ptr<Document> CurrentDoc;
127 Node(unsigned int Type, std::unique_ptr<Document> &, StringRef Anchor,
175 std::unique_ptr<Document> &Doc;
195 NullNode(std::unique_ptr<Document> &D)
210 ScalarNode(std::unique_ptr<Document> &D, StringRef Anchor, StringRef Tag,
253 BlockScalarNode(std::unique_ptr<Document> &D, StringRef Anchor, StringRef Tag,
283 KeyValueNode(std::unique_ptr<Document> &D)
414 MappingNode(std::unique_ptr<Document> &D, StringRef Anchor, StringRef Tag,
469 SequenceNode(std::unique_ptr<Document> &D, StringRef Anchor, StringRef Tag,
508 AliasNode(std::unique_ptr<Document> &D, StringRef Val)
582 document_iterator(std::unique_ptr<Document> &D) : Doc(&D) {}
607 std::unique_ptr<Document> &operator->() { return *Doc; }
612 std::unique_ptr<Document> *Doc = nullptr;
include/llvm/Support/YAMLTraits.h 1491 using NameToNode = StringMap<std::unique_ptr<HNode>>;
1509 std::vector<std::unique_ptr<HNode>> Entries;
1512 std::unique_ptr<Input::HNode> createHNodes(Node *node);
1527 std::unique_ptr<llvm::yaml::Stream> Strm;
1528 std::unique_ptr<HNode> TopNode;
include/llvm/TableGen/Record.h 1697 using RecordMap = std::map<std::string, std::unique_ptr<Record>, std::less<>>;
1724 void addClass(std::unique_ptr<Record> R) {
1731 void addDef(std::unique_ptr<Record> R) {
include/llvm/TableGen/SetTheory.h 101 StringMap<std::unique_ptr<Operator>> Operators;
104 StringMap<std::unique_ptr<Expander>> Expanders;
111 void addExpander(StringRef ClassName, std::unique_ptr<Expander>);
124 void addOperator(StringRef Name, std::unique_ptr<Operator>);
include/llvm/Target/TargetMachine.h 93 std::unique_ptr<const MCAsmInfo> AsmInfo;
94 std::unique_ptr<const MCRegisterInfo> MRI;
95 std::unique_ptr<const MCInstrInfo> MII;
96 std::unique_ptr<const MCSubtargetInfo> STI;
include/llvm/TextAPI/ELF/TBEHandler.h 36 Expected<std::unique_ptr<ELFStub>> readTBEFromBuffer(StringRef Buf);
include/llvm/TextAPI/MachO/TextAPIReader.h 22 static Expected<std::unique_ptr<InterfaceFile>>
include/llvm/Transforms/IPO/FunctionImport.h 93 std::unique_ptr<ImportFailureInfo>>>;
105 std::function<Expected<std::unique_ptr<Module>>(StringRef Identifier)>;
include/llvm/Transforms/IPO/Inliner.h 108 std::unique_ptr<ImportedFunctionsInliningStatistics> ImportedFunctionsStats;
include/llvm/Transforms/Scalar/JumpThreading.h 82 std::unique_ptr<BlockFrequencyInfo> BFI;
83 std::unique_ptr<BranchProbabilityInfo> BPI;
100 std::unique_ptr<BlockFrequencyInfo> BFI_,
101 std::unique_ptr<BranchProbabilityInfo> BPI_);
include/llvm/Transforms/Scalar/SCCP.h 43 std::unique_ptr<PredicateInfo> PredInfo;
include/llvm/Transforms/Utils/Cloning.h 52 std::unique_ptr<Module> CloneModule(const Module &M);
53 std::unique_ptr<Module> CloneModule(const Module &M, ValueToValueMapTy &VMap);
59 std::unique_ptr<Module>
include/llvm/Transforms/Utils/Evaluator.h 116 SmallVector<std::unique_ptr<GlobalVariable>, 32> AllocaTmps;
include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h 84 llvm::StringMap<std::unique_ptr<InlineGraphNode>>;
include/llvm/Transforms/Utils/SplitModule.h 36 std::unique_ptr<Module> M, unsigned N,
37 function_ref<void(std::unique_ptr<Module> MPart)> ModuleCallback,
include/llvm/Transforms/Utils/SymbolRewriter.h 92 using RewriteDescriptorList = std::list<std::unique_ptr<RewriteDescriptor>>;
99 bool parse(std::unique_ptr<MemoryBuffer> &MapFile, RewriteDescriptorList *DL);
include/llvm/WindowsManifest/WindowsManifestMerger.h 56 std::unique_ptr<MemoryBuffer> getMergedManifest();
60 std::unique_ptr<WindowsManifestMergerImpl> Impl;
include/llvm/XRay/FDRLogBuilder.h 26 std::vector<std::unique_ptr<Record>> Records;
34 std::vector<std::unique_ptr<Record>> consume() { return std::move(Records); }
include/llvm/XRay/FDRRecordConsumer.h 22 virtual Error consume(std::unique_ptr<Record> R) = 0;
29 std::vector<std::unique_ptr<Record>> &Records;
32 explicit LogBuilderConsumer(std::vector<std::unique_ptr<Record>> &R)
35 Error consume(std::unique_ptr<Record> R) override;
48 Error consume(std::unique_ptr<Record> R) override;
include/llvm/XRay/FDRRecordProducer.h 23 virtual Expected<std::unique_ptr<Record>> produce() = 0;
35 Expected<std::unique_ptr<Record>> findNextBufferExtent();
44 Expected<std::unique_ptr<Record>> produce() override;
lib/Analysis/AliasAnalysisEvaluator.cpp 396 std::unique_ptr<AAEvaluator> P;
lib/Analysis/DependenceAnalysis.cpp 3404 std::unique_ptr<Dependence>
lib/Analysis/LazyValueInfo.cpp 175 DenseMap<Value *, std::unique_ptr<ValueCacheEntryTy>> ValueCache;
lib/Analysis/LoopCacheAnalysis.cpp 208 std::unique_ptr<Dependence> D =
469 std::unique_ptr<CacheCost>
523 std::unique_ptr<IndexedReference> R(new IndexedReference(I, LI, SE));
lib/Analysis/MemorySSA.cpp 1840 std::unique_ptr<DefsList> &Defs = DefsIt->second;
1849 std::unique_ptr<AccessList> &Accesses = AccessIt->second;
lib/Analysis/MemorySSAUpdater.cpp 770 ArrayRef<std::unique_ptr<ValueToValueMapTy>> VMaps, DominatorTree &DT) {
775 mapped_iterator<const std::unique_ptr<ValueToValueMapTy> *,
lib/Analysis/ModuleSummaryAnalysis.cpp 698 std::unique_ptr<FunctionSummary> Summary =
716 std::unique_ptr<GlobalVarSummary> Summary =
738 std::unique_ptr<BlockFrequencyInfo> BFIPtr;
lib/Analysis/ScalarEvolution.cpp 7041 std::unique_ptr<SCEVUnionPredicate> Predicate(new SCEVUnionPredicate);
lib/Analysis/SyncDependenceAnalysis.cpp 137 std::unique_ptr<ConstBlockSet> JoinBlocks;
219 std::unique_ptr<ConstBlockSet>
lib/Analysis/TargetLibraryInfo.cpp 1600 std::unique_ptr<TargetLibraryInfoImpl> &Impl =
lib/AsmParser/LLParser.cpp 954 std::unique_ptr<GlobalIndirectSymbol> GA;
6713 std::unique_ptr<LandingPadInst> LP(LandingPadInst::Create(Ty, 0));
7916 unsigned ID, std::unique_ptr<GlobalValueSummary> Summary) {
lib/AsmParser/LLParser.h 387 std::unique_ptr<GlobalValueSummary> Summary);
lib/AsmParser/Parser.cpp 30 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F);
40 std::unique_ptr<Module>
44 std::unique_ptr<Module> M =
54 std::unique_ptr<Module>
58 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
73 std::unique_ptr<Module> M =
75 std::unique_ptr<ModuleSummaryIndex> Index =
88 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
101 std::unique_ptr<Module>
114 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F);
123 std::unique_ptr<ModuleSummaryIndex>
125 std::unique_ptr<ModuleSummaryIndex> Index =
134 std::unique_ptr<ModuleSummaryIndex>
136 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
150 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
167 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
179 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
lib/BinaryFormat/Magic.cpp 229 std::unique_ptr<MemoryBuffer> FileBuffer = std::move(*FileOrError);
lib/Bitcode/Reader/BitReader.cpp 42 Expected<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx);
64 ErrorOr<std::unique_ptr<Module>> ModuleOrErr =
82 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf));
83 Expected<std::unique_ptr<Module>> ModuleOrErr =
109 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf));
111 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = expectedToErrorOrAndEmitErrors(
lib/Bitcode/Reader/BitcodeReader.cpp 6442 Expected<std::unique_ptr<Module>>
6464 std::unique_ptr<Module> M =
6485 Expected<std::unique_ptr<Module>>
6507 Expected<std::unique_ptr<ModuleSummaryIndex>> BitcodeModule::getSummary() {
6633 Expected<std::unique_ptr<Module>>
6643 Expected<std::unique_ptr<Module>> llvm::getOwningLazyBitcodeModule(
6644 std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context,
6653 Expected<std::unique_ptr<Module>>
6660 Expected<std::unique_ptr<Module>> llvm::parseBitcodeFile(MemoryBufferRef Buffer,
6703 Expected<std::unique_ptr<ModuleSummaryIndex>>
6720 Expected<std::unique_ptr<ModuleSummaryIndex>>
6723 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
lib/Bitcode/Reader/MetadataLoader.h 37 std::unique_ptr<MetadataLoaderImpl> Pimpl;
lib/CodeGen/AsmPrinter/AccelTable.cpp 553 const DwarfDebug &DD, ArrayRef<std::unique_ptr<DwarfCompileUnit>> CUs) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 151 using gcp_map_type = DenseMap<GCStrategy *, std::unique_ptr<GCMetadataPrinter>>;
185 AsmPrinter::AsmPrinter(TargetMachine &tm, std::unique_ptr<MCStreamer> Streamer)
298 std::unique_ptr<MCSubtargetInfo> STI(TM.getTarget().createMCSubtargetInfo(
1370 std::unique_ptr<remarks::MetaSerializer> MetaSerializer =
3068 std::unique_ptr<GCMetadataPrinter> GMP = I->instantiate();
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp 90 std::unique_ptr<MemoryBuffer> Buffer;
138 std::unique_ptr<MCAsmParser> Parser(createMCAsmParser(
148 std::unique_ptr<MCInstrInfo> MII(TM.getTarget().createMCInstrInfo());
149 std::unique_ptr<MCTargetAsmParser> TAP(TM.getTarget().createMCAsmParser(
lib/CodeGen/AsmPrinter/CodeViewDebug.h 198 DenseMap<const DIScope*, std::unique_ptr<GlobalVariableList> > ScopeGlobals;
236 MapVector<const Function *, std::unique_ptr<FunctionInfo>> FnDebugInfo;
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp 181 std::unique_ptr<DIEDwarfExpression> DwarfExpr;
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h 80 DenseMap<const DINode *, std::unique_ptr<DbgEntity>> AbstractEntities;
97 DenseMap<const DINode *, std::unique_ptr<DbgEntity>> &getAbstractEntities() {
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 1742 ArrayRef<std::unique_ptr<DwarfCompileUnit>> DCUs) {
2782 std::unique_ptr<DwarfCompileUnit> NewU) {
lib/CodeGen/AsmPrinter/DwarfDebug.h 122 std::unique_ptr<DbgValueLoc> ValueLoc = nullptr;
309 SmallVector<std::unique_ptr<DbgEntity>, 64> ConcreteEntities;
344 std::pair<std::unique_ptr<DwarfTypeUnit>, const DICompositeType *>, 1>
418 const SmallVectorImpl<std::unique_ptr<DwarfCompileUnit>> &getUnits() {
518 std::unique_ptr<DwarfCompileUnit> NewU);
lib/CodeGen/AsmPrinter/DwarfExpression.h 353 std::unique_ptr<TempBuffer> TmpBuf;
lib/CodeGen/AsmPrinter/DwarfFile.cpp 26 void DwarfFile::addUnit(std::unique_ptr<DwarfCompileUnit> U) {
lib/CodeGen/AsmPrinter/DwarfFile.h 67 SmallVector<std::unique_ptr<DwarfCompileUnit>, 1> CUs;
99 DenseMap<const DINode *, std::unique_ptr<DbgEntity>> AbstractEntities;
109 const SmallVectorImpl<std::unique_ptr<DwarfCompileUnit>> &getUnits() {
132 void addUnit(std::unique_ptr<DwarfCompileUnit> U);
177 DenseMap<const DINode *, std::unique_ptr<DbgEntity>> &getAbstractEntities() {
lib/CodeGen/BranchRelaxation.cpp 83 std::unique_ptr<RegScavenger> RS;
lib/CodeGen/CodeGenPrepare.cpp 252 std::unique_ptr<BlockFrequencyInfo> BFI;
253 std::unique_ptr<BranchProbabilityInfo> BPI;
304 std::unique_ptr<DominatorTree> DT;
2659 SmallVector<std::unique_ptr<TypePromotionAction>, 16> Actions;
2661 using CommitPt = SmallVectorImpl<std::unique_ptr<TypePromotionAction>>::iterator;
2694 std::unique_ptr<TruncBuilder> Ptr(new TruncBuilder(Opnd, Ty));
2702 std::unique_ptr<SExtBuilder> Ptr(new SExtBuilder(Inst, Opnd, Ty));
2710 std::unique_ptr<ZExtBuilder> Ptr(new ZExtBuilder(Inst, Opnd, Ty));
2738 std::unique_ptr<TypePromotionAction> Curr = Actions.pop_back_val();
lib/CodeGen/DFAPacketizer.cpp 155 std::vector<std::unique_ptr<ScheduleDAGMutation>> Mutations;
165 void addMutation(std::unique_ptr<ScheduleDAGMutation> Mutation) {
362 std::unique_ptr<ScheduleDAGMutation> Mutation) {
lib/CodeGen/GCMetadata.cpp 154 std::unique_ptr<GCStrategy> S = Entry.instantiate();
lib/CodeGen/GlobalISel/CSEInfo.cpp 65 std::unique_ptr<CSEConfigBase>
67 std::unique_ptr<CSEConfigBase> Config;
364 GISelCSEAnalysisWrapper::get(std::unique_ptr<CSEConfigBase> CSEOpt,
lib/CodeGen/GlobalISel/Legalizer.cpp 180 std::unique_ptr<MachineIRBuilder> MIRBuilder;
lib/CodeGen/GlobalISel/RegBankSelect.cpp 221 for (const std::unique_ptr<InsertPoint> &InsertPt : RepairPt) {
543 for (const std::unique_ptr<InsertPoint> &InsertPt : RepairPt) {
lib/CodeGen/IfConversion.cpp 253 std::vector<std::unique_ptr<IfcvtToken>> &Tokens);
258 std::vector<std::unique_ptr<IfcvtToken>> &Tokens);
403 static bool IfcvtTokenCmp(const std::unique_ptr<IfcvtToken> &C1,
404 const std::unique_ptr<IfcvtToken> &C2) {
476 std::vector<std::unique_ptr<IfcvtToken>> Tokens;
486 std::unique_ptr<IfcvtToken> Token = std::move(Tokens.back());
1205 MachineBasicBlock &MBB, std::vector<std::unique_ptr<IfcvtToken>> &Tokens) {
1426 MachineFunction &MF, std::vector<std::unique_ptr<IfcvtToken>> &Tokens) {
lib/CodeGen/InlineSpiller.cpp 104 DenseMap<int, std::unique_ptr<LiveInterval>> StackSlotToOrigLI;
lib/CodeGen/LLVMTargetMachine.cpp 129 std::unique_ptr<MCStreamer> AsmStreamer;
137 std::unique_ptr<MCCodeEmitter> MCE;
141 std::unique_ptr<MCAsmBackend> MAB(
254 std::unique_ptr<MCStreamer> AsmStreamer(getTarget().createMCObjectStreamer(
lib/CodeGen/LiveDebugVariables.cpp 399 SmallVector<std::unique_ptr<UserValue>, 8> userValues;
402 SmallVector<std::unique_ptr<UserLabel>, 2> userLabels;
lib/CodeGen/MIRParser/MIRParser.cpp 58 std::unique_ptr<PerTargetMIParsingState> Target;
68 MIRParserImpl(std::unique_ptr<MemoryBuffer> Contents,
93 std::unique_ptr<Module> parseIRModule();
165 MIRParserImpl::MIRParserImpl(std::unique_ptr<MemoryBuffer> Contents,
213 std::unique_ptr<Module> MIRParserImpl::parseIRModule() {
222 std::unique_ptr<Module> M;
915 MIRParser::MIRParser(std::unique_ptr<MIRParserImpl> Impl)
920 std::unique_ptr<Module> MIRParser::parseIRModule() {
928 std::unique_ptr<MIRParser> llvm::createMIRParserFromFile(StringRef Filename,
940 std::unique_ptr<MIRParser>
941 llvm::createMIRParser(std::unique_ptr<MemoryBuffer> Contents,
lib/CodeGen/MachineBlockPlacement.cpp 346 std::unique_ptr<BranchFolder::MBFIWrapper> MBFI;
lib/CodeGen/MachineInstr.cpp 1724 std::unique_ptr<LLVMContext> CtxPtr;
lib/CodeGen/MachineScheduler.cpp 389 std::unique_ptr<ScheduleDAGInstrs> Scheduler(createMachineScheduler());
421 std::unique_ptr<ScheduleDAGInstrs> Scheduler(createPostMachineScheduler());
1540 std::unique_ptr<ScheduleDAGMutation>
1547 std::unique_ptr<ScheduleDAGMutation>
1659 std::unique_ptr<ScheduleDAGMutation>
lib/CodeGen/MacroFusion.cpp 175 std::unique_ptr<ScheduleDAGMutation>
183 std::unique_ptr<ScheduleDAGMutation>
lib/CodeGen/ModuloSchedule.cpp 1762 std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo> Info =
lib/CodeGen/ParallelCG.cpp 28 function_ref<std::unique_ptr<TargetMachine>()> TMFactory,
30 std::unique_ptr<TargetMachine> TM = TMFactory();
37 std::unique_ptr<Module> llvm::splitCodeGen(
38 std::unique_ptr<Module> M, ArrayRef<llvm::raw_pwrite_stream *> OSs,
40 const std::function<std::unique_ptr<TargetMachine>()> &TMFactory,
80 Expected<std::unique_ptr<Module>> MOrErr = parseBitcodeFile(
86 std::unique_ptr<Module> MPartInCtx = std::move(MOrErr.get());
lib/CodeGen/PeepholeOptimizer.cpp 1178 std::unique_ptr<Rewriter> CpyRewriter(getCopyRewriter(MI, *TII));
lib/CodeGen/PostRAHazardRecognizer.cpp 70 std::unique_ptr<ScheduleHazardRecognizer> HazardRec(
lib/CodeGen/PostRASchedulerList.cpp 137 std::vector<std::unique_ptr<ScheduleDAGMutation>> Mutations;
lib/CodeGen/PseudoSourceValue.cpp 130 std::unique_ptr<FixedStackPseudoSourceValue> &V = FSValues[FI];
138 std::unique_ptr<const GlobalValuePseudoSourceValue> &E =
147 std::unique_ptr<const ExternalSymbolPseudoSourceValue> &E =
lib/CodeGen/RegAllocBasic.cpp 67 std::unique_ptr<Spiller> SpillerInstance;
lib/CodeGen/RegAllocGreedy.cpp 178 std::unique_ptr<Spiller> SpillerInstance;
345 std::unique_ptr<SplitAnalysis> SA;
346 std::unique_ptr<SplitEditor> SE;
lib/CodeGen/RegAllocPBQP.cpp 799 std::unique_ptr<Spiller> VRegSpiller(createInlineSpiller(*this, MF, VRM));
826 std::unique_ptr<PBQPRAConstraintList> ConstraintsRoot =
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h 398 std::unique_ptr<SDAGSwitchLowering> SL;
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 3042 std::unique_ptr<MatchStateUpdater> MSU;
lib/CodeGen/ShrinkWrap.cpp 484 std::unique_ptr<RegScavenger> RS(
lib/CodeGen/StackColoring.cpp 413 SmallVector<std::unique_ptr<LiveInterval>, 16> Intervals;
1184 std::unique_ptr<LiveInterval> LI(new LiveInterval(i, 0));
lib/CodeGen/TargetPassConfig.cpp 1237 std::unique_ptr<CSEConfigBase> TargetPassConfig::getCSEConfig() const {
lib/DebugInfo/DWARF/DWARFContext.cpp 68 DWARFContext::DWARFContext(std::unique_ptr<const DWARFObject> DObj,
795 static T &getAccelTable(std::unique_ptr<T> &Cache, const DWARFObject &Obj,
1486 DWARFObjInMemory(const StringMap<std::unique_ptr<MemoryBuffer>> &Sections,
1815 std::unique_ptr<DWARFContext>
1823 std::unique_ptr<DWARFContext>
1824 DWARFContext::create(const StringMap<std::unique_ptr<MemoryBuffer>> &Sections,
lib/DebugInfo/DWARF/DWARFUnit.cpp 84 std::unique_ptr<DWARFUnit> U;
120 DWARFUnit *DWARFUnitVector::addUnit(std::unique_ptr<DWARFUnit> Unit) {
lib/DebugInfo/DWARF/DWARFVerifier.cpp 1451 for (const std::unique_ptr<DWARFUnit> &U : DCtx.compile_units()) {
lib/DebugInfo/GSYM/GsymReader.cpp 27 GsymReader::GsymReader(std::unique_ptr<MemoryBuffer> Buffer) :
37 ErrorOr<std::unique_ptr<MemoryBuffer>> BuffOrErr =
51 GsymReader::create(std::unique_ptr<MemoryBuffer> &MemBuffer) {
lib/DebugInfo/MSF/MappedBlockStream.cpp 52 std::unique_ptr<MappedBlockStream> MappedBlockStream::createStream(
59 std::unique_ptr<MappedBlockStream> MappedBlockStream::createIndexedStream(
70 std::unique_ptr<MappedBlockStream>
80 std::unique_ptr<MappedBlockStream>
316 std::unique_ptr<WritableMappedBlockStream>
325 std::unique_ptr<WritableMappedBlockStream>
337 std::unique_ptr<WritableMappedBlockStream>
347 std::unique_ptr<WritableMappedBlockStream>
lib/DebugInfo/PDB/Native/DbiStream.cpp 47 DbiStream::DbiStream(std::unique_ptr<BinaryStream> Stream)
259 Expected<std::unique_ptr<msf::MappedBlockStream>> ExpectedStream =
285 Expected<std::unique_ptr<msf::MappedBlockStream>> ExpectedStream =
309 Expected<std::unique_ptr<msf::MappedBlockStream>> ExpectedStream =
325 Expected<std::unique_ptr<msf::MappedBlockStream>>
lib/DebugInfo/PDB/Native/GlobalsStream.cpp 35 GlobalsStream::GlobalsStream(std::unique_ptr<MappedBlockStream> Stream)
lib/DebugInfo/PDB/Native/InfoStream.cpp 22 InfoStream::InfoStream(std::unique_ptr<BinaryStream> Stream)
lib/DebugInfo/PDB/Native/InjectedSourceStream.cpp 25 std::unique_ptr<MappedBlockStream> Stream)
lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp 32 std::unique_ptr<MappedBlockStream> Stream)
lib/DebugInfo/PDB/Native/NativeEnumGlobals.cpp 40 std::unique_ptr<PDBSymbol>
50 std::unique_ptr<PDBSymbol> NativeEnumGlobals::getNext() {
lib/DebugInfo/PDB/Native/NativeEnumInjectedSources.cpp 104 std::unique_ptr<IPDBInjectedSource>
112 std::unique_ptr<IPDBInjectedSource> NativeEnumInjectedSources::getNext() {
lib/DebugInfo/PDB/Native/NativeEnumModules.cpp 29 std::unique_ptr<PDBSymbol>
34 std::unique_ptr<PDBSymbol> NativeEnumModules::getNext() {
lib/DebugInfo/PDB/Native/NativeEnumTypes.cpp 58 std::unique_ptr<PDBSymbol> NativeEnumTypes::getChildAtIndex(uint32_t N) const {
66 std::unique_ptr<PDBSymbol> NativeEnumTypes::getNext() {
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp 36 std::unique_ptr<IPDBEnumSymbols>
lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp 31 std::unique_ptr<IPDBEnumSymbols>
36 std::unique_ptr<IPDBEnumSymbols>
42 std::unique_ptr<IPDBEnumSymbols>
48 std::unique_ptr<IPDBEnumSymbols>
54 std::unique_ptr<IPDBEnumSymbols>
60 std::unique_ptr<IPDBEnumSymbols>
66 std::unique_ptr<IPDBEnumSymbols>
71 std::unique_ptr<IPDBEnumSymbols>
76 std::unique_ptr<IPDBEnumLineNumbers>
81 std::unique_ptr<IPDBEnumLineNumbers>
87 std::unique_ptr<IPDBEnumLineNumbers>
92 std::unique_ptr<IPDBEnumLineNumbers>
279 std::unique_ptr<IPDBLineNumber>
355 std::unique_ptr<PDBSymbolTypeBuiltin>
lib/DebugInfo/PDB/Native/NativeSession.cpp 52 NativeSession::NativeSession(std::unique_ptr<PDBFile> PdbFile,
53 std::unique_ptr<BumpPtrAllocator> Allocator)
59 Error NativeSession::createFromPdb(std::unique_ptr<MemoryBuffer> Buffer,
60 std::unique_ptr<IPDBSession> &Session) {
79 std::unique_ptr<IPDBSession> &Session) {
87 std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() {
91 std::unique_ptr<PDBSymbol>
106 std::unique_ptr<PDBSymbol>
111 std::unique_ptr<PDBSymbol>
116 std::unique_ptr<PDBSymbol>
122 std::unique_ptr<IPDBEnumLineNumbers>
128 std::unique_ptr<IPDBEnumLineNumbers>
134 std::unique_ptr<IPDBEnumLineNumbers>
139 std::unique_ptr<IPDBEnumLineNumbers>
145 std::unique_ptr<IPDBEnumSourceFiles>
152 std::unique_ptr<IPDBSourceFile>
159 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
165 std::unique_ptr<PDBSymbolCompiland>
171 std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getAllSourceFiles() const {
175 std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getSourceFilesForCompiland(
180 std::unique_ptr<IPDBSourceFile>
185 std::unique_ptr<IPDBEnumDataStreams> NativeSession::getDebugStreams() const {
189 std::unique_ptr<IPDBEnumTables> NativeSession::getEnumTables() const {
193 std::unique_ptr<IPDBEnumInjectedSources>
208 std::unique_ptr<IPDBEnumSectionContribs>
213 std::unique_ptr<IPDBEnumFrameData>
lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp 45 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
46 std::unique_ptr<PDBSymbol> getNext() override;
94 std::unique_ptr<PDBSymbol>
106 std::unique_ptr<PDBSymbol> NativeEnumEnumEnumerators::getNext() {
163 std::unique_ptr<IPDBEnumSymbols>
lib/DebugInfo/PDB/Native/NativeTypeFunctionSig.cpp 29 std::unique_ptr<PDBSymbol> RealType)
43 std::unique_ptr<PDBSymbol> RealType;
49 std::unique_ptr<NativeEnumTypes> TypeEnumerator)
55 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override {
58 std::unique_ptr<PDBSymbol> getNext() override {
65 std::unique_ptr<PDBSymbol> wrap(std::unique_ptr<PDBSymbol> S) const {
65 std::unique_ptr<PDBSymbol> wrap(std::unique_ptr<PDBSymbol> S) const {
72 std::unique_ptr<NativeEnumTypes> TypeEnumerator;
133 std::unique_ptr<IPDBEnumSymbols>
lib/DebugInfo/PDB/Native/PDBFile.cpp 42 PDBFile::PDBFile(StringRef Path, std::unique_ptr<BinaryStream> PdbFileBuffer,
237 std::unique_ptr<MappedBlockStream>
487 Expected<std::unique_ptr<MappedBlockStream>>
495 Expected<std::unique_ptr<MappedBlockStream>>
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp 103 std::unique_ptr<MemoryBuffer> Buffer) {
lib/DebugInfo/PDB/Native/PublicsStream.cpp 40 PublicsStream::PublicsStream(std::unique_ptr<MappedBlockStream> Stream)
lib/DebugInfo/PDB/Native/SymbolCache.cpp 73 std::unique_ptr<IPDBEnumSymbols>
78 std::unique_ptr<IPDBEnumSymbols>
90 std::unique_ptr<IPDBEnumSymbols>
230 std::unique_ptr<PDBSymbol>
284 std::unique_ptr<PDBSymbolCompiland>
lib/DebugInfo/PDB/Native/SymbolStream.cpp 22 SymbolStream::SymbolStream(std::unique_ptr<MappedBlockStream> Stream)
lib/DebugInfo/PDB/Native/TpiStream.cpp 36 TpiStream::TpiStream(PDBFile &File, std::unique_ptr<MappedBlockStream> Stream)
lib/DebugInfo/PDB/PDB.cpp 24 std::unique_ptr<IPDBSession> &Session) {
27 ErrorOr<std::unique_ptr<MemoryBuffer>> ErrorOrBuffer =
44 std::unique_ptr<IPDBSession> &Session) {
lib/DebugInfo/PDB/PDBContext.cpp 24 std::unique_ptr<IPDBSession> PDBSession)
39 std::unique_ptr<PDBSymbol> Symbol =
104 std::unique_ptr<PDBSymbol> FuncSymbol =
lib/DebugInfo/PDB/PDBSymbol.cpp 63 std::unique_ptr<PDBSymbol>
101 std::unique_ptr<PDBSymbol>
103 std::unique_ptr<IPDBRawSymbol> RawSymbol) {
110 std::unique_ptr<PDBSymbol> PDBSymbol::create(const IPDBSession &PDBSession,
142 std::unique_ptr<IPDBEnumSymbols> PDBSymbol::findAllChildren() const {
146 std::unique_ptr<IPDBEnumSymbols>
151 std::unique_ptr<IPDBEnumSymbols>
157 std::unique_ptr<IPDBEnumSymbols>
163 std::unique_ptr<IPDBEnumSymbols>
168 std::unique_ptr<IPDBEnumSymbols>
170 std::unique_ptr<IPDBEnumSymbols> Result(findAllChildren());
181 std::unique_ptr<PDBSymbol> PDBSymbol::getSymbolByIdHelper(uint32_t Id) const {
lib/DebugInfo/PDB/PDBSymbolData.cpp 21 std::unique_ptr<IPDBEnumLineNumbers> PDBSymbolData::getLineNumbers() const {
lib/DebugInfo/PDB/PDBSymbolFunc.cpp 52 std::unique_ptr<PDBSymbolData>
61 std::unique_ptr<PDBSymbolData> getNext() override {
72 typedef std::vector<std::unique_ptr<PDBSymbolData>> ArgListType;
80 std::unique_ptr<IPDBEnumChildren<PDBSymbolData>>
98 std::unique_ptr<IPDBEnumLineNumbers> PDBSymbolFunc::getLineNumbers() const {
lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp 35 std::unique_ptr<ArgEnumeratorType> ArgEnumerator)
42 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override {
49 std::unique_ptr<PDBSymbol> getNext() override {
60 std::unique_ptr<ArgEnumeratorType> Enumerator;
64 std::unique_ptr<IPDBEnumSymbols>
lib/DebugInfo/PDB/UDTLayout.cpp 33 static std::unique_ptr<PDBSymbol> getSymbolType(const PDBSymbol &Symbol) {
68 const UDTLayoutBase &Parent, std::unique_ptr<PDBSymbolData> Member)
80 std::unique_ptr<PDBSymbolTypeBuiltin> Sym,
97 std::unique_ptr<PDBSymbolTypeVTable> VT)
142 ClassLayout::ClassLayout(std::unique_ptr<PDBSymbolTypeUDT> UDT)
153 std::unique_ptr<PDBSymbolTypeBaseClass> B)
277 void UDTLayoutBase::addChildToLayout(std::unique_ptr<LayoutItemBase> Child) {
lib/DebugInfo/Symbolize/DIPrinter.cpp 38 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
43 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp 44 ErrorOr<std::unique_ptr<SymbolizableObjectFile>>
46 std::unique_ptr<DIContext> DICtx,
49 std::unique_ptr<SymbolizableObjectFile> res(
51 std::unique_ptr<DataExtractor> OpdExtractor;
108 std::unique_ptr<DIContext> DICtx,
lib/DebugInfo/Symbolize/SymbolizableObjectFile.h 33 static ErrorOr<std::unique_ptr<SymbolizableObjectFile>>
34 create(const object::ObjectFile *Obj, std::unique_ptr<DIContext> DICtx,
73 std::unique_ptr<DIContext> DebugInfoContext;
90 std::unique_ptr<DIContext> DICtx,
lib/DebugInfo/Symbolize/Symbolize.cpp 69 std::unique_ptr<DIContext> Context =
191 ErrorOr<std::unique_ptr<MemoryBuffer>> MB =
390 Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
410 std::unique_ptr<DIContext> Context,
414 std::unique_ptr<SymbolizableModule> SymMod;
450 std::unique_ptr<DIContext> Context;
459 std::unique_ptr<IPDBSession> Session;
lib/ExecutionEngine/ExecutionEngine.cpp 49 std::unique_ptr<Module> M, std::string *ErrorStr,
52 std::unique_ptr<TargetMachine> TM) = nullptr;
57 std::unique_ptr<TargetMachine> TM) = nullptr;
59 ExecutionEngine *(*ExecutionEngine::InterpCtor)(std::unique_ptr<Module> M,
66 void ExecutionEngine::Init(std::unique_ptr<Module> M) {
83 ExecutionEngine::ExecutionEngine(std::unique_ptr<Module> M)
88 ExecutionEngine::ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M)
130 void ExecutionEngine::addObjectFile(std::unique_ptr<object::ObjectFile> O) {
411 for (std::unique_ptr<Module> &M : Modules)
475 EngineBuilder::EngineBuilder(std::unique_ptr<Module> M)
491 std::unique_ptr<RTDyldMemoryManager> mcjmm) {
499 EngineBuilder::setMemoryManager(std::unique_ptr<MCJITMemoryManager> MM) {
505 EngineBuilder::setSymbolResolver(std::unique_ptr<LegacyJITSymbolResolver> SR) {
511 std::unique_ptr<TargetMachine> TheTM(TM); // Take ownership.
lib/ExecutionEngine/ExecutionEngineBindings.cpp 183 std::unique_ptr<Module> Mod(unwrap(M));
lib/ExecutionEngine/Interpreter/Interpreter.cpp 34 ExecutionEngine *Interpreter::create(std::unique_ptr<Module> M,
54 Interpreter::Interpreter(std::unique_ptr<Module> M)
lib/ExecutionEngine/Interpreter/Interpreter.h 88 explicit Interpreter(std::unique_ptr<Module> M);
102 static ExecutionEngine *create(std::unique_ptr<Module> M,
lib/ExecutionEngine/JITLink/JITLink.cpp 217 void jitLink(std::unique_ptr<JITLinkContext> Ctx) {
lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp 25 void JITLinkerBase::linkPhase1(std::unique_ptr<JITLinkerBase> Self) {
87 void JITLinkerBase::linkPhase2(std::unique_ptr<JITLinkerBase> Self,
117 std::unique_ptr<JITLinkerBase> Self(UnownedSelf);
124 void JITLinkerBase::linkPhase3(std::unique_ptr<JITLinkerBase> Self, Error Err) {
lib/ExecutionEngine/JITLink/JITLinkGeneric.h 35 JITLinkerBase(std::unique_ptr<JITLinkContext> Ctx, PassConfiguration Passes)
60 void linkPhase1(std::unique_ptr<JITLinkerBase> Self);
67 void linkPhase2(std::unique_ptr<JITLinkerBase> Self,
73 void linkPhase3(std::unique_ptr<JITLinkerBase> Self, Error Err);
77 virtual Expected<std::unique_ptr<LinkGraph>>
115 std::unique_ptr<JITLinkContext> Ctx;
117 std::unique_ptr<LinkGraph> G;
118 std::unique_ptr<JITLinkMemoryManager::Allocation> Alloc;
123 using JITLinkerBase::JITLinkerBase;
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp 19 Expected<std::unique_ptr<JITLinkMemoryManager::Allocation>>
lib/ExecutionEngine/JITLink/MachO.cpp 30 void jitLink_MachO(std::unique_ptr<JITLinkContext> Ctx) {
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp 24 Expected<std::unique_ptr<LinkGraph>> MachOLinkGraphBuilder::buildGraph() {
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h 30 Expected<std::unique_ptr<LinkGraph>> buildGraph();
256 std::unique_ptr<LinkGraph> G;
lib/ExecutionEngine/JITLink/MachO_arm64.cpp 491 MachOJITLinker_arm64(std::unique_ptr<JITLinkContext> Ctx,
500 Expected<std::unique_ptr<LinkGraph>>
675 void jitLink_MachO_arm64(std::unique_ptr<JITLinkContext> Ctx) {
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp 451 MachOJITLinker_x86_64(std::unique_ptr<JITLinkContext> Ctx,
460 Expected<std::unique_ptr<LinkGraph>>
564 void jitLink_MachO_x86_64(std::unique_ptr<JITLinkContext> Ctx) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp 42 MCJIT::createJIT(std::unique_ptr<Module> M, std::string *ErrorStr,
45 std::unique_ptr<TargetMachine> TM) {
63 MCJIT::MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> TM,
63 MCJIT::MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> TM,
80 std::unique_ptr<Module> First = std::move(Modules[0]);
102 void MCJIT::addModule(std::unique_ptr<Module> M) {
116 void MCJIT::addObjectFile(std::unique_ptr<object::ObjectFile> Obj) {
117 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> L = Dyld.loadObject(*Obj);
127 std::unique_ptr<object::ObjectFile> ObjFile;
128 std::unique_ptr<MemoryBuffer> MemBuf;
143 std::unique_ptr<MemoryBuffer> MCJIT::emitObject(Module *M) {
171 std::unique_ptr<MemoryBuffer> CompiledObjBuffer(
198 std::unique_ptr<MemoryBuffer> ObjectToLoad;
213 Expected<std::unique_ptr<object::ObjectFile>> LoadedObject =
222 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> L =
350 Expected<std::unique_ptr<object::Binary>> ChildBinOrErr =
357 std::unique_ptr<object::Binary> &ChildBin = ChildBinOrErr.get();
359 std::unique_ptr<object::ObjectFile> OF(
lib/ExecutionEngine/MCJIT/MCJIT.h 68 MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> tm,
68 MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> tm,
96 void addModule(std::unique_ptr<Module> M) {
179 std::unique_ptr<TargetMachine> TM;
189 SmallVector<std::unique_ptr<MemoryBuffer>, 2> Buffers;
191 SmallVector<std::unique_ptr<object::ObjectFile>, 2> LoadedObjects;
215 void addModule(std::unique_ptr<Module> M) override;
216 void addObjectFile(std::unique_ptr<object::ObjectFile> O) override;
304 createJIT(std::unique_ptr<Module> M, std::string *ErrorStr,
307 std::unique_ptr<TargetMachine> TM);
331 std::unique_ptr<MemoryBuffer> emitObject(Module *M);
lib/ExecutionEngine/Orc/CompileUtils.cpp 79 std::unique_ptr<MemoryBuffer> ConcurrentIRCompiler::operator()(Module &M) {
lib/ExecutionEngine/Orc/Core.cpp 435 std::unique_ptr<MaterializationUnit> MU) {
775 void JITDylib::replace(std::unique_ptr<MaterializationUnit> MU) {
1444 std::vector<std::unique_ptr<MaterializationUnit>> &MUs) {
1524 std::vector<std::unique_ptr<MaterializationUnit>> MUs;
1580 std::vector<std::unique_ptr<MaterializationUnit>> &MUs,
2120 std::pair<JITDylib *, std::unique_ptr<MaterializationUnit>> JITDylibAndMU;
lib/ExecutionEngine/Orc/ExecutionUtils.cpp 182 Expected<std::unique_ptr<DynamicLibrarySearchGenerator>>
230 Expected<std::unique_ptr<StaticLibraryDefinitionGenerator>>
240 Expected<std::unique_ptr<StaticLibraryDefinitionGenerator>>
242 ObjectLayer &L, std::unique_ptr<MemoryBuffer> ArchiveBuffer) {
245 std::unique_ptr<StaticLibraryDefinitionGenerator> ADG(
290 ObjectLayer &L, std::unique_ptr<MemoryBuffer> ArchiveBuffer, Error &Err)
lib/ExecutionEngine/Orc/IndirectionUtils.cpp 115 Expected<std::unique_ptr<JITCompileCallbackManager>>
162 std::function<std::unique_ptr<IndirectStubsManager>()>
lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp 43 Expected<std::unique_ptr<TargetMachine>>
lib/ExecutionEngine/Orc/LLJIT.cpp 51 Error LLJIT::addObjectFile(JITDylib &JD, std::unique_ptr<MemoryBuffer> Obj) {
62 std::unique_ptr<ObjectLayer>
lib/ExecutionEngine/Orc/Layer.cpp 108 Error ObjectLayer::add(JITDylib &JD, std::unique_ptr<MemoryBuffer> O,
117 Expected<std::unique_ptr<BasicObjectLayerMaterializationUnit>>
119 std::unique_ptr<MemoryBuffer> O) {
132 ObjectLayer &L, VModuleKey K, std::unique_ptr<MemoryBuffer> O,
lib/ExecutionEngine/Orc/LazyReexports.cpp 23 std::unique_ptr<TrampolinePool> TP)
83 Expected<std::unique_ptr<LazyCallThroughManager>>
lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp 29 std::unique_ptr<MemoryBuffer> ObjBuffer)
51 std::unique_ptr<JITLinkAsyncLookupContinuation> LC) override {
139 std::unique_ptr<JITLinkMemoryManager::Allocation> A) override {
314 std::unique_ptr<MemoryBuffer> ObjBuffer;
330 std::unique_ptr<MemoryBuffer> O) {
lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp 21 std::unique_ptr<MemoryBuffer> O) {
lib/ExecutionEngine/Orc/OrcCBindings.cpp 75 std::unique_ptr<Module> M(unwrap(Mod));
90 std::unique_ptr<Module> M(unwrap(Mod));
105 std::unique_ptr<MemoryBuffer> O(unwrap(Obj));
lib/ExecutionEngine/Orc/OrcCBindingsStack.h 99 std::unique_ptr<GenericLayerImpl<LayerT>> createGenericLayer(LayerT &Layer) {
115 std::function<std::unique_ptr<CompileCallbackMgr>()>;
286 addIRModule(LayerT &Layer, std::unique_ptr<Module> M,
287 std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr,
326 addIRModuleEager(std::unique_ptr<Module> M,
335 addIRModuleLazy(std::unique_ptr<Module> M,
357 Expected<orc::VModuleKey> addObject(std::unique_ptr<MemoryBuffer> ObjBuffer,
450 static std::unique_ptr<CompileCallbackMgr>
462 static std::unique_ptr<CODLayerT>
510 std::unique_ptr<CompileCallbackMgr> CCMgr;
517 std::unique_ptr<orc::IndirectStubsManager> IndirectStubsMgr;
521 std::unique_ptr<CODLayerT> CODLayer;
523 std::map<orc::VModuleKey, std::unique_ptr<detail::GenericLayer>> KeyLayers;
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h 222 std::unique_ptr<TargetMachine> TM) {
234 std::unique_ptr<TargetMachine> TM)
258 void addModule(std::unique_ptr<Module> M) override {
298 void addObjectFile(std::unique_ptr<object::ObjectFile> O) override {
304 std::unique_ptr<object::ObjectFile> Obj;
305 std::unique_ptr<MemoryBuffer> ObjBuffer;
401 Expected<std::unique_ptr<object::Binary>> ChildBinOrErr =
408 std::unique_ptr<object::Binary> &ChildBin = ChildBinOrErr.get();
424 std::vector<std::unique_ptr<RuntimeDyld::LoadedObjectInfo>>;
466 std::unique_ptr<TargetMachine> TM;
lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp 81 std::unique_ptr<MemoryBuffer> O) {
151 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> LoadedObjInfo,
196 VModuleKey K, std::unique_ptr<MemoryBuffer> ObjBuffer,
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 1192 std::unique_ptr<RuntimeDyldImpl> This,
1194 std::unique_ptr<MemoryBuffer> UnderlyingBuffer) {
1271 static std::unique_ptr<RuntimeDyldCOFF>
1276 std::unique_ptr<RuntimeDyldCOFF> Dyld =
1283 static std::unique_ptr<RuntimeDyldELF>
1287 std::unique_ptr<RuntimeDyldELF> Dyld =
1294 static std::unique_ptr<RuntimeDyldMachO>
1300 std::unique_ptr<RuntimeDyldMachO> Dyld =
1307 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
1407 std::unique_ptr<MemoryBuffer> UnderlyingBuffer,
1411 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> LoadedObj,
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp 46 std::unique_ptr<RuntimeDyldCOFF>
61 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h 29 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
33 static std::unique_ptr<RuntimeDyldCOFF>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp 72 static Expected<std::unique_ptr<DyldELFObject>>
101 Expected<std::unique_ptr<DyldELFObject<ELFT>>>
106 std::unique_ptr<DyldELFObject<ELFT>> Ret(
147 static Expected<std::unique_ptr<DyldELFObject<ELFT>>>
153 Expected<std::unique_ptr<DyldELFObject<ELFT>>> ObjOrErr =
158 std::unique_ptr<DyldELFObject<ELFT>> Obj = std::move(*ObjOrErr);
190 std::unique_ptr<MemoryBuffer> Buffer =
193 Expected<std::unique_ptr<ObjectFile>> DebugObj(nullptr);
239 std::unique_ptr<RuntimeDyldELF>
254 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h 168 static std::unique_ptr<RuntimeDyldELF>
172 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h 476 virtual std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
551 static void finalizeAsync(std::unique_ptr<RuntimeDyldImpl> This,
553 std::unique_ptr<MemoryBuffer> UnderlyingBuffer);
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp 348 std::unique_ptr<RuntimeDyldMachO>
369 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h 124 static std::unique_ptr<RuntimeDyldMachO>
129 std::unique_ptr<RuntimeDyld::LoadedObjectInfo>
lib/FuzzMutate/FuzzerCLI.cpp 161 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
169 std::unique_ptr<Module> llvm::parseModule(
201 std::unique_ptr<Module> llvm::parseAndVerify(const uint8_t *Data, size_t Size,
lib/IR/AsmWriter.cpp 2315 std::unique_ptr<SlotTracker> MachineStorage;
2357 std::unique_ptr<SlotTracker> SlotTrackerStorage;
lib/IR/Constants.cpp 643 std::unique_ptr<ConstantInt> &Slot = pImpl->IntConstants[V];
814 std::unique_ptr<ConstantFP> &Slot = pImpl->FPConstants[V];
1367 std::unique_ptr<ConstantAggregateZero> &Entry =
1433 std::unique_ptr<ConstantPointerNull> &Entry =
1447 std::unique_ptr<UndefValue> &Entry = Ty->getContext().pImpl->UVConstants[Ty];
lib/IR/Core.cpp 4002 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path);
4013 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN();
lib/IR/LLVMContext.cpp 125 void LLVMContext::setDiagnosticHandler(std::unique_ptr<DiagnosticHandler> &&DH,
152 std::unique_ptr<RemarkStreamer> RemarkStreamer) {
329 std::unique_ptr<DiagnosticHandler> LLVMContext::getDiagnosticHandler() {
lib/IR/LLVMContextImpl.h 1251 std::unique_ptr<DiagnosticHandler> DiagHandler;
1255 std::unique_ptr<RemarkStreamer> RemarkDiagStreamer;
1261 DenseMap<APInt, std::unique_ptr<ConstantInt>, DenseMapAPIntKeyInfo>;
1265 DenseMap<APFloat, std::unique_ptr<ConstantFP>, DenseMapAPFloatKeyInfo>;
1291 DenseMap<Type *, std::unique_ptr<ConstantAggregateZero>> CAZConstants;
1302 DenseMap<PointerType *, std::unique_ptr<ConstantPointerNull>> CPNConstants;
1304 DenseMap<Type *, std::unique_ptr<UndefValue>> UVConstants;
1317 std::unique_ptr<ConstantTokenNone> TheNoneToken;
lib/IR/Module.cpp 92 std::unique_ptr<RandomNumberGenerator> Module::createRNG(const Pass* P) const {
404 std::unique_ptr<GVMaterializer> M = std::move(Materializer);
546 void Module::setOwnedMemoryBuffer(std::unique_ptr<MemoryBuffer> MB) {
lib/IR/PassTimingInfo.cpp 62 DenseMap<PassInstanceID, std::unique_ptr<Timer>> TimingData; ///< timers for pass instances
134 std::unique_ptr<Timer> &T = TimingData[Pass];
lib/IR/RemarkStreamer.cpp 32 std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer,
143 Expected<std::unique_ptr<ToolOutputFile>>
171 Expected<std::unique_ptr<remarks::RemarkSerializer>> RemarkSerializer =
202 Expected<std::unique_ptr<remarks::RemarkSerializer>> RemarkSerializer =
lib/IR/Verifier.cpp 5142 std::unique_ptr<Verifier> V;
lib/IRReader/IRReader.cpp 32 std::unique_ptr<Module>
33 llvm::getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer, SMDiagnostic &Err,
37 Expected<std::unique_ptr<Module>> ModuleOrErr = getOwningLazyBitcodeModule(
52 std::unique_ptr<Module> llvm::getLazyIRFileModule(StringRef Filename,
56 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
68 std::unique_ptr<Module> llvm::parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err,
77 Expected<std::unique_ptr<Module>> ModuleOrErr =
95 std::unique_ptr<Module> llvm::parseIRFile(StringRef Filename, SMDiagnostic &Err,
99 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
120 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf));
lib/LTO/Caching.cpp 46 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr =
78 CacheStream(std::unique_ptr<raw_pwrite_stream> OS, AddBufferFn AddBuffer,
90 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr =
lib/LTO/LTO.cpp 429 Expected<std::unique_ptr<InputFile>> InputFile::create(MemoryBufferRef Object) {
430 std::unique_ptr<InputFile> File(new InputFile);
568 Error LTO::add(std::unique_ptr<InputFile> Input,
666 Expected<std::unique_ptr<Module>> MOrErr =
930 std::unique_ptr<ToolOutputFile> StatsFile = std::move(StatsFileOrErr.get());
1088 Expected<std::unique_ptr<Module>> MOrErr = BM.parseModule(BackendContext);
1360 std::unique_ptr<ThinBackendProc> BackendProc =
1378 Expected<std::unique_ptr<ToolOutputFile>>
1397 Expected<std::unique_ptr<ToolOutputFile>>
lib/LTO/LTOBackend.cpp 127 std::unique_ptr<TargetMachine>
320 std::unique_ptr<ToolOutputFile> DwoOut;
355 std::unique_ptr<Module> Mod) {
377 Expected<std::unique_ptr<Module>> MOrErr = parseBitcodeFile(
382 std::unique_ptr<Module> MPartInCtx = std::move(MOrErr.get());
384 std::unique_ptr<TargetMachine> TM =
417 finalizeOptimizationRemarks(std::unique_ptr<ToolOutputFile> DiagOutputFile) {
429 std::unique_ptr<Module> Mod,
435 std::unique_ptr<TargetMachine> TM = createTargetMachine(C, *TOrErr, *Mod);
490 std::unique_ptr<TargetMachine> TM = createTargetMachine(Conf, *TOrErr, Mod);
lib/LTO/LTOCodeGenerator.cpp 170 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) {
296 std::unique_ptr<MemoryBuffer>
303 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
328 std::unique_ptr<MemoryBuffer>
377 std::unique_ptr<TargetMachine> LTOCodeGenerator::createTargetMachine() {
lib/LTO/LTOModule.cpp 45 LTOModule::LTOModule(std::unique_ptr<Module> M, MemoryBufferRef MBRef,
62 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
108 ErrorOr<std::unique_ptr<LTOModule>>
111 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
117 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get());
122 ErrorOr<std::unique_ptr<LTOModule>>
128 ErrorOr<std::unique_ptr<LTOModule>>
132 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
139 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get());
144 ErrorOr<std::unique_ptr<LTOModule>>
153 ErrorOr<std::unique_ptr<LTOModule>>
154 LTOModule::createInLocalContext(std::unique_ptr<LLVMContext> Context,
161 ErrorOr<std::unique_ptr<LTOModule>> Ret =
168 static ErrorOr<std::unique_ptr<Module>>
192 ErrorOr<std::unique_ptr<LTOModule>>
195 ErrorOr<std::unique_ptr<Module>> MOrErr =
199 std::unique_ptr<Module> &M = *MOrErr;
231 std::unique_ptr<LTOModule> Ret(new LTOModule(std::move(M), Buffer, target));
239 std::unique_ptr<MemoryBuffer>
658 Expected<std::unique_ptr<lto::InputFile>> ObjOrErr =
lib/LTO/ThinLTOCodeGenerator.cpp 143 generateModuleMap(std::vector<std::unique_ptr<lto::InputFile>> &Modules) {
181 static std::unique_ptr<Module> loadModuleFromInput(lto::InputFile *Input,
187 Expected<std::unique_ptr<Module>> ModuleOrErr =
281 std::unique_ptr<MemoryBuffer> codegenModule(Module &TheModule,
353 ErrorOr<std::unique_ptr<MemoryBuffer>> tryLoadingBuffer() {
361 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getOpenFile(
398 static std::unique_ptr<MemoryBuffer>
543 std::unique_ptr<TargetMachine> TargetMachineBuilder::create() const {
565 std::unique_ptr<ModuleSummaryIndex> ThinLTOCodeGenerator::linkCombinedIndex() {
566 std::unique_ptr<ModuleSummaryIndex> CombinedIndex =
lib/Linker/IRMover.cpp 384 std::unique_ptr<Module> SrcM;
520 IRMover::IdentifiedStructTypeSet &Set, std::unique_ptr<Module> SrcM,
1556 std::unique_ptr<Module> Src, ArrayRef<GlobalValue *> ValuesToLink,
lib/Linker/LinkModules.cpp 31 std::unique_ptr<Module> SrcM;
109 ModuleLinker(IRMover &Mover, std::unique_ptr<Module> SrcM, unsigned Flags,
575 std::unique_ptr<Module> Src, unsigned Flags,
592 Module &Dest, std::unique_ptr<Module> Src, unsigned Flags,
604 std::unique_ptr<Module> M(unwrap(Src));
lib/MC/ELFObjectWriter.cpp 233 std::unique_ptr<MCELFObjectTargetWriter> TargetObjectWriter;
250 ELFObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW)
290 ELFSingleObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW,
308 ELFDwoObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW,
1547 std::unique_ptr<MCObjectWriter>
1548 llvm::createELFObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW,
1554 std::unique_ptr<MCObjectWriter>
1555 llvm::createELFDwoObjectWriter(std::unique_ptr<MCELFObjectTargetWriter> MOTW,
lib/MC/MCAsmBackend.cpp 31 std::unique_ptr<MCObjectWriter>
55 std::unique_ptr<MCObjectWriter>
lib/MC/MCAsmStreamer.cpp 45 std::unique_ptr<formatted_raw_ostream> OSOwner;
48 std::unique_ptr<MCInstPrinter> InstPrinter;
49 std::unique_ptr<MCAssembler> Assembler;
65 MCAsmStreamer(MCContext &Context, std::unique_ptr<formatted_raw_ostream> os,
67 MCInstPrinter *printer, std::unique_ptr<MCCodeEmitter> emitter,
68 std::unique_ptr<MCAsmBackend> asmbackend, bool showInst)
2026 std::unique_ptr<formatted_raw_ostream> OS,
2029 std::unique_ptr<MCCodeEmitter> &&CE,
2030 std::unique_ptr<MCAsmBackend> &&MAB,
lib/MC/MCAssembler.cpp 87 std::unique_ptr<MCAsmBackend> Backend,
88 std::unique_ptr<MCCodeEmitter> Emitter,
89 std::unique_ptr<MCObjectWriter> Writer)
lib/MC/MCDisassembler/Disassembler.cpp 56 std::unique_ptr<const MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TT));
62 std::unique_ptr<const MCAsmInfo> MAI(
67 std::unique_ptr<const MCInstrInfo> MII(TheTarget->createMCInstrInfo());
71 std::unique_ptr<const MCSubtargetInfo> STI(
77 std::unique_ptr<MCContext> Ctx(new MCContext(MAI.get(), MRI.get(), nullptr));
82 std::unique_ptr<MCDisassembler> DisAsm(
87 std::unique_ptr<MCRelocationInfo> RelInfo(
92 std::unique_ptr<MCSymbolizer> Symbolizer(TheTarget->createMCSymbolizer(
98 std::unique_ptr<MCInstPrinter> IP(TheTarget->createMCInstPrinter(
lib/MC/MCDisassembler/Disassembler.h 62 std::unique_ptr<const llvm::MCAsmInfo> MAI;
64 std::unique_ptr<const llvm::MCRegisterInfo> MRI;
66 std::unique_ptr<const llvm::MCSubtargetInfo> MSI;
68 std::unique_ptr<const llvm::MCInstrInfo> MII;
70 std::unique_ptr<const llvm::MCContext> Ctx;
72 std::unique_ptr<const llvm::MCDisassembler> DisAsm;
74 std::unique_ptr<llvm::MCInstPrinter> IP;
89 std::unique_ptr<const MCAsmInfo> &&MAI,
90 std::unique_ptr<const MCRegisterInfo> &&MRI,
91 std::unique_ptr<const MCSubtargetInfo> &&MSI,
92 std::unique_ptr<const MCInstrInfo> &&MII,
93 std::unique_ptr<const llvm::MCContext> &&Ctx,
94 std::unique_ptr<const MCDisassembler> &&DisAsm,
95 std::unique_ptr<MCInstPrinter> &&IP)
lib/MC/MCDisassembler/MCDisassembler.cpp 44 void MCDisassembler::setSymbolizer(std::unique_ptr<MCSymbolizer> Symzer) {
lib/MC/MCDisassembler/MCExternalSymbolizer.cpp 193 std::unique_ptr<MCRelocationInfo> &&RelInfo) {
lib/MC/MCELFStreamer.cpp 42 std::unique_ptr<MCAsmBackend> TAB,
43 std::unique_ptr<MCObjectWriter> OW,
44 std::unique_ptr<MCCodeEmitter> Emitter)
702 std::unique_ptr<MCAsmBackend> &&MAB,
703 std::unique_ptr<MCObjectWriter> &&OW,
704 std::unique_ptr<MCCodeEmitter> &&CE,
lib/MC/MCMachOStreamer.cpp 65 MCMachOStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
66 std::unique_ptr<MCObjectWriter> OW,
67 std::unique_ptr<MCCodeEmitter> Emitter,
507 std::unique_ptr<MCAsmBackend> &&MAB,
508 std::unique_ptr<MCObjectWriter> &&OW,
509 std::unique_ptr<MCCodeEmitter> &&CE,
lib/MC/MCObjectStreamer.cpp 26 std::unique_ptr<MCAsmBackend> TAB,
27 std::unique_ptr<MCObjectWriter> OW,
28 std::unique_ptr<MCCodeEmitter> Emitter)
lib/MC/MCParser/AsmParser.cpp 108 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 8> ParsedOperands;
133 std::unique_ptr<MCAsmParserExtension> PlatformParser;
2797 std::unique_ptr<MemoryBuffer> Instantiation =
5542 std::unique_ptr<MemoryBuffer> Instantiation =
lib/MC/MCWasmStreamer.cpp 201 std::unique_ptr<MCAsmBackend> &&MAB,
202 std::unique_ptr<MCObjectWriter> &&OW,
203 std::unique_ptr<MCCodeEmitter> &&CE,
lib/MC/MCWinCOFFStreamer.cpp 45 std::unique_ptr<MCAsmBackend> MAB,
46 std::unique_ptr<MCCodeEmitter> CE,
47 std::unique_ptr<MCObjectWriter> OW)
lib/MC/MCXCOFFStreamer.cpp 24 std::unique_ptr<MCAsmBackend> MAB,
25 std::unique_ptr<MCObjectWriter> OW,
26 std::unique_ptr<MCCodeEmitter> Emitter)
86 std::unique_ptr<MCAsmBackend> &&MAB,
87 std::unique_ptr<MCObjectWriter> &&OW,
88 std::unique_ptr<MCCodeEmitter> &&CE,
lib/MC/MachObjectWriter.cpp 1047 std::unique_ptr<MCObjectWriter>
1048 llvm::createMachObjectWriter(std::unique_ptr<MCMachObjectTargetWriter> MOTW,
lib/MC/WasmObjectWriter.cpp 216 std::unique_ptr<MCWasmObjectTargetWriter> TargetObjectWriter;
242 std::unique_ptr<WasmCustomSection> ProducersSection;
243 std::unique_ptr<WasmCustomSection> TargetFeaturesSection;
268 WasmObjectWriter(std::unique_ptr<MCWasmObjectTargetWriter> MOTW,
1595 std::unique_ptr<MCObjectWriter>
1596 llvm::createWasmObjectWriter(std::unique_ptr<MCWasmObjectTargetWriter> MOTW,
lib/MC/WinCOFFObjectWriter.cpp 128 using symbols = std::vector<std::unique_ptr<COFFSymbol>>;
129 using sections = std::vector<std::unique_ptr<COFFSection>>;
134 std::unique_ptr<MCWinCOFFObjectTargetWriter> TargetObjectWriter;
152 WinCOFFObjectWriter(std::unique_ptr<MCWinCOFFObjectTargetWriter> MOTW,
236 std::unique_ptr<MCWinCOFFObjectTargetWriter> MOTW, raw_pwrite_stream &OS)
883 for (const std::unique_ptr<COFFSection> &Section : Sections)
886 for (const std::unique_ptr<COFFSection> &Section : Sections)
1099 std::unique_ptr<MCObjectWriter> llvm::createWinCOFFObjectWriter(
1100 std::unique_ptr<MCWinCOFFObjectTargetWriter> MOTW, raw_pwrite_stream &OS) {
lib/MC/XCOFFObjectWriter.cpp 154 std::unique_ptr<MCXCOFFObjectTargetWriter> TargetObjectWriter;
217 XCOFFObjectWriter(std::unique_ptr<MCXCOFFObjectTargetWriter> MOTW,
222 std::unique_ptr<MCXCOFFObjectTargetWriter> MOTW, raw_pwrite_stream &OS)
645 std::unique_ptr<MCObjectWriter>
646 llvm::createXCOFFObjectWriter(std::unique_ptr<MCXCOFFObjectTargetWriter> MOTW,
lib/MCA/Context.cpp 30 std::unique_ptr<Pipeline>
lib/MCA/HardwareUnits/LSUnit.cpp 45 for (const std::pair<unsigned, std::unique_ptr<MemoryGroup>> &G : Groups)
lib/MCA/HardwareUnits/ResourceManager.cpp 104 static std::unique_ptr<ResourceStrategy>
158 void ResourceManager::setCustomStrategyImpl(std::unique_ptr<ResourceStrategy> S,
lib/MCA/HardwareUnits/Scheduler.cpp 22 void Scheduler::initializeStrategy(std::unique_ptr<SchedulerStrategy> S) {
lib/MCA/InstrBuilder.cpp 546 std::unique_ptr<InstrDesc> ID = std::make_unique<InstrDesc>();
609 Expected<std::unique_ptr<Instruction>>
615 std::unique_ptr<Instruction> NewIS = std::make_unique<Instruction>(D);
lib/MCA/Pipeline.cpp 55 const std::unique_ptr<Stage> &S = *I;
66 for (const std::unique_ptr<Stage> &S : Stages) {
75 void Pipeline::appendStage(std::unique_ptr<Stage> S) {
lib/MCA/Stages/EntryStage.cpp 36 std::unique_ptr<Instruction> Inst = std::make_unique<Instruction>(SR.second);
lib/Object/Archive.cpp 449 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = MemoryBuffer::getFile(FullName);
518 Expected<std::unique_ptr<Binary>>
530 Expected<std::unique_ptr<Archive>> Archive::create(MemoryBufferRef Source) {
532 std::unique_ptr<Archive> Ret(new Archive(Source, Err));
lib/Object/ArchiveWriter.cpp 94 ErrorOr<std::unique_ptr<MemoryBuffer>> MemberBufferOrErr =
356 std::unique_ptr<object::SymbolicFile> Obj;
554 std::unique_ptr<MemoryBuffer> OldArchiveBuf) {
lib/Object/Binary.cpp 46 Expected<std::unique_ptr<Binary>> object::createBinary(MemoryBufferRef Buffer,
97 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
102 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get();
104 Expected<std::unique_ptr<Binary>> BinOrErr =
108 std::unique_ptr<Binary> &Bin = BinOrErr.get();
lib/Object/COFFObjectFile.cpp 1622 Expected<std::unique_ptr<COFFObjectFile>>
1625 std::unique_ptr<COFFObjectFile> Ret(new COFFObjectFile(Object, EC));
lib/Object/ELFObjectFile.cpp 61 static Expected<std::unique_ptr<ELFObjectFile<ELFT>>>
69 Expected<std::unique_ptr<ObjectFile>>
403 std::unique_ptr<const MCInstrInfo> MII(T->createMCInstrInfo());
404 std::unique_ptr<const MCInstrAnalysis> MIA(
lib/Object/IRObjectFile.cpp 29 std::vector<std::unique_ptr<Module>> Mods)
98 Expected<std::unique_ptr<ObjectFile>> ObjFile =
109 Expected<std::unique_ptr<IRObjectFile>>
120 std::vector<std::unique_ptr<Module>> Mods;
122 Expected<std::unique_ptr<Module>> MOrErr =
lib/Object/IRSymtab.cpp 351 std::vector<std::unique_ptr<Module>> OwnedMods;
353 Expected<std::unique_ptr<Module>> MOrErr =
lib/Object/MachOObjectFile.cpp 1240 Expected<std::unique_ptr<MachOObjectFile>>
1245 std::unique_ptr<MachOObjectFile> Obj(
4635 Expected<std::unique_ptr<MachOObjectFile>>
lib/Object/MachOUniversal.cpp 62 Expected<std::unique_ptr<MachOObjectFile>>
83 Expected<std::unique_ptr<Archive>>
102 Expected<std::unique_ptr<MachOUniversalBinary>>
105 std::unique_ptr<MachOUniversalBinary> Ret(
229 Expected<std::unique_ptr<MachOObjectFile>>
237 Expected<std::unique_ptr<Archive>>
lib/Object/Minidump.cpp 110 Expected<std::unique_ptr<MinidumpFile>>
lib/Object/ModuleSymbolTable.cpp 82 std::unique_ptr<MCRegisterInfo> MRI(T->createMCRegInfo(TT.str()));
87 std::unique_ptr<MCAsmInfo> MAI(T->createMCAsmInfo(*MRI, TT.str(), MCOptions));
91 std::unique_ptr<MCSubtargetInfo> STI(
96 std::unique_ptr<MCInstrInfo> MCII(T->createMCInstrInfo());
107 std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer(InlineAsm));
110 std::unique_ptr<MCAsmParser> Parser(
113 std::unique_ptr<MCTargetAsmParser> TAP(
lib/Object/Object.cpp 68 Expected<std::unique_ptr<Binary>> ObjOrErr(
140 Expected<std::unique_ptr<ObjectFile>> ObjOrErr(
179 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf));
180 Expected<std::unique_ptr<ObjectFile>> ObjOrErr(
182 std::unique_ptr<ObjectFile> Obj;
lib/Object/ObjectFile.cpp 117 Expected<std::unique_ptr<ObjectFile>>
169 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
173 std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get());
175 Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
179 std::unique_ptr<ObjectFile> Obj = std::move(ObjOrErr.get());
lib/Object/SymbolicFile.cpp 37 Expected<std::unique_ptr<SymbolicFile>>
82 Expected<std::unique_ptr<ObjectFile>> Obj =
lib/Object/TapiUniversal.cpp 40 Expected<std::unique_ptr<TapiFile>>
47 Expected<std::unique_ptr<TapiUniversal>>
50 std::unique_ptr<TapiUniversal> Ret(new TapiUniversal(Source, Err));
lib/Object/WasmObjectFile.cpp 56 Expected<std::unique_ptr<WasmObjectFile>>
lib/Object/WindowsResource.cpp 59 Expected<std::unique_ptr<WindowsResource>>
65 std::unique_ptr<WindowsResource> Ret(new WindowsResource(Source));
463 std::unique_ptr<WindowsResourceParser::TreeNode>
468 std::unique_ptr<WindowsResourceParser::TreeNode>
473 std::unique_ptr<WindowsResourceParser::TreeNode>
605 std::unique_ptr<MemoryBuffer> write(uint32_t TimeDateStamp);
621 std::unique_ptr<WritableMemoryBuffer> OutputBuffer;
705 std::unique_ptr<MemoryBuffer>
1001 Expected<std::unique_ptr<MemoryBuffer>>
lib/Object/XCOFFObjectFile.cpp 624 Expected<std::unique_ptr<XCOFFObjectFile>>
627 std::unique_ptr<XCOFFObjectFile> Obj;
685 Expected<std::unique_ptr<ObjectFile>>
lib/ObjectYAML/DWARFEmitter.cpp 300 StringMap<std::unique_ptr<MemoryBuffer>> &OutputBuffers) {
350 Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
366 StringMap<std::unique_ptr<MemoryBuffer>> DebugSections;
lib/ObjectYAML/ELFEmitter.cpp 208 for (std::unique_ptr<ELFYAML::Section> &D : Doc.Sections) {
240 std::unique_ptr<ELFYAML::Section> Sec = std::make_unique<ELFYAML::Section>(
1136 for (const std::unique_ptr<ELFYAML::Section> &Sec : Doc.Sections) {
lib/ObjectYAML/ELFYAML.cpp 1119 IO &IO, std::unique_ptr<ELFYAML::Section> &Section) {
1208 IO &io, std::unique_ptr<ELFYAML::Section> &Section) {
lib/ObjectYAML/MinidumpYAML.cpp 97 std::unique_ptr<Stream> Stream::create(StreamType Type) {
400 yaml::IO &IO, std::unique_ptr<MinidumpYAML::Stream> &S) {
437 yaml::IO &IO, std::unique_ptr<MinidumpYAML::Stream> &S) {
461 Expected<std::unique_ptr<Stream>>
553 std::vector<std::unique_ptr<Stream>> Streams;
lib/ObjectYAML/WasmEmitter.cpp 551 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) {
605 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) {
lib/ObjectYAML/WasmYAML.cpp 162 IO &IO, std::unique_ptr<WasmYAML::Section> &Section) {
lib/ObjectYAML/yaml2obj.cpp 56 std::unique_ptr<object::ObjectFile>
66 Expected<std::unique_ptr<object::ObjectFile>> ObjOrErr =
lib/Option/Option.cpp 236 std::unique_ptr<Arg> A(acceptInternal(Args, Index, ArgSize));
lib/ProfileData/Coverage/CoverageMapping.cpp 278 Expected<std::unique_ptr<CoverageMapping>> CoverageMapping::load(
279 ArrayRef<std::unique_ptr<CoverageMappingReader>> CoverageReaders,
306 Expected<std::unique_ptr<CoverageMapping>>
314 SmallVector<std::unique_ptr<CoverageMappingReader>, 4> Readers;
315 SmallVector<std::unique_ptr<MemoryBuffer>, 4> Buffers;
lib/ProfileData/Coverage/CoverageMappingReader.cpp 399 static Expected<std::unique_ptr<CovMapFuncRecordReader>>
534 Expected<std::unique_ptr<CovMapFuncRecordReader>> CovMapFuncRecordReader::get(
572 Expected<std::unique_ptr<CovMapFuncRecordReader>> ReaderExpected =
589 Expected<std::unique_ptr<BinaryCoverageReader>>
593 std::unique_ptr<BinaryCoverageReader> Reader(new BinaryCoverageReader());
622 static Expected<std::unique_ptr<BinaryCoverageReader>>
679 static Expected<std::unique_ptr<BinaryCoverageReader>>
680 loadBinaryFormat(std::unique_ptr<Binary> Bin, StringRef Arch) {
681 std::unique_ptr<ObjectFile> OF;
732 Expected<std::vector<std::unique_ptr<BinaryCoverageReader>>>
735 SmallVectorImpl<std::unique_ptr<MemoryBuffer>> &ObjectFileBuffers) {
736 std::vector<std::unique_ptr<BinaryCoverageReader>> Readers;
750 std::unique_ptr<Binary> Bin = std::move(BinOrErr.get());
lib/ProfileData/GCOV.cpp 616 std::unique_ptr<MemoryBuffer> Buffer;
621 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
702 std::unique_ptr<raw_ostream>
729 std::unique_ptr<raw_ostream> CovStream = openCoveragePath(CoveragePath);
lib/ProfileData/InstrProf.cpp 779 std::unique_ptr<ValueProfData>
783 std::unique_ptr<ValueProfData> VPD(
850 static std::unique_ptr<ValueProfData> allocValueProfData(uint32_t TotalSize) {
873 Expected<std::unique_ptr<ValueProfData>>
887 std::unique_ptr<ValueProfData> VPD = allocValueProfData(TotalSize);
lib/ProfileData/InstrProfReader.cpp 40 static Expected<std::unique_ptr<MemoryBuffer>>
42 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
53 Expected<std::unique_ptr<InstrProfReader>>
62 Expected<std::unique_ptr<InstrProfReader>>
63 InstrProfReader::create(std::unique_ptr<MemoryBuffer> Buffer) {
71 std::unique_ptr<InstrProfReader> Result;
91 Expected<std::unique_ptr<IndexedInstrProfReader>>
99 std::unique_ptr<MemoryBuffer> RemappingBuffer;
112 Expected<std::unique_ptr<IndexedInstrProfReader>>
113 IndexedInstrProfReader::create(std::unique_ptr<MemoryBuffer> Buffer,
114 std::unique_ptr<MemoryBuffer> RemappingBuffer) {
388 std::unique_ptr<InstrProfSymtab> NewSymtab = std::make_unique<InstrProfSymtab>();
454 Expected<std::unique_ptr<ValueProfData>> VDataPtrOrErr =
515 Expected<std::unique_ptr<ValueProfData>> VDataPtrOrErr =
636 std::unique_ptr<MemoryBuffer> RemapBuffer,
717 std::unique_ptr<MemoryBuffer> RemapBuffer;
758 std::unique_ptr<IndexedInstrProf::Summary> SummaryData =
772 std::unique_ptr<llvm::ProfileSummary> &Summary =
858 std::unique_ptr<InstrProfSymtab> NewSymtab = std::make_unique<InstrProfSymtab>();
lib/ProfileData/InstrProfWriter.cpp 157 std::unique_ptr<ValueProfData> VDataPtr =
347 std::unique_ptr<IndexedInstrProf::Summary> TheSummary =
351 std::unique_ptr<ProfileSummary> PS = ISB.getSummary();
356 std::unique_ptr<IndexedInstrProf::Summary> TheCSSummary = nullptr;
359 std::unique_ptr<ProfileSummary> CSPS = CSISB.getSummary();
383 std::unique_ptr<MemoryBuffer> InstrProfWriter::writeBuffer() {
lib/ProfileData/ProfileSummaryBuilder.cpp 94 std::unique_ptr<ProfileSummary> SampleProfileSummaryBuilder::getSummary() {
101 std::unique_ptr<ProfileSummary> InstrProfSummaryBuilder::getSummary() {
lib/ProfileData/SampleProfReader.cpp 1242 static ErrorOr<std::unique_ptr<MemoryBuffer>>
1265 ErrorOr<std::unique_ptr<SampleProfileReader>>
1284 ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
1304 ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
1305 SampleProfileReaderItaniumRemapper::create(std::unique_ptr<MemoryBuffer> &B,
1332 ErrorOr<std::unique_ptr<SampleProfileReader>>
1333 SampleProfileReader::create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C,
1335 std::unique_ptr<SampleProfileReader> Reader;
lib/ProfileData/SampleProfWriter.cpp 565 ErrorOr<std::unique_ptr<SampleProfileWriter>>
568 std::unique_ptr<raw_ostream> OS;
587 ErrorOr<std::unique_ptr<SampleProfileWriter>>
588 SampleProfileWriter::create(std::unique_ptr<raw_ostream> &OS,
591 std::unique_ptr<SampleProfileWriter> Writer;
lib/Remarks/BitstreamRemarkParser.cpp 307 Expected<std::unique_ptr<BitstreamRemarkParser>>
329 Expected<std::unique_ptr<Remark>> BitstreamRemarkParser::next() {
425 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
484 Expected<std::unique_ptr<Remark>> BitstreamRemarkParser::parseRemark() {
492 Expected<std::unique_ptr<Remark>>
494 std::unique_ptr<Remark> Result = std::make_unique<Remark>();
lib/Remarks/BitstreamRemarkParser.h 34 std::unique_ptr<MemoryBuffer> TmpRemarkBuffer;
53 Expected<std::unique_ptr<Remark>> next() override;
63 Expected<std::unique_ptr<Remark>> parseRemark();
71 Expected<std::unique_ptr<Remark>>
76 Expected<std::unique_ptr<BitstreamRemarkParser>> createBitstreamParserFromMeta(
lib/Remarks/BitstreamRemarkSerializer.cpp 368 std::unique_ptr<MetaSerializer> BitstreamRemarkSerializer::metaSerializer(
lib/Remarks/RemarkParser.cpp 51 Expected<std::unique_ptr<RemarkParser>>
69 Expected<std::unique_ptr<RemarkParser>>
88 Expected<std::unique_ptr<RemarkParser>>
112 std::unique_ptr<RemarkParser> TheParser;
147 Expected<std::unique_ptr<Remark>> MaybeRemark = TheParser.next();
lib/Remarks/RemarkSerializer.cpp 20 Expected<std::unique_ptr<RemarkSerializer>>
37 Expected<std::unique_ptr<RemarkSerializer>>
lib/Remarks/YAMLRemarkParser.cpp 111 Expected<std::unique_ptr<YAMLRemarkParser>>
120 std::unique_ptr<MemoryBuffer> SeparateBuf;
150 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
161 std::unique_ptr<YAMLRemarkParser> Result =
190 Expected<std::unique_ptr<Remark>>
205 std::unique_ptr<Remark> Result = std::make_unique<Remark>();
414 Expected<std::unique_ptr<Remark>> YAMLRemarkParser::next() {
418 Expected<std::unique_ptr<Remark>> MaybeResult = parseRemark(*YAMLIt);
lib/Remarks/YAMLRemarkParser.h 64 std::unique_ptr<MemoryBuffer> SeparateBuf;
68 Expected<std::unique_ptr<Remark>> next() override;
83 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark);
112 Expected<std::unique_ptr<YAMLRemarkParser>>
lib/Remarks/YAMLRemarkSerializer.cpp 180 std::unique_ptr<MetaSerializer>
190 std::unique_ptr<MetaSerializer> MetaSerializer =
200 std::unique_ptr<MetaSerializer> YAMLStrTabRemarkSerializer::metaSerializer(
lib/Support/CodeGenCoverage.cpp 105 std::unique_ptr<ToolOutputFile> CoverageFile =
lib/Support/CommandLine.cpp 1044 ErrorOr<std::unique_ptr<MemoryBuffer>> MemBufOrErr =
lib/Support/FileCheck.cpp 151 Expected<std::unique_ptr<FileCheckNumericVariableUse>>
187 Expected<std::unique_ptr<FileCheckExpressionAST>>
223 Expected<std::unique_ptr<FileCheckExpressionAST>> FileCheckPattern::parseBinop(
224 StringRef &Expr, std::unique_ptr<FileCheckExpressionAST> LeftOp,
256 Expected<std::unique_ptr<FileCheckExpressionAST>> RightOpResult =
266 Expected<std::unique_ptr<FileCheckExpressionAST>>
272 std::unique_ptr<FileCheckExpressionAST> ExpressionAST = nullptr;
289 Expected<std::unique_ptr<FileCheckExpressionAST>> ParseResult =
490 std::unique_ptr<FileCheckExpressionAST> ExpressionAST;
493 Expected<std::unique_ptr<FileCheckExpressionAST>> ParseResult =
855 std::unique_ptr<FileCheckExpressionAST> ExpressionAST, size_t InsertIdx) {
1148 std::unique_ptr<MemoryBuffer> CmdLine = MemoryBuffer::getMemBufferCopy(
1812 std::unique_ptr<MemoryBuffer> CmdLineDefsDiagBuffer =
1834 Expected<std::unique_ptr<FileCheckExpressionAST>> ExpressionASTResult =
1841 std::unique_ptr<FileCheckExpressionAST> ExpressionAST =
lib/Support/FileCheckImpl.h 146 std::unique_ptr<FileCheckExpressionAST> LeftOperand;
149 std::unique_ptr<FileCheckExpressionAST> RightOperand;
156 std::unique_ptr<FileCheckExpressionAST> LeftOp,
157 std::unique_ptr<FileCheckExpressionAST> RightOp)
223 std::unique_ptr<FileCheckExpressionAST> ExpressionAST;
227 std::unique_ptr<FileCheckExpressionAST> ExprAST,
275 std::vector<std::unique_ptr<FileCheckNumericVariable>> NumericVariables;
279 std::vector<std::unique_ptr<FileCheckSubstitution>> Substitutions;
318 std::unique_ptr<FileCheckExpressionAST> ExpressionAST,
472 static Expected<std::unique_ptr<FileCheckExpressionAST>>
545 static Expected<std::unique_ptr<FileCheckNumericVariableUse>>
558 static Expected<std::unique_ptr<FileCheckExpressionAST>>
569 static Expected<std::unique_ptr<FileCheckExpressionAST>>
570 parseBinop(StringRef &Expr, std::unique_ptr<FileCheckExpressionAST> LeftOp,
lib/Support/FileCollector.cpp 206 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
lib/Support/FileOutputBuffer.cpp 37 std::unique_ptr<fs::mapped_file_region> Buf)
70 std::unique_ptr<fs::mapped_file_region> Buffer;
117 static Expected<std::unique_ptr<InMemoryBuffer>>
127 static Expected<std::unique_ptr<FileOutputBuffer>>
165 Expected<std::unique_ptr<FileOutputBuffer>>
lib/Support/FileUtilities.cpp 185 ErrorOr<std::unique_ptr<MemoryBuffer>> F1OrErr = MemoryBuffer::getFile(NameA);
193 ErrorOr<std::unique_ptr<MemoryBuffer>> F2OrErr = MemoryBuffer::getFile(NameB);
lib/Support/Host.cpp 55 static std::unique_ptr<llvm::MemoryBuffer>
57 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Text =
1236 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Text =
lib/Support/LockFileManager.cpp 54 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr =
lib/Support/MemoryBuffer.cpp 107 static ErrorOr<std::unique_ptr<MB>>
111 std::unique_ptr<MemoryBuffer>
119 std::unique_ptr<MemoryBuffer>
125 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
134 std::unique_ptr<MemoryBuffer>
142 ErrorOr<std::unique_ptr<MemoryBuffer>>
153 ErrorOr<std::unique_ptr<MemoryBuffer>>
210 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
230 ErrorOr<std::unique_ptr<MemoryBuffer>>
238 static ErrorOr<std::unique_ptr<MB>>
244 static ErrorOr<std::unique_ptr<MB>>
258 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
266 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
273 std::unique_ptr<WritableMemoryBuffer>
299 std::unique_ptr<WritableMemoryBuffer>
363 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
395 std::unique_ptr<WriteThroughMemoryBuffer> Result(
404 ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
410 ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
417 static ErrorOr<std::unique_ptr<MB>>
449 std::unique_ptr<MB> Result(
481 ErrorOr<std::unique_ptr<MemoryBuffer>>
488 ErrorOr<std::unique_ptr<MemoryBuffer>>
496 ErrorOr<std::unique_ptr<MemoryBuffer>> MemoryBuffer::getSTDIN() {
506 ErrorOr<std::unique_ptr<MemoryBuffer>>
513 ErrorOr<std::unique_ptr<MemoryBuffer>> Ret =
lib/Support/SourceMgr.cpp 44 ErrorOr<std::unique_ptr<MemoryBuffer>> NewBufOrErr =
lib/Support/SpecialCaseList.cpp 72 std::unique_ptr<SpecialCaseList>
75 std::unique_ptr<SpecialCaseList> SCL(new SpecialCaseList());
81 std::unique_ptr<SpecialCaseList> SpecialCaseList::create(const MemoryBuffer *MB,
83 std::unique_ptr<SpecialCaseList> SCL(new SpecialCaseList());
89 std::unique_ptr<SpecialCaseList>
101 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
178 std::unique_ptr<Matcher> M = std::make_unique<Matcher>();
lib/Support/Statistic.cpp 235 std::unique_ptr<raw_ostream> OutStream = CreateInfoOutputFile();
lib/Support/TarWriter.cpp 159 Expected<std::unique_ptr<TarWriter>> TarWriter::create(StringRef OutputPath,
lib/Support/Timer.cpp 58 std::unique_ptr<raw_fd_ostream> llvm::CreateInfoOutputFile() {
286 std::unique_ptr<raw_ostream> OutStream = CreateInfoOutputFile();
lib/Support/Unix/Threading.inc 52 std::unique_ptr<AsyncThreadInfo> Info(static_cast<AsyncThreadInfo *>(Arg));
lib/Support/VirtualFileSystem.cpp 114 ErrorOr<std::unique_ptr<MemoryBuffer>>
191 ErrorOr<std::unique_ptr<MemoryBuffer>> getBuffer(const Twine &Name,
217 ErrorOr<std::unique_ptr<MemoryBuffer>>
256 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override;
296 ErrorOr<std::unique_ptr<File>>
351 std::unique_ptr<FileSystem> vfs::createPhysicalFileSystem() {
410 ErrorOr<std::unique_ptr<File>>
549 std::unique_ptr<llvm::MemoryBuffer> Buffer;
552 InMemoryFile(Status Stat, std::unique_ptr<llvm::MemoryBuffer> Buffer)
610 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
624 llvm::StringMap<std::unique_ptr<InMemoryNode>> Entries;
643 InMemoryNode *addChild(StringRef Name, std::unique_ptr<InMemoryNode> Child) {
693 std::unique_ptr<llvm::MemoryBuffer> Buffer,
730 std::unique_ptr<detail::InMemoryNode> Child;
784 std::unique_ptr<llvm::MemoryBuffer> Buffer,
869 llvm::ErrorOr<std::unique_ptr<File>>
1128 for (std::unique_ptr<Entry> &SubEntry :
1227 for (std::unique_ptr<RedirectingFileSystem::Entry> &Content :
1238 std::unique_ptr<RedirectingFileSystem::Entry> E =
1268 for (std::unique_ptr<RedirectingFileSystem::Entry> &SubEntry :
1286 std::unique_ptr<RedirectingFileSystem::Entry>
1305 std::vector<std::unique_ptr<RedirectingFileSystem::Entry>>
1367 if (std::unique_ptr<RedirectingFileSystem::Entry> E =
1447 std::unique_ptr<RedirectingFileSystem::Entry> Result;
1471 std::vector<std::unique_ptr<RedirectingFileSystem::Entry>> Entries;
1504 std::vector<std::unique_ptr<RedirectingFileSystem::Entry>> RootEntries;
1524 if (std::unique_ptr<RedirectingFileSystem::Entry> E =
1582 RedirectingFileSystem::create(std::unique_ptr<MemoryBuffer> Buffer,
1599 std::unique_ptr<RedirectingFileSystem> FS(
1691 for (const std::unique_ptr<RedirectingFileSystem::Entry> &DirEntry :
1742 std::unique_ptr<File> InnerFile;
1746 FileWithFixedStatus(std::unique_ptr<File> InnerFile, Status S)
1750 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
1763 ErrorOr<std::unique_ptr<File>>
1816 vfs::getVFSFromYAML(std::unique_ptr<MemoryBuffer> Buffer,
1832 for (std::unique_ptr<RedirectingFileSystem::Entry> &SubEntry :
1850 void vfs::collectVFSFromYAML(std::unique_ptr<MemoryBuffer> Buffer,
lib/Support/YAMLParser.cpp 779 std::unique_ptr<MemoryBuffer> InputBufferOwner =
1801 Node::Node(unsigned int Type, std::unique_ptr<Document> &D, StringRef A,
lib/Support/YAMLTraits.cpp 372 std::unique_ptr<Input::HNode> Input::createHNodes(Node *N) {
lib/TableGen/Main.cpp 87 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
lib/TableGen/SetTheory.cpp 270 void SetTheory::addOperator(StringRef Name, std::unique_ptr<Operator> Op) {
274 void SetTheory::addExpander(StringRef ClassName, std::unique_ptr<Expander> E) {
lib/TableGen/TGLexer.h 209 std::vector<std::unique_ptr<std::vector<PreprocessorControlDesc>>>
lib/TableGen/TGParser.cpp 437 bool TGParser::addDefOne(std::unique_ptr<Record> Rec) {
1330 std::unique_ptr<Record> ParseRecTmp;
1597 std::unique_ptr<Record> ParseRecTmp;
2699 std::unique_ptr<Record> CurRec;
2809 std::unique_ptr<ForeachLoop> Loop = std::move(Loops.back());
lib/TableGen/TGParser.h 46 std::unique_ptr<Record> Rec;
47 std::unique_ptr<ForeachLoop> Loop;
52 RecordsEntry(std::unique_ptr<Record> Rec) : Rec(std::move(Rec)) {}
53 RecordsEntry(std::unique_ptr<ForeachLoop> Loop)
90 std::map<std::string, std::unique_ptr<MultiClass>> MultiClasses;
94 std::vector<std::unique_ptr<ForeachLoop>> Loops;
154 bool addDefOne(std::unique_ptr<Record> Rec);
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp 144 std::vector<std::unique_ptr<Chain>> &AllChains);
341 std::vector<std::unique_ptr<Chain>> AllChains;
602 std::vector<std::unique_ptr<Chain>> &AllChains) {
lib/Target/AArch64/AArch64AsmPrinter.cpp 75 AArch64AsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
269 std::unique_ptr<MCSubtargetInfo> STI(
lib/Target/AArch64/AArch64MacroFusion.cpp 408 std::unique_ptr<ScheduleDAGMutation> createAArch64MacroFusionDAGMutation () {
lib/Target/AArch64/AArch64MacroFusion.h 21 std::unique_ptr<ScheduleDAGMutation> createAArch64MacroFusionDAGMutation();
lib/Target/AArch64/AArch64StackTagging.cpp 587 std::unique_ptr<DominatorTree> DeleteDT;
598 std::unique_ptr<PostDominatorTree> DeletePDT;
lib/Target/AArch64/AArch64Subtarget.cpp 292 std::unique_ptr<PBQPRAConstraint>
lib/Target/AArch64/AArch64Subtarget.h 224 std::unique_ptr<CallLowering> CallLoweringInfo;
225 std::unique_ptr<InstructionSelector> InstSelector;
226 std::unique_ptr<LegalizerInfo> Legalizer;
227 std::unique_ptr<RegisterBankInfo> RegBankInfo;
479 std::unique_ptr<PBQPRAConstraint> getCustomPBQPConstraints() const override;
lib/Target/AArch64/AArch64TargetMachine.cpp 192 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
400 std::unique_ptr<CSEConfigBase> getCSEConfig() const override;
414 std::unique_ptr<CSEConfigBase> AArch64PassConfig::getCSEConfig() const {
lib/Target/AArch64/AArch64TargetMachine.h 27 std::unique_ptr<TargetLoweringObjectFile> TLOF;
28 mutable StringMap<std::unique_ptr<AArch64Subtarget>> SubtargetMap;
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 1801 static std::unique_ptr<AArch64Operand>
1812 static std::unique_ptr<AArch64Operand>
1831 static std::unique_ptr<AArch64Operand>
1846 static std::unique_ptr<AArch64Operand>
1861 static std::unique_ptr<AArch64Operand>
1870 static std::unique_ptr<AArch64Operand> CreateImm(const MCExpr *Val, SMLoc S,
1879 static std::unique_ptr<AArch64Operand> CreateShiftedImm(const MCExpr *Val,
1891 static std::unique_ptr<AArch64Operand>
1900 static std::unique_ptr<AArch64Operand>
1910 static std::unique_ptr<AArch64Operand> CreateBarrier(unsigned Val,
1923 static std::unique_ptr<AArch64Operand> CreateSysReg(StringRef Str, SMLoc S,
1939 static std::unique_ptr<AArch64Operand> CreateSysCR(unsigned Val, SMLoc S,
1948 static std::unique_ptr<AArch64Operand> CreatePrefetch(unsigned Val,
1961 static std::unique_ptr<AArch64Operand> CreatePSBHint(unsigned Val,
1974 static std::unique_ptr<AArch64Operand> CreateBTIHint(unsigned Val,
1987 static std::unique_ptr<AArch64Operand>
3488 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> ExtOpnd;
5699 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> ExtOpnd;
lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp 276 std::unique_ptr<MCRelocationInfo> &&RelInfo) {
lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.h 23 std::unique_ptr<MCRelocationInfo> RelInfo,
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp 546 std::unique_ptr<MCObjectTargetWriter>
709 std::unique_ptr<MCObjectTargetWriter>
723 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp 449 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp 77 AArch64ELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
78 std::unique_ptr<MCObjectWriter> OW,
79 std::unique_ptr<MCCodeEmitter> Emitter)
205 std::unique_ptr<MCAsmBackend> TAB,
206 std::unique_ptr<MCObjectWriter> OW,
207 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.h 21 std::unique_ptr<MCAsmBackend> TAB,
22 std::unique_ptr<MCObjectWriter> OW,
23 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp 277 std::unique_ptr<MCAsmBackend> &&TAB,
278 std::unique_ptr<MCObjectWriter> &&OW,
279 std::unique_ptr<MCCodeEmitter> &&Emitter,
286 std::unique_ptr<MCAsmBackend> &&TAB,
287 std::unique_ptr<MCObjectWriter> &&OW,
288 std::unique_ptr<MCCodeEmitter> &&Emitter,
297 createWinCOFFStreamer(MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB,
298 std::unique_ptr<MCObjectWriter> &&OW,
299 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll,
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h 51 std::unique_ptr<MCObjectTargetWriter>
54 std::unique_ptr<MCObjectTargetWriter>
58 std::unique_ptr<MCObjectTargetWriter> createAArch64WinCOFFObjectWriter();
lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp 406 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h 58 std::unique_ptr<AssemblerConstantPools> ConstantPools;
lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFObjectWriter.cpp 122 std::unique_ptr<MCObjectTargetWriter> createAArch64WinCOFFObjectWriter() {
lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp 24 AArch64WinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB,
25 std::unique_ptr<MCCodeEmitter> CE,
26 std::unique_ptr<MCObjectWriter> OW)
192 MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
193 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
193 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.h 22 MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
23 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
23 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/AMDGPU/AMDGPUAliasAnalysis.h 74 std::unique_ptr<AMDGPUAAResult> Result;
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp 90 std::unique_ptr<MCStreamer> &&Streamer) {
102 std::unique_ptr<MCStreamer> Streamer)
lib/Target/AMDGPU/AMDGPUAsmPrinter.h 61 std::unique_ptr<AMDGPU::HSAMD::MetadataStreamer> HSAMetadataStream;
98 std::unique_ptr<MCStreamer> Streamer);
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h 54 std::unique_ptr<msgpack::Document> HSAMetadataDoc =
lib/Target/AMDGPU/AMDGPULibFunc.h 403 std::unique_ptr<AMDGPULibFuncImpl> Impl;
lib/Target/AMDGPU/AMDGPUMacroFusion.cpp 63 std::unique_ptr<ScheduleDAGMutation> createAMDGPUMacroFusionDAGMutation () {
lib/Target/AMDGPU/AMDGPUMacroFusion.h 16 std::unique_ptr<ScheduleDAGMutation> createAMDGPUMacroFusionDAGMutation();
lib/Target/AMDGPU/AMDGPUSubtarget.cpp 889 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
lib/Target/AMDGPU/AMDGPUSubtarget.h 275 std::unique_ptr<AMDGPUCallLowering> CallLoweringInfo;
276 std::unique_ptr<InstructionSelector> InstSelector;
277 std::unique_ptr<LegalizerInfo> Legalizer;
278 std::unique_ptr<RegisterBankInfo> RegBankInfo;
1168 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations)
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp 246 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
572 std::unique_ptr<CSEConfigBase> getCSEConfig() const override;
575 std::unique_ptr<CSEConfigBase> AMDGPUPassConfig::getCSEConfig() const {
lib/Target/AMDGPU/AMDGPUTargetMachine.h 34 std::unique_ptr<TargetLoweringObjectFile> TLOF;
71 mutable StringMap<std::unique_ptr<R600Subtarget>> SubtargetMap;
96 mutable StringMap<std::unique_ptr<GCNSubtarget>> SubtargetMap;
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp 93 using Ptr = std::unique_ptr<AMDGPUOperand>;
1229 std::unique_ptr<AMDGPUOperand> parseRegister();
2316 std::unique_ptr<AMDGPUOperand> AMDGPUAsmParser::parseRegister() {
2648 std::unique_ptr<AMDGPUOperand> Reg = parseRegister();
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp 1255 std::unique_ptr<MCRelocationInfo> &&RelInfo) {
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h 42 std::unique_ptr<MCInstrInfo const> const MCII;
155 AMDGPUSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> &&RelInfo,
lib/Target/AMDGPU/GCNIterativeScheduler.cpp 177 std::unique_ptr<MachineSchedStrategy> SaveSchedImpl;
lib/Target/AMDGPU/GCNIterativeScheduler.h 68 std::unique_ptr<TentativeSchedule> BestSchedule;
lib/Target/AMDGPU/GCNSchedStrategy.cpp 313 std::unique_ptr<MachineSchedStrategy> S) :
lib/Target/AMDGPU/GCNSchedStrategy.h 108 std::unique_ptr<MachineSchedStrategy> S);
lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp 225 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFObjectWriter.cpp 86 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFStreamer.cpp 23 std::unique_ptr<MCAsmBackend> MAB,
24 std::unique_ptr<MCObjectWriter> OW,
25 std::unique_ptr<MCCodeEmitter> Emitter)
33 const Triple &T, MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
34 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
34 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFStreamer.h 26 std::unique_ptr<MCAsmBackend> MAB,
27 std::unique_ptr<MCObjectWriter> OW,
28 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.cpp 100 std::unique_ptr<MCAsmBackend> &&MAB,
101 std::unique_ptr<MCObjectWriter> &&OW,
102 std::unique_ptr<MCCodeEmitter> &&Emitter,
lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h 50 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AMDGPU/R600AsmPrinter.cpp 32 std::unique_ptr<MCStreamer> &&Streamer) {
37 std::unique_ptr<MCStreamer> Streamer)
lib/Target/AMDGPU/R600AsmPrinter.h 25 std::unique_ptr<MCStreamer> Streamer);
41 std::unique_ptr<MCStreamer> &&Streamer);
lib/Target/AMDGPU/SIInsertWaitcnts.cpp 379 std::unique_ptr<WaitcntBrackets> Incoming;
1486 std::unique_ptr<WaitcntBrackets> Brackets;
lib/Target/AMDGPU/SIMachineFunctionInfo.h 364 std::unique_ptr<const AMDGPUBufferPseudoSourceValue>> BufferPSVs;
366 std::unique_ptr<const AMDGPUImagePseudoSourceValue>> ImagePSVs;
367 std::unique_ptr<const AMDGPUGWSResourcePseudoSourceValue> GWSResourcePSV;
lib/Target/AMDGPU/SIMachineScheduler.h 228 std::vector<std::unique_ptr<SIScheduleBlock>> BlockPtrs;
lib/Target/AMDGPU/SIMemoryLegalizer.cpp 262 static std::unique_ptr<SICacheControl> create(const GCNSubtarget &ST);
393 std::unique_ptr<SICacheControl> CC = nullptr;
656 std::unique_ptr<SICacheControl> SICacheControl::create(const GCNSubtarget &ST) {
lib/Target/AMDGPU/SIModeRegister.cpp 122 std::vector<std::unique_ptr<BlockData>> BlockInfo;
lib/Target/AMDGPU/SIPeepholeSDWA.cpp 76 std::unordered_map<MachineInstr *, std::unique_ptr<SDWAOperand>> SDWAOperands;
91 std::unique_ptr<SDWAOperand> matchSDWAOperand(MachineInstr &MI);
549 std::unique_ptr<SDWAOperand>
lib/Target/ARC/ARCAsmPrinter.cpp 39 std::unique_ptr<MCStreamer> Streamer)
lib/Target/ARC/ARCTargetMachine.h 24 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/ARC/Disassembler/ARCDisassembler.cpp 37 std::unique_ptr<MCInstrInfo const> const MCII;
lib/Target/ARM/ARMAsmPrinter.cpp 56 std::unique_ptr<MCStreamer> Streamer)
lib/Target/ARM/ARMAsmPrinter.h 70 std::unique_ptr<MCStreamer> Streamer);
lib/Target/ARM/ARMConstantIslandPass.cpp 103 std::unique_ptr<ARMBasicBlockUtils> BBUtils = nullptr;
lib/Target/ARM/ARMLowOverheadLoops.cpp 40 std::unique_ptr<ARMBasicBlockUtils> BBUtils = nullptr;
lib/Target/ARM/ARMMacroFusion.cpp 65 std::unique_ptr<ScheduleDAGMutation> createARMMacroFusionDAGMutation () {
lib/Target/ARM/ARMMacroFusion.h 24 std::unique_ptr<ScheduleDAGMutation> createARMMacroFusionDAGMutation();
lib/Target/ARM/ARMParallelDSP.cpp 54 using MulCandList = SmallVector<std::unique_ptr<MulCandidate>, 8>;
220 std::map<LoadInst*, std::unique_ptr<WidenedLoad>> WideLoads;
lib/Target/ARM/ARMSubtarget.h 549 std::unique_ptr<ARMFrameLowering> FrameLowering;
551 std::unique_ptr<ARMBaseInstrInfo> InstrInfo;
555 std::unique_ptr<CallLowering> CallLoweringInfo;
556 std::unique_ptr<InstructionSelector> InstSelector;
557 std::unique_ptr<LegalizerInfo> Legalizer;
558 std::unique_ptr<RegisterBankInfo> RegBankInfo;
lib/Target/ARM/ARMTargetMachine.cpp 104 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
370 std::unique_ptr<CSEConfigBase> getCSEConfig() const override;
395 std::unique_ptr<CSEConfigBase> ARMPassConfig::getCSEConfig() const {
lib/Target/ARM/ARMTargetMachine.h 37 std::unique_ptr<TargetLoweringObjectFile> TLOF;
39 mutable StringMap<std::unique_ptr<ARMSubtarget>> SubtargetMap;
lib/Target/ARM/AsmParser/ARMAsmParser.cpp 3382 static std::unique_ptr<ARMOperand> CreateITMask(unsigned Mask, SMLoc S) {
3390 static std::unique_ptr<ARMOperand> CreateCondCode(ARMCC::CondCodes CC,
3399 static std::unique_ptr<ARMOperand> CreateVPTPred(ARMVCC::VPTCodes CC,
3408 static std::unique_ptr<ARMOperand> CreateCoprocNum(unsigned CopVal, SMLoc S) {
3416 static std::unique_ptr<ARMOperand> CreateCoprocReg(unsigned CopVal, SMLoc S) {
3424 static std::unique_ptr<ARMOperand> CreateCoprocOption(unsigned Val, SMLoc S,
3433 static std::unique_ptr<ARMOperand> CreateCCOut(unsigned RegNum, SMLoc S) {
3441 static std::unique_ptr<ARMOperand> CreateToken(StringRef Str, SMLoc S) {
3450 static std::unique_ptr<ARMOperand> CreateReg(unsigned RegNum, SMLoc S,
3459 static std::unique_ptr<ARMOperand>
3473 static std::unique_ptr<ARMOperand>
3485 static std::unique_ptr<ARMOperand> CreateShifterImm(bool isASR, unsigned Imm,
3495 static std::unique_ptr<ARMOperand> CreateRotImm(unsigned Imm, SMLoc S,
3504 static std::unique_ptr<ARMOperand> CreateModImm(unsigned Bits, unsigned Rot,
3514 static std::unique_ptr<ARMOperand>
3523 static std::unique_ptr<ARMOperand>
3533 static std::unique_ptr<ARMOperand>
3568 static std::unique_ptr<ARMOperand> CreateVectorList(unsigned RegNum,
3581 static std::unique_ptr<ARMOperand>
3593 static std::unique_ptr<ARMOperand>
3606 static std::unique_ptr<ARMOperand>
3615 static std::unique_ptr<ARMOperand> CreateImm(const MCExpr *Val, SMLoc S,
3624 static std::unique_ptr<ARMOperand>
3643 static std::unique_ptr<ARMOperand>
3656 static std::unique_ptr<ARMOperand> CreateMemBarrierOpt(ARM_MB::MemBOpt Opt,
3665 static std::unique_ptr<ARMOperand>
3674 static std::unique_ptr<ARMOperand>
3683 static std::unique_ptr<ARMOperand> CreateProcIFlags(ARM_PROC::IFlags IFlags,
3692 static std::unique_ptr<ARMOperand> CreateMSRMask(unsigned MMask, SMLoc S) {
3700 static std::unique_ptr<ARMOperand> CreateBankedReg(unsigned Reg, SMLoc S) {
3973 std::unique_ptr<ARMOperand> PrevOp(
11160 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> Operands;
lib/Target/ARM/MCTargetDesc/ARMAsmBackendDarwin.h 25 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h 26 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMAsmBackendWinCOFF.h 21 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp 264 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp 443 ARMELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
444 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
444 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
692 DenseMap<const MCSection *, std::unique_ptr<ElfMappingSymbolInfo>>
695 std::unique_ptr<ElfMappingSymbolInfo> LastEMSInfo;
1504 std::unique_ptr<MCAsmBackend> TAB,
1505 std::unique_ptr<MCObjectWriter> OW,
1506 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp 209 std::unique_ptr<MCAsmBackend> &&MAB,
210 std::unique_ptr<MCObjectWriter> &&OW,
211 std::unique_ptr<MCCodeEmitter> &&Emitter,
219 createARMMachOStreamer(MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&MAB,
220 std::unique_ptr<MCObjectWriter> &&OW,
221 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll,
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h 78 std::unique_ptr<MCAsmBackend> &&MAB,
79 std::unique_ptr<MCObjectWriter> &&OW,
80 std::unique_ptr<MCCodeEmitter> &&Emitter,
85 std::unique_ptr<MCObjectTargetWriter> createARMELFObjectWriter(uint8_t OSABI);
88 std::unique_ptr<MCObjectTargetWriter>
93 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp 506 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMWinCOFFObjectWriter.cpp 93 std::unique_ptr<MCObjectTargetWriter>
lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp 20 ARMWinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB,
21 std::unique_ptr<MCCodeEmitter> CE,
22 std::unique_ptr<MCObjectWriter> OW)
41 MCContext &Context, std::unique_ptr<MCAsmBackend> &&MAB,
42 std::unique_ptr<MCObjectWriter> &&OW,
43 std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll,
lib/Target/AVR/AVRAsmPrinter.cpp 41 std::unique_ptr<MCStreamer> Streamer)
lib/Target/AVR/AVRTargetMachine.h 50 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/AVR/AsmParser/AVRAsmParser.cpp 201 static std::unique_ptr<AVROperand> CreateToken(StringRef Str, SMLoc S) {
205 static std::unique_ptr<AVROperand> CreateReg(unsigned RegNum, SMLoc S,
210 static std::unique_ptr<AVROperand> CreateImm(const MCExpr *Val, SMLoc S,
215 static std::unique_ptr<AVROperand>
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp 354 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h 39 std::unique_ptr<MCObjectTargetWriter>
lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp 154 std::unique_ptr<MCObjectTargetWriter> createAVRELFObjectWriter(uint8_t OSABI) {
lib/Target/AVR/MCTargetDesc/AVRMCELFStreamer.cpp 45 std::unique_ptr<MCAsmBackend> MAB,
46 std::unique_ptr<MCObjectWriter> OW,
47 std::unique_ptr<MCCodeEmitter> CE) {
lib/Target/AVR/MCTargetDesc/AVRMCELFStreamer.h 26 std::unique_ptr<MCInstrInfo> MCII;
29 AVRMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
30 std::unique_ptr<MCObjectWriter> OW,
31 std::unique_ptr<MCCodeEmitter> Emitter)
36 AVRMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
37 std::unique_ptr<MCObjectWriter> OW,
38 std::unique_ptr<MCCodeEmitter> Emitter,
50 std::unique_ptr<MCAsmBackend> MAB,
51 std::unique_ptr<MCObjectWriter> OW,
52 std::unique_ptr<MCCodeEmitter> CE);
lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp 72 std::unique_ptr<MCAsmBackend> &&MAB,
73 std::unique_ptr<MCObjectWriter> &&OW,
74 std::unique_ptr<MCCodeEmitter> &&Emitter,
lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.h 48 std::unique_ptr<MCObjectTargetWriter> createAVRELFObjectWriter(uint8_t OSABI);
lib/Target/BPF/AsmParser/BPFAsmParser.cpp 196 static std::unique_ptr<BPFOperand> createToken(StringRef Str, SMLoc S) {
204 static std::unique_ptr<BPFOperand> createReg(unsigned RegNo, SMLoc S,
213 static std::unique_ptr<BPFOperand> createImm(const MCExpr *Val, SMLoc S,
lib/Target/BPF/BPFAsmPrinter.cpp 40 std::unique_ptr<MCStreamer> Streamer)
lib/Target/BPF/BPFTargetMachine.h 21 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/BPF/BTFDebug.cpp 388 uint32_t BTFDebug::addType(std::unique_ptr<BTFTypeBase> TypeEntry,
397 uint32_t BTFDebug::addType(std::unique_ptr<BTFTypeBase> TypeEntry) {
679 std::unique_ptr<MemoryBuffer> Buf;
683 else if (ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
lib/Target/BPF/BTFDebug.h 243 std::vector<std::unique_ptr<BTFTypeBase>> TypeEntries;
249 std::map<std::string, std::unique_ptr<BTFKindDataSec>> DataSecEntries;
258 uint32_t addType(std::unique_ptr<BTFTypeBase> TypeEntry, const DIType *Ty);
260 uint32_t addType(std::unique_ptr<BTFTypeBase> TypeEntry);
lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp 34 std::unique_ptr<MCObjectTargetWriter>
102 std::unique_ptr<MCObjectTargetWriter>
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp 86 std::unique_ptr<MCObjectTargetWriter>
lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp 53 std::unique_ptr<MCAsmBackend> &&MAB,
54 std::unique_ptr<MCObjectWriter> &&OW,
55 std::unique_ptr<MCCodeEmitter> &&Emitter,
lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.h 50 std::unique_ptr<MCObjectTargetWriter> createBPFELFObjectWriter(uint8_t OSABI);
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp 418 static std::unique_ptr<HexagonOperand> CreateToken(MCContext &Context,
428 static std::unique_ptr<HexagonOperand>
437 static std::unique_ptr<HexagonOperand>
1203 std::unique_ptr<HexagonOperand> Operand =
lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp 45 std::unique_ptr<MCInstrInfo const> const MCII;
46 std::unique_ptr<MCInst *> CurrentBundle;
lib/Target/Hexagon/HexagonAsmPrinter.h 34 std::unique_ptr<MCStreamer> Streamer)
lib/Target/Hexagon/HexagonInstrInfo.cpp 754 std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
lib/Target/Hexagon/HexagonInstrInfo.h 134 std::unique_ptr<PipelinerLoopInfo>
lib/Target/Hexagon/HexagonMachineScheduler.h 92 std::unique_ptr<MachineSchedStrategy> S)
lib/Target/Hexagon/HexagonSubtarget.cpp 376 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
383 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
lib/Target/Hexagon/HexagonSubtarget.h 201 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations)
205 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations)
lib/Target/Hexagon/HexagonTargetMachine.h 26 std::unique_ptr<TargetLoweringObjectFile> TLOF;
27 mutable StringMap<std::unique_ptr<HexagonSubtarget>> SubtargetMap;
lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp 43 std::unique_ptr <MCInstrInfo> MCII;
44 std::unique_ptr <MCInst *> RelaxTarget;
67 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Hexagon/MCTargetDesc/HexagonELFObjectWriter.cpp 300 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp 49 MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
50 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter)
50 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter)
55 MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
56 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
56 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
153 std::unique_ptr<MCAsmBackend> MAB,
154 std::unique_ptr<MCObjectWriter> OW,
155 std::unique_ptr<MCCodeEmitter> CE) {
lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.h 21 std::unique_ptr<MCInstrInfo> MCII;
24 HexagonMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
25 std::unique_ptr<MCObjectWriter> OW,
26 std::unique_ptr<MCCodeEmitter> Emitter);
28 HexagonMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
29 std::unique_ptr<MCObjectWriter> OW,
30 std::unique_ptr<MCCodeEmitter> Emitter,
43 std::unique_ptr<MCAsmBackend> MAB,
44 std::unique_ptr<MCObjectWriter> OW,
45 std::unique_ptr<MCCodeEmitter> CE);
lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp 254 std::unique_ptr<MCAsmBackend> &&MAB,
255 std::unique_ptr<MCObjectWriter> &&OW,
256 std::unique_ptr<MCCodeEmitter> &&Emitter,
lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h 93 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp 50 std::unique_ptr<LanaiOperand> parseRegister();
52 std::unique_ptr<LanaiOperand> parseImmediate();
54 std::unique_ptr<LanaiOperand> parseIdentifier();
583 static std::unique_ptr<LanaiOperand> CreateToken(StringRef Str, SMLoc Start) {
592 static std::unique_ptr<LanaiOperand> createReg(unsigned RegNum, SMLoc Start,
601 static std::unique_ptr<LanaiOperand> createImm(const MCExpr *Value,
610 static std::unique_ptr<LanaiOperand>
611 MorphToMemImm(std::unique_ptr<LanaiOperand> Op) {
621 static std::unique_ptr<LanaiOperand>
622 MorphToMemRegReg(unsigned BaseReg, std::unique_ptr<LanaiOperand> Op,
633 static std::unique_ptr<LanaiOperand>
634 MorphToMemRegImm(unsigned BaseReg, std::unique_ptr<LanaiOperand> Op,
690 std::unique_ptr<LanaiOperand> LanaiAsmParser::parseRegister() {
713 std::unique_ptr<LanaiOperand> Op = parseRegister();
719 std::unique_ptr<LanaiOperand> LanaiAsmParser::parseIdentifier() {
777 std::unique_ptr<LanaiOperand> LanaiAsmParser::parseImmediate() {
890 std::unique_ptr<LanaiOperand> Op = parseRegister();
907 std::unique_ptr<LanaiOperand> Offset = nullptr;
1014 std::unique_ptr<LanaiOperand> Op = parseRegister();
lib/Target/Lanai/LanaiAsmPrinter.cpp 46 std::unique_ptr<MCStreamer> Streamer)
lib/Target/Lanai/LanaiTargetMachine.h 29 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/Lanai/MCTargetDesc/LanaiAsmBackend.cpp 56 std::unique_ptr<MCObjectTargetWriter>
132 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Lanai/MCTargetDesc/LanaiELFObjectWriter.cpp 89 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Lanai/MCTargetDesc/LanaiMCTargetDesc.cpp 63 std::unique_ptr<MCAsmBackend> &&MAB,
64 std::unique_ptr<MCObjectWriter> &&OW,
65 std::unique_ptr<MCCodeEmitter> &&Emitter,
lib/Target/Lanai/MCTargetDesc/LanaiMCTargetDesc.h 42 std::unique_ptr<MCObjectTargetWriter> createLanaiELFObjectWriter(uint8_t OSABI);
lib/Target/MSP430/AsmParser/MSP430AsmParser.cpp 193 static std::unique_ptr<MSP430Operand> CreateToken(StringRef Str, SMLoc S) {
197 static std::unique_ptr<MSP430Operand> CreateReg(unsigned RegNum, SMLoc S,
202 static std::unique_ptr<MSP430Operand> CreateImm(const MCExpr *Val, SMLoc S,
207 static std::unique_ptr<MSP430Operand> CreateMem(unsigned RegNum,
213 static std::unique_ptr<MSP430Operand> CreateIndReg(unsigned RegNum, SMLoc S,
218 static std::unique_ptr<MSP430Operand> CreatePostIndReg(unsigned RegNum, SMLoc S,
lib/Target/MSP430/MCTargetDesc/MSP430AsmBackend.cpp 45 std::unique_ptr<MCObjectTargetWriter>
lib/Target/MSP430/MCTargetDesc/MSP430ELFObjectWriter.cpp 55 std::unique_ptr<MCObjectTargetWriter>
lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h 45 std::unique_ptr<MCObjectTargetWriter>
lib/Target/MSP430/MSP430AsmPrinter.cpp 44 MSP430AsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
lib/Target/MSP430/MSP430TargetMachine.h 26 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/Mips/AsmParser/MipsAsmParser.cpp 141 SmallVector<std::unique_ptr<MipsAssemblerOptions>, 2> AssemblerOptions;
848 static std::unique_ptr<MipsOperand> CreateReg(unsigned Index, StringRef Str,
1453 static std::unique_ptr<MipsOperand> CreateToken(StringRef Str, SMLoc S,
1465 static std::unique_ptr<MipsOperand>
1474 static std::unique_ptr<MipsOperand>
1482 static std::unique_ptr<MipsOperand>
1490 static std::unique_ptr<MipsOperand>
1498 static std::unique_ptr<MipsOperand>
1506 static std::unique_ptr<MipsOperand>
1514 static std::unique_ptr<MipsOperand>
1522 static std::unique_ptr<MipsOperand>
1528 static std::unique_ptr<MipsOperand>
1537 static std::unique_ptr<MipsOperand>
1538 CreateMem(std::unique_ptr<MipsOperand> Base, const MCExpr *Off, SMLoc S,
1548 static std::unique_ptr<MipsOperand>
6073 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> Operands;
6222 std::unique_ptr<MipsOperand> op(
6464 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 8> TmpOperands;
7294 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> Reg;
7323 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> Reg;
7402 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> TmpReg;
8286 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 1> TmpReg;
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp 218 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h 40 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp 688 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp 26 std::unique_ptr<MCAsmBackend> MAB,
27 std::unique_ptr<MCObjectWriter> OW,
28 std::unique_ptr<MCCodeEmitter> Emitter)
116 MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
117 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
117 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h 31 SmallVector<std::unique_ptr<MipsOptionRecord>, 8> MipsOptionRecords;
36 MipsELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
37 std::unique_ptr<MCObjectWriter> OW,
38 std::unique_ptr<MCCodeEmitter> Emitter);
76 std::unique_ptr<MCAsmBackend> MAB,
77 std::unique_ptr<MCObjectWriter> OW,
78 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/Mips/MCTargetDesc/MipsMCNaCl.h 26 std::unique_ptr<MCAsmBackend> TAB,
27 std::unique_ptr<MCObjectWriter> OW,
28 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp 104 std::unique_ptr<MCAsmBackend> &&MAB,
105 std::unique_ptr<MCObjectWriter> &&OW,
106 std::unique_ptr<MCCodeEmitter> &&Emitter,
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.h 46 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Mips/MCTargetDesc/MipsNaClELFStreamer.cpp 45 MipsNaClELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
46 std::unique_ptr<MCObjectWriter> OW,
47 std::unique_ptr<MCCodeEmitter> Emitter)
263 std::unique_ptr<MCAsmBackend> TAB,
264 std::unique_ptr<MCObjectWriter> OW,
265 std::unique_ptr<MCCodeEmitter> Emitter,
lib/Target/Mips/MipsAsmPrinter.cpp 980 std::unique_ptr<MCSubtargetInfo> STI(TM.getTarget().createMCSubtargetInfo(
lib/Target/Mips/MipsAsmPrinter.h 122 std::unique_ptr<MCStreamer> Streamer)
lib/Target/Mips/MipsDelaySlotFiller.cpp 798 std::unique_ptr<InspectMemInstr> IM;
lib/Target/Mips/MipsSubtarget.h 213 std::unique_ptr<const MipsInstrInfo> InstrInfo;
214 std::unique_ptr<const MipsFrameLowering> FrameLowering;
215 std::unique_ptr<const MipsTargetLowering> TLInfo;
390 std::unique_ptr<CallLowering> CallLoweringInfo;
391 std::unique_ptr<LegalizerInfo> Legalizer;
392 std::unique_ptr<RegisterBankInfo> RegBankInfo;
393 std::unique_ptr<InstructionSelector> InstSelector;
lib/Target/Mips/MipsTargetMachine.cpp 247 std::unique_ptr<CSEConfigBase> getCSEConfig() const override;
256 std::unique_ptr<CSEConfigBase> MipsPassConfig::getCSEConfig() const {
lib/Target/Mips/MipsTargetMachine.h 29 std::unique_ptr<TargetLoweringObjectFile> TLOF;
37 mutable StringMap<std::unique_ptr<MipsSubtarget>> SubtargetMap;
lib/Target/NVPTX/NVPTXAsmPrinter.h 291 NVPTXAsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
lib/Target/NVPTX/NVPTXTargetMachine.h 30 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 580 static std::unique_ptr<PPCOperand> CreateToken(StringRef Str, SMLoc S,
591 static std::unique_ptr<PPCOperand>
599 std::unique_ptr<PPCOperand> Op(new (Mem) PPCOperand(Token));
609 static std::unique_ptr<PPCOperand> CreateImm(int64_t Val, SMLoc S, SMLoc E,
619 static std::unique_ptr<PPCOperand> CreateExpr(const MCExpr *Val, SMLoc S,
630 static std::unique_ptr<PPCOperand>
640 static std::unique_ptr<PPCOperand>
650 static std::unique_ptr<PPCOperand>
lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp 208 std::unique_ptr<MCObjectTargetWriter>
222 std::unique_ptr<MCObjectTargetWriter>
237 std::unique_ptr<MCObjectTargetWriter>
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp 444 std::unique_ptr<MCObjectTargetWriter>
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h 48 std::unique_ptr<MCObjectTargetWriter> createPPCELFObjectWriter(bool Is64Bit,
51 std::unique_ptr<MCObjectTargetWriter>
55 std::unique_ptr<MCObjectTargetWriter> createPPCXCOFFObjectWriter(bool Is64Bit);
lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp 376 std::unique_ptr<MCObjectTargetWriter>
lib/Target/PowerPC/MCTargetDesc/PPCXCOFFObjectWriter.cpp 26 std::unique_ptr<MCObjectTargetWriter>
lib/Target/PowerPC/PPCAsmPrinter.cpp 87 std::unique_ptr<MCStreamer> Streamer)
130 std::unique_ptr<MCStreamer> Streamer)
152 std::unique_ptr<MCStreamer> Streamer)
165 PPCAIXAsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
1832 std::unique_ptr<MCStreamer> &&Streamer) {
lib/Target/PowerPC/PPCISelDAGToDAG.cpp 1208 DenseMap<SDValue, std::unique_ptr<ValueBitsMemoizedValue>>;
lib/Target/PowerPC/PPCInstrInfo.cpp 4227 std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
lib/Target/PowerPC/PPCInstrInfo.h 504 std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
lib/Target/PowerPC/PPCTargetMachine.cpp 187 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
lib/Target/PowerPC/PPCTargetMachine.h 29 std::unique_ptr<TargetLoweringObjectFile> TLOF;
32 mutable StringMap<std::unique_ptr<PPCSubtarget>> SubtargetMap;
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp 634 static std::unique_ptr<RISCVOperand> createToken(StringRef Str, SMLoc S,
644 static std::unique_ptr<RISCVOperand> createReg(unsigned RegNo, SMLoc S,
654 static std::unique_ptr<RISCVOperand> createImm(const MCExpr *Val, SMLoc S,
664 static std::unique_ptr<RISCVOperand>
1305 std::unique_ptr<RISCVOperand> OptionalImmOp;
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp 364 std::unique_ptr<MCObjectTargetWriter>
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h 73 std::unique_ptr<MCObjectTargetWriter>
lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp 139 std::unique_ptr<MCObjectTargetWriter>
lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.h 43 std::unique_ptr<MCObjectTargetWriter> createRISCVELFObjectWriter(uint8_t OSABI,
lib/Target/RISCV/RISCVAsmPrinter.cpp 38 std::unique_ptr<MCStreamer> Streamer)
lib/Target/RISCV/RISCVSubtarget.h 104 std::unique_ptr<CallLowering> CallLoweringInfo;
105 std::unique_ptr<InstructionSelector> InstSelector;
106 std::unique_ptr<LegalizerInfo> Legalizer;
107 std::unique_ptr<RegisterBankInfo> RegBankInfo;
lib/Target/RISCV/RISCVTargetMachine.h 24 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp 86 parseSparcAsmOperand(std::unique_ptr<SparcOperand> &Operand,
378 static std::unique_ptr<SparcOperand> CreateToken(StringRef Str, SMLoc S) {
387 static std::unique_ptr<SparcOperand> CreateReg(unsigned RegNum, unsigned Kind,
397 static std::unique_ptr<SparcOperand> CreateImm(const MCExpr *Val, SMLoc S,
472 static std::unique_ptr<SparcOperand>
473 MorphToMEMrr(unsigned Base, std::unique_ptr<SparcOperand> Op) {
482 static std::unique_ptr<SparcOperand>
493 static std::unique_ptr<SparcOperand>
494 MorphToMEMri(unsigned Base, std::unique_ptr<SparcOperand> Op) {
743 std::unique_ptr<SparcOperand> Offset;
760 std::unique_ptr<SparcOperand> Mask;
848 std::unique_ptr<SparcOperand> Op;
857 std::unique_ptr<SparcOperand> Op;
870 SparcAsmParser::parseSparcAsmOperand(std::unique_ptr<SparcOperand> &Op,
lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp 317 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp 136 std::unique_ptr<MCObjectTargetWriter>
lib/Target/Sparc/MCTargetDesc/SparcMCTargetDesc.h 41 std::unique_ptr<MCObjectTargetWriter> createSparcELFObjectWriter(bool Is64Bit,
lib/Target/Sparc/SparcAsmPrinter.cpp 46 std::unique_ptr<MCStreamer> Streamer)
lib/Target/Sparc/SparcTargetMachine.h 23 std::unique_ptr<TargetLoweringObjectFile> TLOF;
26 mutable StringMap<std::unique_ptr<SparcSubtarget>> SubtargetMap;
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp 156 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc,
161 static std::unique_ptr<SystemZOperand> createToken(StringRef Str, SMLoc Loc) {
168 static std::unique_ptr<SystemZOperand>
176 static std::unique_ptr<SystemZOperand>
183 static std::unique_ptr<SystemZOperand>
200 static std::unique_ptr<SystemZOperand>
1035 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 8> Operands;
lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp 71 std::unique_ptr<MCObjectTargetWriter>
lib/Target/SystemZ/MCTargetDesc/SystemZMCObjectWriter.cpp 163 std::unique_ptr<MCObjectTargetWriter>
lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h 93 std::unique_ptr<MCObjectTargetWriter> createSystemZObjectWriter(uint8_t OSABI);
lib/Target/SystemZ/SystemZAsmPrinter.h 30 SystemZAsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
lib/Target/SystemZ/SystemZTargetMachine.h 28 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp 166 std::vector<std::unique_ptr<wasm::WasmSignature>> Signatures;
226 void addSignature(std::unique_ptr<wasm::WasmSignature> &&Sig) {
lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp 44 std::unique_ptr<const MCInstrInfo> MCII;
57 std::unique_ptr<const MCInstrInfo> MCII)
65 std::unique_ptr<const MCInstrInfo> MCII(T.createMCInstrInfo());
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp 52 std::unique_ptr<MCObjectTargetWriter>
126 std::unique_ptr<MCObjectTargetWriter>
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h 40 std::unique_ptr<MCObjectTargetWriter>
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp 119 std::unique_ptr<MCObjectTargetWriter>
lib/Target/WebAssembly/WebAssemblyAsmPrinter.h 28 std::vector<std::unique_ptr<wasm::WasmSignature>> Signatures;
32 std::unique_ptr<MCStreamer> Streamer)
41 void addSignature(std::unique_ptr<wasm::WasmSignature> &&Sig) {
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp 83 DenseMap<const MachineLoop *, std::unique_ptr<Region>> LoopMap;
84 DenseMap<const WebAssemblyException *, std::unique_ptr<Region>> ExceptionMap;
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp 74 std::unique_ptr<wasm::WasmSignature>
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h 151 std::unique_ptr<wasm::WasmSignature>
lib/Target/WebAssembly/WebAssemblyTargetMachine.h 24 std::unique_ptr<TargetLoweringObjectFile> TLOF;
25 mutable StringMap<std::unique_ptr<WebAssemblySubtarget>> SubtargetMap;
lib/Target/X86/AsmParser/X86AsmParser.cpp 820 std::unique_ptr<X86Operand> DefaultMemSIOperand(SMLoc Loc);
821 std::unique_ptr<X86Operand> DefaultMemDIOperand(SMLoc Loc);
826 std::unique_ptr<llvm::MCParsedAsmOperand> &&Src,
827 std::unique_ptr<llvm::MCParsedAsmOperand> &&Dst);
830 std::unique_ptr<X86Operand> ParseOperand();
831 std::unique_ptr<X86Operand> ParseATTOperand();
832 std::unique_ptr<X86Operand> ParseIntelOperand();
833 std::unique_ptr<X86Operand> ParseIntelOffsetOfOperator();
837 std::unique_ptr<X86Operand> ParseRoundingModeOp(SMLoc Start);
846 std::unique_ptr<X86Operand> ParseMemOperand(unsigned SegReg,
854 std::unique_ptr<X86Operand>
919 bool ParseZ(std::unique_ptr<X86Operand> &Z, const SMLoc &StartLoc);
1217 std::unique_ptr<X86Operand> X86AsmParser::DefaultMemSIOperand(SMLoc Loc) {
1226 std::unique_ptr<X86Operand> X86AsmParser::DefaultMemDIOperand(SMLoc Loc) {
1263 OperandVector& Operands, std::unique_ptr<llvm::MCParsedAsmOperand> &&Src,
1264 std::unique_ptr<llvm::MCParsedAsmOperand> &&Dst) {
1357 std::unique_ptr<X86Operand> X86AsmParser::ParseOperand() {
1363 std::unique_ptr<X86Operand> X86AsmParser::CreateMemForInlineAsm(
1669 std::unique_ptr<X86Operand>
1743 std::unique_ptr<X86Operand> X86AsmParser::ParseIntelOffsetOfOperator() {
1848 std::unique_ptr<X86Operand> X86AsmParser::ParseIntelOperand() {
1959 std::unique_ptr<X86Operand> X86AsmParser::ParseATTOperand() {
2045 bool X86AsmParser::ParseZ(std::unique_ptr<X86Operand> &Z,
2103 std::unique_ptr<X86Operand> Z;
2150 std::unique_ptr<X86Operand> X86AsmParser::ParseMemOperand(unsigned SegReg,
2638 if (std::unique_ptr<X86Operand> Op = ParseOperand()) {
2736 SmallVector<std::unique_ptr<MCParsedAsmOperand>, 2> TmpOperands;
lib/Target/X86/AsmParser/X86Operand.h 582 static std::unique_ptr<X86Operand> CreateToken(StringRef Str, SMLoc Loc) {
590 static std::unique_ptr<X86Operand>
603 static std::unique_ptr<X86Operand>
608 static std::unique_ptr<X86Operand>
615 static std::unique_ptr<X86Operand> CreateImm(const MCExpr *Val,
623 static std::unique_ptr<X86Operand>
643 static std::unique_ptr<X86Operand>
lib/Target/X86/Disassembler/X86Disassembler.cpp 136 std::unique_ptr<const MCInstrInfo> MII;
139 std::unique_ptr<const MCInstrInfo> MII);
155 std::unique_ptr<const MCInstrInfo> MII)
843 std::unique_ptr<const MCInstrInfo> MII(T.createMCInstrInfo());
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 392 std::unique_ptr<MCObjectTargetWriter>
404 std::unique_ptr<MCObjectTargetWriter>
417 std::unique_ptr<MCObjectTargetWriter>
430 std::unique_ptr<MCObjectTargetWriter>
454 std::unique_ptr<MCObjectTargetWriter>
803 std::unique_ptr<MCObjectTargetWriter>
824 std::unique_ptr<MCObjectTargetWriter>
lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp 331 std::unique_ptr<MCObjectTargetWriter>
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h 99 std::unique_ptr<MCAsmBackend> &&AB,
100 std::unique_ptr<MCObjectWriter> &&OW,
101 std::unique_ptr<MCCodeEmitter> &&CE,
106 std::unique_ptr<MCObjectTargetWriter>
110 std::unique_ptr<MCObjectTargetWriter>
113 std::unique_ptr<MCObjectTargetWriter>
lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp 599 std::unique_ptr<MCObjectTargetWriter>
lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp 110 std::unique_ptr<MCObjectTargetWriter>
lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp 23 X86WinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB,
24 std::unique_ptr<MCCodeEmitter> CE,
25 std::unique_ptr<MCObjectWriter> OW)
64 std::unique_ptr<MCAsmBackend> &&AB,
65 std::unique_ptr<MCObjectWriter> &&OW,
66 std::unique_ptr<MCCodeEmitter> &&CE,
lib/Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp 69 DenseMap<const MCSymbol *, std::unique_ptr<FPOData>> AllFPOData;
72 std::unique_ptr<FPOData> CurFPOData;
lib/Target/X86/X86AsmPrinter.cpp 46 std::unique_ptr<MCStreamer> Streamer)
lib/Target/X86/X86AsmPrinter.h 32 std::unique_ptr<MCCodeEmitter> CodeEmitter;
118 X86AsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer);
lib/Target/X86/X86CondBrFolding.cpp 113 std::vector<std::unique_ptr<TargetMBBInfo>> MBBInfos;
123 std::unique_ptr<TargetMBBInfo> analyzeMBB(MachineBasicBlock &MBB);
480 std::unique_ptr<TargetMBBInfo>
lib/Target/X86/X86InsertPrefetch.cpp 63 std::unique_ptr<SampleProfileReader> Reader;
161 ErrorOr<std::unique_ptr<SampleProfileReader>> ReaderOrErr =
lib/Target/X86/X86MacroFusion.cpp 228 std::unique_ptr<ScheduleDAGMutation>
lib/Target/X86/X86MacroFusion.h 24 std::unique_ptr<ScheduleDAGMutation>
lib/Target/X86/X86Subtarget.cpp 379 std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
lib/Target/X86/X86Subtarget.h 458 std::unique_ptr<CallLowering> CallLoweringInfo;
459 std::unique_ptr<LegalizerInfo> Legalizer;
460 std::unique_ptr<RegisterBankInfo> RegBankInfo;
461 std::unique_ptr<InstructionSelector> InstSelector;
873 void getPostRAMutations(std::vector<std::unique_ptr<ScheduleDAGMutation>>
lib/Target/X86/X86TargetMachine.cpp 88 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
381 std::unique_ptr<CSEConfigBase> getCSEConfig() const override;
549 std::unique_ptr<CSEConfigBase> X86PassConfig::getCSEConfig() const {
lib/Target/X86/X86TargetMachine.h 31 std::unique_ptr<TargetLoweringObjectFile> TLOF;
32 mutable StringMap<std::unique_ptr<X86Subtarget>> SubtargetMap;
lib/Target/XCore/XCoreAsmPrinter.cpp 58 std::unique_ptr<MCStreamer> Streamer)
lib/Target/XCore/XCoreTargetMachine.h 27 std::unique_ptr<TargetLoweringObjectFile> TLOF;
lib/TextAPI/ELF/TBEHandler.cpp 145 Expected<std::unique_ptr<ELFStub>> elfabi::readTBEFromBuffer(StringRef Buf) {
147 std::unique_ptr<ELFStub> Stub(new ELFStub());
lib/TextAPI/MachO/TextStub.cpp 1107 Expected<std::unique_ptr<InterfaceFile>>
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp 57 static std::unique_ptr<MemoryBuffer> openFile(const Twine &Path) {
58 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path);
112 std::unique_ptr<MemoryBuffer> MB =
lib/ToolDrivers/llvm-lib/LibDriver.cpp 115 std::unique_ptr<MemoryBuffer> B;
118 ErrorOr<std::unique_ptr<MemoryBuffer>> MaybeBuf =
318 std::vector<std::unique_ptr<MemoryBuffer>> MBs;
342 ErrorOr<std::unique_ptr<MemoryBuffer>> MOrErr =
lib/Transforms/Coroutines/CoroCleanup.cpp 109 std::unique_ptr<Lowerer> L;
lib/Transforms/Coroutines/CoroEarly.cpp 234 std::unique_ptr<Lowerer> L;
lib/Transforms/Coroutines/CoroElide.cpp 285 std::unique_ptr<Lowerer> L;
lib/Transforms/IPO/FunctionImport.cpp 148 static std::unique_ptr<Module> loadFile(const std::string &FileName,
154 std::unique_ptr<Module> Result =
177 ArrayRef<std::unique_ptr<GlobalValueSummary>> CalleeSummaryList,
1092 Expected<std::unique_ptr<Module>> SrcModuleOrErr = ModuleLoader(Name);
1095 std::unique_ptr<Module> SrcModule = std::move(*SrcModuleOrErr);
1214 Expected<std::unique_ptr<ModuleSummaryIndex>> IndexPtrOrErr =
1221 std::unique_ptr<ModuleSummaryIndex> Index = std::move(*IndexPtrOrErr);
lib/Transforms/IPO/HotColdSplitting.cpp 545 std::unique_ptr<DominatorTree> DT;
546 std::unique_ptr<PostDominatorTree> PDT;
678 std::unique_ptr<OptimizationRemarkEmitter> ORE;
710 std::unique_ptr<OptimizationRemarkEmitter> ORE;
lib/Transforms/IPO/Internalize.cpp 75 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf =
lib/Transforms/IPO/PartialInlining.cpp 262 std::unique_ptr<FunctionOutliningInfo> ClonedOI = nullptr;
264 std::unique_ptr<FunctionOutliningMultiRegionInfo> ClonedOMRI = nullptr;
265 std::unique_ptr<BlockFrequencyInfo> ClonedFuncBFI = nullptr;
341 std::unique_ptr<FunctionOutliningInfo> computeOutliningInfo(Function *F);
342 std::unique_ptr<FunctionOutliningMultiRegionInfo>
391 std::unique_ptr<FunctionOutliningMultiRegionInfo>
399 std::unique_ptr<BlockFrequencyInfo> ScopedBFI;
411 std::unique_ptr<FunctionOutliningMultiRegionInfo> OutliningInfo =
555 std::unique_ptr<FunctionOutliningInfo>
591 std::unique_ptr<FunctionOutliningInfo> OutliningInfo =
930 std::unique_ptr<BlockFrequencyInfo> TempBFI;
1280 std::unique_ptr<FunctionOutliningMultiRegionInfo> OMRI =
1312 std::unique_ptr<FunctionOutliningInfo> OI = computeOutliningInfo(F);
lib/Transforms/IPO/SampleProfile.cpp 359 std::unique_ptr<DominatorTree> DT;
360 std::unique_ptr<PostDominatorTree> PDT;
361 std::unique_ptr<LoopInfo> LI;
375 std::unique_ptr<SampleProfileReader> Reader;
400 std::unique_ptr<ProfileSymbolList> PSL;
1679 std::unique_ptr<SampleProfileReaderItaniumRemapper> RemapReader;
1814 std::unique_ptr<OptimizationRemarkEmitter> OwnedORE;
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 274 std::unique_ptr<Module> MergedM(
450 std::unique_ptr<ModuleSummaryIndex> NewIndex = nullptr;
lib/Transforms/IPO/WholeProgramDevirt.cpp 641 std::unique_ptr<OptimizationRemarkEmitter> ORE;
lib/Transforms/InstCombine/InstructionCombining.cpp 2369 std::unique_ptr<DIBuilder> DIB;
lib/Transforms/Instrumentation/AddressSanitizer.cpp 911 std::unique_ptr<CallInst> EmptyInlineAsm;
lib/Transforms/Instrumentation/CFGMST.h 43 std::vector<std::unique_ptr<Edge>> AllEdges;
46 DenseMap<const BasicBlock *, std::unique_ptr<BBInfo>> BBInfos;
lib/Transforms/Instrumentation/ControlHeightReduction.cpp 999 const std::unique_ptr<Region> &SubR = *It;
2081 std::unique_ptr<OptimizationRemarkEmitter> OwnedORE =
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 177 std::unique_ptr<SpecialCaseList> SCL;
182 void set(std::unique_ptr<SpecialCaseList> List) { SCL = std::move(List); }
lib/Transforms/Instrumentation/GCOVProfiling.cpp 134 SmallVector<std::unique_ptr<GCOVFunction>, 16> Funcs;
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 322 std::unique_ptr<HWAddressSanitizer> HWASan;
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp 399 std::unique_ptr<OptimizationRemarkEmitter> OwnedORE;
lib/Transforms/Instrumentation/InstrProfiling.cpp 448 std::unique_ptr<BlockFrequencyInfo> BFI;
450 std::unique_ptr<BranchProbabilityInfo> BPI;
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1024 std::unique_ptr<VarArgHelper> VAHelper;
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 1536 std::unique_ptr<IndexedInstrProfReader> PGOReader =
1595 std::unique_ptr<BranchProbabilityInfo> NewBPI =
1597 std::unique_ptr<BlockFrequencyInfo> NewBFI =
lib/Transforms/Instrumentation/ValueProfileCollector.h 74 std::unique_ptr<ValueProfileCollectorImpl> PImpl;
lib/Transforms/Scalar/EarlyCSE.cpp 450 std::unique_ptr<MemorySSAUpdater> MSSAUpdater;
lib/Transforms/Scalar/GVNHoist.cpp 335 std::unique_ptr<MemorySSAUpdater> MSSAUpdater;
lib/Transforms/Scalar/JumpThreading.cpp 306 std::unique_ptr<BlockFrequencyInfo> BFI;
307 std::unique_ptr<BranchProbabilityInfo> BPI;
334 std::unique_ptr<BlockFrequencyInfo> BFI;
335 std::unique_ptr<BranchProbabilityInfo> BPI;
357 std::unique_ptr<BlockFrequencyInfo> BFI_,
358 std::unique_ptr<BranchProbabilityInfo> BPI_) {
lib/Transforms/Scalar/LICM.cpp 169 using ASTrackerMapTy = DenseMap<Loop *, std::unique_ptr<AliasSetTracker>>;
186 std::unique_ptr<AliasSetTracker>
188 std::unique_ptr<AliasSetTracker>
340 std::unique_ptr<AliasSetTracker> CurAST;
341 std::unique_ptr<MemorySSAUpdater> MSSAU;
2156 std::unique_ptr<AliasSetTracker>
2159 std::unique_ptr<AliasSetTracker> CurAST;
2170 std::unique_ptr<AliasSetTracker> InnerAST = std::move(MapI->second);
2198 std::unique_ptr<AliasSetTracker>
lib/Transforms/Scalar/LoopUnswitch.cpp 186 std::unique_ptr<MemorySSAUpdater> MSSAU;
lib/Transforms/Scalar/LoopVersioningLICM.cpp 182 std::unique_ptr<AliasSetTracker> CurAST;
lib/Transforms/Scalar/NewGVN.cpp 498 std::unique_ptr<PredicateInfo> PredInfo;
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp 1451 ArrayRef<std::unique_ptr<ValueToValueMapTy>> VMaps,
2024 SmallVector<std::unique_ptr<ValueToValueMapTy>, 4> VMaps;
2170 for (std::unique_ptr<ValueToValueMapTy> &VMap : VMaps)
lib/Transforms/Utils/CloneModule.cpp 34 std::unique_ptr<Module> llvm::CloneModule(const Module &M) {
41 std::unique_ptr<Module> llvm::CloneModule(const Module &M,
46 std::unique_ptr<Module> llvm::CloneModule(
50 std::unique_ptr<Module> New =
lib/Transforms/Utils/LoopSimplify.cpp 806 std::unique_ptr<MemorySSAUpdater> MSSAU;
839 std::unique_ptr<MemorySSAUpdater> MSSAU;
lib/Transforms/Utils/SplitModule.cpp 250 std::unique_ptr<Module> M, unsigned N,
251 function_ref<void(std::unique_ptr<Module> MPart)> ModuleCallback,
273 std::unique_ptr<Module> MPart(
lib/Transforms/Utils/SymbolRewriter.cpp 252 ErrorOr<std::unique_ptr<MemoryBuffer>> Mapping =
265 bool RewriteMapParser::parse(std::unique_ptr<MemoryBuffer> &MapFile,
lib/Transforms/Utils/ValueMapper.cpp 58 std::unique_ptr<BasicBlock> TempBB;
lib/Transforms/Vectorize/LoopVectorize.cpp 695 std::unique_ptr<LoopVersioning> LVer;
lib/Transforms/Vectorize/SLPVectorizer.cpp 1194 using VecTreeTy = SmallVector<std::unique_ptr<TreeEntry>, 8>;
1909 MapVector<BasicBlock *, std::unique_ptr<BlockScheduling>> BlocksSchedules;
lib/Transforms/Vectorize/VPlan.h 75 using VPlanPtr = std::unique_ptr<VPlan>;
796 std::unique_ptr<VPUser> User;
825 std::unique_ptr<VPUser> User;
900 std::unique_ptr<VPUser> User;
962 std::unique_ptr<VPUser> User;
lib/WindowsManifest/WindowsManifestMerger.cpp 39 std::unique_ptr<MemoryBuffer> getMergedManifest();
697 std::unique_ptr<MemoryBuffer>
715 std::unique_ptr<MemoryBuffer> WindowsManifestMerger::getMergedManifest() {
lib/XRay/FDRRecordProducer.cpp 35 Expected<std::unique_ptr<Record>>
81 Expected<std::unique_ptr<Record>>
85 std::unique_ptr<Record> R;
112 Expected<std::unique_ptr<Record>> FileBasedRecordProducer::produce() {
114 std::unique_ptr<Record> R;
lib/XRay/LogBuilderConsumer.cpp 13 Error LogBuilderConsumer::consume(std::unique_ptr<Record> R) {
22 Error PipelineConsumer::consume(std::unique_ptr<Record> R) {
lib/XRay/Profile.cpp 196 using PathDataMapPtr = std::unique_ptr<PathDataMap>;
lib/XRay/Trace.cpp 282 std::vector<std::unique_ptr<Record>> FDRRecords;
tools/bugpoint/BugDriver.cpp 60 void BugDriver::setNewProgram(std::unique_ptr<Module> M) {
92 std::unique_ptr<Module> llvm::parseInputFile(StringRef Filename,
95 std::unique_ptr<Module> Result = parseIRFile(Filename, Err, Ctxt);
121 std::unique_ptr<Module> BugDriver::swapProgramIn(std::unique_ptr<Module> M) {
121 std::unique_ptr<Module> BugDriver::swapProgramIn(std::unique_ptr<Module> M) {
122 std::unique_ptr<Module> OldProgram = std::move(Program);
144 std::unique_ptr<Module> M = parseInputFile(Filenames[i], Context);
tools/bugpoint/BugDriver.h 52 std::unique_ptr<Module> Program; // The raw program, linked together
133 std::unique_ptr<Module> swapProgramIn(std::unique_ptr<Module> M);
133 std::unique_ptr<Module> swapProgramIn(std::unique_ptr<Module> M);
146 void setNewProgram(std::unique_ptr<Module> M);
191 std::unique_ptr<Module> deleteInstructionFromProgram(const Instruction *I,
199 std::unique_ptr<Module> performFinalCleanups(std::unique_ptr<Module> M,
199 std::unique_ptr<Module> performFinalCleanups(std::unique_ptr<Module> M,
205 std::unique_ptr<Module> extractLoop(Module *M);
212 std::unique_ptr<Module>
218 std::unique_ptr<Module> runPassesOn(Module *M,
275 std::unique_ptr<Module> parseInputFile(StringRef InputFilename,
303 std::unique_ptr<Module>
tools/bugpoint/CrashDebugger.cpp 87 std::unique_ptr<Module> OrigProgram;
148 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
242 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
347 std::unique_ptr<Module> M = CloneModule(BD.getProgram());
445 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
505 std::unique_ptr<Module> New = BD.runPassesOn(M.get(), Passes);
564 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
612 std::unique_ptr<Module> New = BD.runPassesOn(M.get(), Passes);
668 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
704 std::unique_ptr<Module> New = BD.runPassesOn(M.get(), Passes);
760 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
835 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
914 std::unique_ptr<Module> M = CloneModule(BD.getProgram(), VMap);
956 std::unique_ptr<Module> M = CloneModule(OrigM);
1064 std::unique_ptr<Module> M =
1208 std::unique_ptr<Module> M = CloneModule(BD.getProgram());
1254 std::unique_ptr<Module> M = CloneModule(BD.getProgram());
tools/bugpoint/ExtractFunction.cpp 83 std::unique_ptr<Module>
87 std::unique_ptr<Module> Clone = CloneModule(*Program);
120 std::unique_ptr<Module> New = runPassesOn(Clone.get(), Passes);
128 std::unique_ptr<Module>
129 BugDriver::performFinalCleanups(std::unique_ptr<Module> M,
143 std::unique_ptr<Module> New = runPassesOn(M.get(), CleanupPasses);
151 std::unique_ptr<Module> BugDriver::extractLoop(Module *M) {
155 std::unique_ptr<Module> NewM = runPassesOn(M, LoopExtractPasses);
305 std::unique_ptr<Module>
320 std::unique_ptr<Module> New = CloneModule(*M, NewVMap);
371 std::unique_ptr<Module>
413 std::unique_ptr<Module> Ret = runPassesOn(M, PI, {uniqueFN});
tools/bugpoint/Miscompilation.cpp 137 std::unique_ptr<Module> PrefixOutput =
154 std::unique_ptr<Module> OriginalInput =
188 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
189 std::unique_ptr<Module>);
194 std::unique_ptr<Module>,
195 std::unique_ptr<Module>))
227 static Expected<std::unique_ptr<Module>> testMergedProgram(const BugDriver &BD,
267 std::unique_ptr<Module> Clone = CloneModule(BD.getProgram(), VMap);
268 std::unique_ptr<Module> Orig = BD.swapProgramIn(std::move(Clone));
278 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap);
279 std::unique_ptr<Module> ToOptimize =
307 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
308 std::unique_ptr<Module>),
316 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap);
317 std::unique_ptr<Module> ToOptimize = SplitFunctionsOutOfModule(
319 std::unique_ptr<Module> ToOptimizeLoopExtracted =
335 Expected<std::unique_ptr<Module>> New = testMergedProgram(
343 std::unique_ptr<Module> Old = BD.swapProgramIn(std::move(*New));
370 std::unique_ptr<Module> TOLEBackup =
372 std::unique_ptr<Module> TNOBackup = CloneModule(*ToNotOptimize, VMap);
446 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
447 std::unique_ptr<Module>);
453 std::unique_ptr<Module>,
454 std::unique_ptr<Module>),
502 std::unique_ptr<Module> Clone = CloneModule(BD.getProgram(), VMap);
503 std::unique_ptr<Module> Orig = BD.swapProgramIn(std::move(Clone));
516 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap);
517 std::unique_ptr<Module> ToOptimize =
522 if (std::unique_ptr<Module> New =
537 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
538 std::unique_ptr<Module>),
571 std::unique_ptr<Module> ProgClone = CloneModule(BD.getProgram(), VMap);
572 std::unique_ptr<Module> ToExtract =
574 std::unique_ptr<Module> Extracted =
614 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
615 std::unique_ptr<Module>)) {
698 static Expected<bool> TestOptimizer(BugDriver &BD, std::unique_ptr<Module> Test,
699 std::unique_ptr<Module> Safe) {
703 std::unique_ptr<Module> Optimized =
778 static std::unique_ptr<Module>
779 CleanupAndPrepareModules(BugDriver &BD, std::unique_ptr<Module> Test,
943 std::unique_ptr<Module> Test,
944 std::unique_ptr<Module> Safe) {
1031 std::unique_ptr<Module> ToNotCodeGen = CloneModule(getProgram(), VMap);
1032 std::unique_ptr<Module> ToCodeGen =
tools/bugpoint/OptimizerDriver.cpp 267 std::unique_ptr<Module>
276 std::unique_ptr<Module> Ret = parseInputFile(BitcodeResult, Context);
tools/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp 42 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp 82 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/examples/clang-interpreter/main.cpp 54 std::unique_ptr<TargetMachine> TM;
60 static std::unique_ptr<SectionMemoryManager> createMemMgr() {
65 std::unique_ptr<TargetMachine> TM, DataLayout DL,
66 std::unique_ptr<DynamicLibrarySearchGenerator> ProcessSymbolsGenerator)
73 static Expected<std::unique_ptr<SimpleJIT>> Create() {
150 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(Args));
175 std::unique_ptr<CompilerInvocation> CI(new CompilerInvocation);
203 std::unique_ptr<CodeGenAction> Act(new EmitLLVMOnlyAction());
211 std::unique_ptr<llvm::LLVMContext> Ctx(Act->takeLLVMContext());
212 std::unique_ptr<llvm::Module> Module = Act->takeModule();
tools/clang/include/clang/ARCMigrate/ARCMTActions.h 24 CheckAction(std::unique_ptr<FrontendAction> WrappedAction);
32 ModifyAction(std::unique_ptr<FrontendAction> WrappedAction);
39 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
51 MigrateAction(std::unique_ptr<FrontendAction> WrappedAction,
64 ObjCMigrateAction(std::unique_ptr<FrontendAction> WrappedAction,
68 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/include/clang/ARCMigrate/FileRemapper.h 32 std::unique_ptr<FileManager> FileMgr;
54 void remap(StringRef filePath, std::unique_ptr<llvm::MemoryBuffer> memBuf);
61 void remap(const FileEntry *file, std::unique_ptr<llvm::MemoryBuffer> memBuf);
tools/clang/include/clang/AST/ASTContext.h 515 llvm::DenseMap<const DeclContext *, std::unique_ptr<MangleNumberingContext>>
517 llvm::DenseMap<const Decl *, std::unique_ptr<MangleNumberingContext>>
547 std::unique_ptr<SanitizerBlacklist> SanitizerBL;
551 std::unique_ptr<XRayFunctionFilter> XRayFilter;
563 std::unique_ptr<CXXABI> ABI;
576 std::unique_ptr<interp::Context> InterpContext;
2820 std::unique_ptr<MangleNumberingContext> createMangleNumberingContext() const;
3010 std::unique_ptr<ParentMap> Parents;
3012 std::unique_ptr<VTableContextBase> VTContext;
tools/clang/include/clang/AST/ASTImporterSharedState.h 33 std::unique_ptr<ASTImporterLookupTable> LookupTable;
tools/clang/include/clang/AST/Expr.h 5918 static std::unique_ptr<AtomicScopeModel> getScopeModel(AtomicOp Op) {
5929 std::unique_ptr<AtomicScopeModel> getScopeModel() const {
tools/clang/include/clang/AST/ExternalASTMerger.h 58 typedef std::vector<std::unique_ptr<ASTImporter>> ImporterVector;
tools/clang/include/clang/AST/Mangle.h 267 std::unique_ptr<Implementation> Impl;
tools/clang/include/clang/AST/VTableBuilder.h 356 std::unique_ptr<const VTableLayout>>
384 std::unique_ptr<VTableLayout> createConstructionVTableLayout(
459 typedef SmallVector<std::unique_ptr<VPtrInfo>, 2> VPtrInfoVector;
518 typedef llvm::DenseMap<const CXXRecordDecl *, std::unique_ptr<VPtrInfoVector>>
523 typedef llvm::DenseMap<VFTableIdTy, std::unique_ptr<const VTableLayout>>
527 llvm::DenseMap<const CXXRecordDecl *, std::unique_ptr<VirtualBaseInfo>>
tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h 176 std::unique_ptr<clang::ASTConsumer> newASTConsumer();
tools/clang/include/clang/Analysis/Analyses/Consumed.h 208 std::vector<std::unique_ptr<ConsumedStateMap>> StateMapsArray;
225 std::unique_ptr<ConsumedStateMap> &OwnedStateMap);
227 std::unique_ptr<ConsumedStateMap> StateMap);
233 std::unique_ptr<ConsumedStateMap> getInfo(const CFGBlock *Block);
242 std::unique_ptr<ConsumedStateMap> CurrStates;
tools/clang/include/clang/Analysis/Analyses/ExprMutationAnalyzer.h 71 std::unique_ptr<FunctionParmMutationAnalyzer>>
tools/clang/include/clang/Analysis/AnalysisDeclContext.h 76 std::unique_ptr<CFG> cfg, completeCFG;
77 std::unique_ptr<CFGStmtMap> cfgStmtMap;
84 std::unique_ptr<ParentMap> PM;
85 std::unique_ptr<CFGReverseBlockReachabilityAnalysis> CFA;
441 llvm::DenseMap<const Decl *, std::unique_ptr<AnalysisDeclContext>>;
449 std::unique_ptr<CodeInjector> Injector;
tools/clang/include/clang/Analysis/CFG.h 1273 static std::unique_ptr<CFG> buildCFG(const Decl *D, Stmt *AST, ASTContext *C,
tools/clang/include/clang/Analysis/CallGraph.h 45 llvm::DenseMap<const Decl *, std::unique_ptr<CallGraphNode>>;
tools/clang/include/clang/Analysis/PathDiagnostic.h 109 void HandlePathDiagnostic(std::unique_ptr<PathDiagnostic> D);
748 std::unique_ptr<FilesToLineNumsMap> ExecutedLines;
756 std::unique_ptr<FilesToLineNumsMap> ExecutedLines);
tools/clang/include/clang/Basic/Diagnostic.h 243 std::unique_ptr<DiagnosticConsumer> Owner;
518 std::unique_ptr<DiagnosticConsumer> takeClient() { return std::move(Owner); }
tools/clang/include/clang/Basic/DiagnosticIDs.h 172 std::unique_ptr<diag::CustomDiagInfo> CustomDiagInfo;
tools/clang/include/clang/Basic/FileManager.h 92 mutable std::unique_ptr<llvm::vfs::File> File;
185 SmallVector<std::unique_ptr<DirectoryEntry>, 4> VirtualDirectoryEntries;
187 SmallVector<std::unique_ptr<FileEntry>, 4> VirtualFileEntries;
191 SmallVector<std::unique_ptr<FileEntry>, 0> BypassFileEntries;
236 std::unique_ptr<FileSystemStatCache> StatCache;
240 std::unique_ptr<llvm::vfs::File> *F);
265 void setStatCache(std::unique_ptr<FileSystemStatCache> statCache);
380 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
382 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
388 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
tools/clang/include/clang/Basic/FileSystemStatCache.h 52 std::unique_ptr<llvm::vfs::File> *F,
61 std::unique_ptr<llvm::vfs::File> *F,
82 std::unique_ptr<llvm::vfs::File> *F,
tools/clang/include/clang/Basic/SanitizerBlacklist.h 27 std::unique_ptr<SanitizerSpecialCaseList> SSCL;
tools/clang/include/clang/Basic/SanitizerSpecialCaseList.h 26 static std::unique_ptr<SanitizerSpecialCaseList>
29 static std::unique_ptr<SanitizerSpecialCaseList>
tools/clang/include/clang/Basic/SourceManager.h 636 std::unique_ptr<OverriddenFilesInfoTy> OverriddenFilesInfo;
695 std::unique_ptr<LineTableInfo> LineTable;
738 mutable std::unique_ptr<llvm::MemoryBuffer> FakeBufferForRecovery;
740 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery;
746 mutable llvm::DenseMap<FileID, std::unique_ptr<MacroArgsMap>>
855 FileID createFileID(std::unique_ptr<llvm::MemoryBuffer> Buffer,
934 std::unique_ptr<llvm::MemoryBuffer> Buffer) {
1908 std::unique_ptr<FileManager> FileMgr;
1909 std::unique_ptr<DiagnosticsEngine> Diagnostics;
1910 std::unique_ptr<SourceManager> SourceMgr;
tools/clang/include/clang/Basic/SyncScope.h 90 static std::unique_ptr<AtomicScopeModel> create(AtomicScopeModelKind K);
141 inline std::unique_ptr<AtomicScopeModel>
tools/clang/include/clang/Basic/TargetInfo.h 181 std::unique_ptr<llvm::DataLayout> DataLayout;
tools/clang/include/clang/Basic/XRayLists.h 26 std::unique_ptr<llvm::SpecialCaseList> AlwaysInstrument;
27 std::unique_ptr<llvm::SpecialCaseList> NeverInstrument;
28 std::unique_ptr<llvm::SpecialCaseList> AttrList;
tools/clang/include/clang/CodeGen/BackendUtil.h 44 std::unique_ptr<raw_pwrite_stream> OS);
tools/clang/include/clang/CodeGen/CodeGenAction.h 31 std::unique_ptr<llvm::Module> Module;
46 std::unique_ptr<llvm::Module> TheModule;
53 std::unique_ptr<llvm::Module> loadModule(llvm::MemoryBufferRef MBRef);
63 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
75 std::unique_ptr<llvm::Module> takeModule();
tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h 24 std::unique_ptr<ASTConsumer>
28 std::unique_ptr<llvm::raw_pwrite_stream> OS,
tools/clang/include/clang/CrossTU/CrossTranslationUnit.h 197 llvm::DenseMap<TranslationUnitDecl *, std::unique_ptr<ASTImporter>>;
216 std::unique_ptr<ASTUnit> operator()(StringRef ASTFilePath);
281 using OwningMapTy = BaseMapTy<std::unique_ptr<clang::ASTUnit>>;
tools/clang/include/clang/DirectoryWatcher/DirectoryWatcher.h 106 static llvm::Expected<std::unique_ptr<DirectoryWatcher>>
tools/clang/include/clang/Driver/Compilation.h 72 std::vector<std::unique_ptr<Action>> AllActions;
198 AllActions.push_back(std::unique_ptr<Action>(RawPtr));
205 void addCommand(std::unique_ptr<Command> C) { Jobs.addJob(std::move(C)); }
tools/clang/include/clang/Driver/Driver.h 219 std::unique_ptr<llvm::opt::InputArgList> CfgOptions;
222 std::unique_ptr<llvm::opt::InputArgList> CLOptions;
243 mutable llvm::StringMap<std::unique_ptr<ToolChain>> ToolChains;
tools/clang/include/clang/Driver/Job.h 152 std::unique_ptr<Command> Fallback;
173 using list_type = SmallVector<std::unique_ptr<Command>, 4>;
186 void addJob(std::unique_ptr<Command> J) { Jobs.push_back(std::move(J)); }
tools/clang/include/clang/Driver/ToolChain.h 136 mutable std::unique_ptr<Tool> Clang;
137 mutable std::unique_ptr<Tool> Assemble;
138 mutable std::unique_ptr<Tool> Link;
139 mutable std::unique_ptr<Tool> IfsMerge;
140 mutable std::unique_ptr<Tool> OffloadBundler;
141 mutable std::unique_ptr<Tool> OffloadWrapper;
151 mutable std::unique_ptr<SanitizerArgs> SanitizerArguments;
152 mutable std::unique_ptr<XRayArgs> XRayArguments;
tools/clang/include/clang/Frontend/ASTConsumers.h 34 std::unique_ptr<ASTConsumer> CreateASTPrinter(std::unique_ptr<raw_ostream> OS,
34 std::unique_ptr<ASTConsumer> CreateASTPrinter(std::unique_ptr<raw_ostream> OS,
39 std::unique_ptr<ASTConsumer>
40 CreateASTDumper(std::unique_ptr<raw_ostream> OS, StringRef FilterString,
46 std::unique_ptr<ASTConsumer> CreateASTDeclNodeLister();
51 std::unique_ptr<ASTConsumer> CreateASTViewer();
tools/clang/include/clang/Frontend/ASTUnit.h 114 std::unique_ptr<HeaderSearch> HeaderInfo;
125 std::unique_ptr<ASTWriterData> WriterData;
131 std::unique_ptr<ASTConsumer> Consumer;
135 std::unique_ptr<Sema> TheSema;
230 std::unique_ptr<llvm::MemoryBuffer> SavedMainFileBuffer;
327 std::unique_ptr<CodeCompletionTUInfo> CCTUInfo;
371 std::unique_ptr<llvm::MemoryBuffer> OverrideMainBuffer,
374 std::unique_ptr<llvm::MemoryBuffer> getMainBufferWithPrecompiledPreamble(
651 std::unique_ptr<llvm::MemoryBuffer>
665 static std::unique_ptr<ASTUnit>
691 static std::unique_ptr<ASTUnit> LoadFromASTFile(
761 std::unique_ptr<ASTUnit> *ErrAST = nullptr);
777 static std::unique_ptr<ASTUnit> LoadFromCompilerInvocation(
837 std::unique_ptr<ASTUnit> *ErrAST = nullptr,
tools/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h 24 std::unique_ptr<DiagnosticConsumer> OwningPrimary;
26 std::unique_ptr<DiagnosticConsumer> Secondary;
29 ChainedDiagnosticConsumer(std::unique_ptr<DiagnosticConsumer> Primary,
30 std::unique_ptr<DiagnosticConsumer> Secondary)
36 std::unique_ptr<DiagnosticConsumer> Secondary)
tools/clang/include/clang/Frontend/CompilerInstance.h 104 std::unique_ptr<ASTConsumer> Consumer;
107 std::unique_ptr<CodeCompleteConsumer> CompletionConsumer;
110 std::unique_ptr<Sema> TheSema;
113 std::unique_ptr<llvm::TimerGroup> FrontendTimerGroup;
116 std::unique_ptr<llvm::Timer> FrontendTimer;
159 std::unique_ptr<raw_ostream> OwnedVerboseOutputStream;
181 std::unique_ptr<llvm::raw_fd_ostream> NonSeekStream;
187 std::unique_ptr<llvm::raw_pwrite_stream> OutputStream;
363 void setVerboseOutputStream(std::unique_ptr<raw_ostream> Value);
498 std::unique_ptr<ASTConsumer> takeASTConsumer() { return std::move(Consumer); }
502 void setASTConsumer(std::unique_ptr<ASTConsumer> Value);
514 std::unique_ptr<Sema> takeSema();
709 std::unique_ptr<raw_pwrite_stream>
717 std::unique_ptr<raw_pwrite_stream>
747 std::unique_ptr<raw_pwrite_stream>
754 std::unique_ptr<raw_pwrite_stream> createNullOutputFile();
780 void setOutputStream(std::unique_ptr<llvm::raw_pwrite_stream> OutStream) {
784 std::unique_ptr<llvm::raw_pwrite_stream> takeOutputStream() {
tools/clang/include/clang/Frontend/FrontendAction.h 38 std::unique_ptr<ASTUnit> CurrentASTUnit;
44 std::unique_ptr<ASTConsumer> CreateWrappedASTConsumer(CompilerInstance &CI,
70 virtual std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
163 std::unique_ptr<ASTUnit> takeCurrentASTUnit() {
168 std::unique_ptr<ASTUnit> AST = nullptr);
260 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
291 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
305 std::unique_ptr<FrontendAction> WrappedAction;
309 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
319 WrapperFrontendAction(std::unique_ptr<FrontendAction> WrappedAction);
tools/clang/include/clang/Frontend/FrontendActions.h 28 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
38 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
55 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
61 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
67 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
73 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
79 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
100 static std::unique_ptr<llvm::raw_pwrite_stream>
108 virtual std::unique_ptr<raw_pwrite_stream>
112 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
131 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
139 std::unique_ptr<raw_pwrite_stream>
147 std::unique_ptr<raw_pwrite_stream>
153 std::unique_ptr<llvm::MemoryBuffer> Buffer;
160 std::unique_ptr<raw_pwrite_stream>
166 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
178 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
192 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
203 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
219 std::unique_ptr<FrontendAction> AdaptedAction;
225 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
234 ASTMergeAction(std::unique_ptr<FrontendAction> AdaptedAction,
248 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &,
259 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &,
tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h 52 std::unique_ptr<raw_ostream> StreamOwner;
66 std::unique_ptr<raw_ostream> StreamOwner);
tools/clang/include/clang/Frontend/MultiplexConsumer.h 52 MultiplexConsumer(std::vector<std::unique_ptr<ASTConsumer>> C);
80 std::vector<std::unique_ptr<ASTConsumer>> Consumers; // Owns these.
81 std::unique_ptr<MultiplexASTMutationListener> MutationListener;
82 std::unique_ptr<MultiplexASTDeserializationListener> DeserializationListener;
tools/clang/include/clang/Frontend/PrecompiledPreamble.h 285 virtual std::unique_ptr<PPCallbacks> createPPCallbacks();
tools/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h 35 std::unique_ptr<DiagnosticConsumer> create(StringRef OutputFile,
tools/clang/include/clang/Frontend/TextDiagnosticPrinter.h 32 std::unique_ptr<TextDiagnostic> TextDiag;
tools/clang/include/clang/Frontend/Utils.h 222 std::unique_ptr<CompilerInvocation> createInvocationFromCommandLine(
tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h 192 static std::unique_ptr<Directive> create(bool RegexKind,
230 using DirectiveList = std::vector<std::unique_ptr<Directive>>;
259 std::unique_ptr<DiagnosticConsumer> PrimaryClientOwner;
260 std::unique_ptr<TextDiagnosticBuffer> Buffer;
261 std::unique_ptr<MarkerTracker> Markers;
tools/clang/include/clang/FrontendTool/Utils.h 28 std::unique_ptr<FrontendAction> CreateFrontendAction(CompilerInstance &CI);
tools/clang/include/clang/Index/IndexingAction.h 36 std::unique_ptr<ASTConsumer> createIndexingASTConsumer(
41 inline std::unique_ptr<ASTConsumer> createIndexingASTConsumer(
50 std::unique_ptr<FrontendAction>
65 std::unique_ptr<PPCallbacks> indexMacrosCallback(IndexDataConsumer &Consumer,
tools/clang/include/clang/Lex/HeaderMap.h 30 std::unique_ptr<const llvm::MemoryBuffer> FileBuffer;
34 HeaderMapImpl(std::unique_ptr<const llvm::MemoryBuffer> File, bool NeedsBSwap)
66 HeaderMap(std::unique_ptr<const llvm::MemoryBuffer> File, bool BSwap)
72 static std::unique_ptr<HeaderMap> Create(const FileEntry *FE,
tools/clang/include/clang/Lex/HeaderSearch.h 226 std::unique_ptr<IncludeAliasMap> IncludeAliases;
229 std::vector<std::pair<const FileEntry *, std::unique_ptr<HeaderMap>>> HeaderMaps;
tools/clang/include/clang/Lex/ModuleMap.h 81 llvm::SmallVector<std::unique_ptr<ModuleMapCallbacks>, 1> Callbacks;
98 llvm::SmallVector<std::unique_ptr<Module>, 8> PendingSubmodules;
413 void addModuleMapCallbacks(std::unique_ptr<ModuleMapCallbacks> Callback) {
tools/clang/include/clang/Lex/PPCallbacks.h 378 std::unique_ptr<PPCallbacks> First, Second;
381 PPChainedCallbacks(std::unique_ptr<PPCallbacks> _First,
382 std::unique_ptr<PPCallbacks> _Second)
tools/clang/include/clang/Lex/Preprocessor.h 137 std::unique_ptr<ScratchBuffer> ScratchBuf;
246 std::unique_ptr<PragmaNamespace> PragmaHandlers;
250 std::unique_ptr<PragmaNamespace> PragmaHandlersBackup;
484 std::unique_ptr<Lexer> CurLexer;
502 std::unique_ptr<TokenLexer> CurTokenLexer;
522 std::unique_ptr<Lexer> TheLexer;
524 std::unique_ptr<TokenLexer> TheTokenLexer;
530 std::unique_ptr<Lexer> &&TheLexer,
532 std::unique_ptr<TokenLexer> &&TheTokenLexer,
544 std::unique_ptr<PPCallbacks> Callbacks;
817 std::unique_ptr<TokenLexer> TokenLexerCache[TokenLexerCacheSize];
996 void addPPCallbacks(std::unique_ptr<PPCallbacks> C) {
tools/clang/include/clang/Parse/Parser.h 166 std::unique_ptr<PragmaHandler> AlignHandler;
167 std::unique_ptr<PragmaHandler> GCCVisibilityHandler;
168 std::unique_ptr<PragmaHandler> OptionsHandler;
169 std::unique_ptr<PragmaHandler> PackHandler;
170 std::unique_ptr<PragmaHandler> MSStructHandler;
171 std::unique_ptr<PragmaHandler> UnusedHandler;
172 std::unique_ptr<PragmaHandler> WeakHandler;
173 std::unique_ptr<PragmaHandler> RedefineExtnameHandler;
174 std::unique_ptr<PragmaHandler> FPContractHandler;
175 std::unique_ptr<PragmaHandler> OpenCLExtensionHandler;
176 std::unique_ptr<PragmaHandler> OpenMPHandler;
177 std::unique_ptr<PragmaHandler> PCSectionHandler;
178 std::unique_ptr<PragmaHandler> MSCommentHandler;
179 std::unique_ptr<PragmaHandler> MSDetectMismatchHandler;
180 std::unique_ptr<PragmaHandler> MSPointersToMembers;
181 std::unique_ptr<PragmaHandler> MSVtorDisp;
182 std::unique_ptr<PragmaHandler> MSInitSeg;
183 std::unique_ptr<PragmaHandler> MSDataSeg;
184 std::unique_ptr<PragmaHandler> MSBSSSeg;
185 std::unique_ptr<PragmaHandler> MSConstSeg;
186 std::unique_ptr<PragmaHandler> MSCodeSeg;
187 std::unique_ptr<PragmaHandler> MSSection;
188 std::unique_ptr<PragmaHandler> MSRuntimeChecks;
189 std::unique_ptr<PragmaHandler> MSIntrinsic;
190 std::unique_ptr<PragmaHandler> MSOptimize;
191 std::unique_ptr<PragmaHandler> CUDAForceHostDeviceHandler;
192 std::unique_ptr<PragmaHandler> OptimizeHandler;
193 std::unique_ptr<PragmaHandler> LoopHintHandler;
194 std::unique_ptr<PragmaHandler> UnrollHintHandler;
195 std::unique_ptr<PragmaHandler> NoUnrollHintHandler;
196 std::unique_ptr<PragmaHandler> UnrollAndJamHintHandler;
197 std::unique_ptr<PragmaHandler> NoUnrollAndJamHintHandler;
198 std::unique_ptr<PragmaHandler> FPHandler;
199 std::unique_ptr<PragmaHandler> STDCFENVHandler;
200 std::unique_ptr<PragmaHandler> STDCCXLIMITHandler;
201 std::unique_ptr<PragmaHandler> STDCUnknownHandler;
202 std::unique_ptr<PragmaHandler> AttributePragmaHandler;
204 std::unique_ptr<CommentHandler> CommentSemaHandler;
1225 std::unique_ptr<CachedTokens> Toks = nullptr)
1235 std::unique_ptr<CachedTokens> Toks;
tools/clang/include/clang/Rewrite/Core/TokenRewriter.h 45 std::unique_ptr<ScratchBuffer> ScratchBuf;
tools/clang/include/clang/Rewrite/Frontend/ASTConsumers.h 29 std::unique_ptr<ASTConsumer>
30 CreateObjCRewriter(const std::string &InFile, std::unique_ptr<raw_ostream> OS,
33 std::unique_ptr<ASTConsumer>
35 std::unique_ptr<raw_ostream> OS,
41 std::unique_ptr<ASTConsumer> CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS,
41 std::unique_ptr<ASTConsumer> CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS,
tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h 75 std::unique_ptr<DiagnosticConsumer> Owner;
tools/clang/include/clang/Rewrite/Frontend/FrontendActions.h 25 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
31 std::unique_ptr<FixItRewriter> Rewriter;
32 std::unique_ptr<FixItOptions> FixItOpts;
34 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
52 FixItRecompile(std::unique_ptr<FrontendAction> WrappedAction)
61 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/include/clang/Sema/DeclSpec.h 1244 std::unique_ptr<CachedTokens> DefaultArgTokens;
1249 std::unique_ptr<CachedTokens> DefArgTokens = nullptr)
tools/clang/include/clang/Sema/ExternalSemaSource.h 192 llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h 330 llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
tools/clang/include/clang/Sema/Sema.h 609 std::unique_ptr<sema::FunctionScopeInfo> CachedFunctionScope;
625 std::unique_ptr<CXXFieldCollector> FieldCollector;
650 std::unique_ptr<RecordDeclSetTy> PureVirtualClassDiagSet;
697 std::unique_ptr<LateParsedTemplate>>
920 std::unique_ptr<NSAPI> NSAPIObj;
1463 std::unique_ptr<sema::FunctionScopeInfo, PoppedFunctionScopeDeleter>;
3487 std::unique_ptr<TypoCorrectionConsumer> Consumer;
3499 TypoExpr *createDelayedTypo(std::unique_ptr<TypoCorrectionConsumer> TCC,
3516 std::unique_ptr<TypoCorrectionConsumer>
7875 std::vector<std::unique_ptr<TemplateInstantiationCallback>>
11445 std::unique_ptr<llvm::DenseMap<TypeTagMagicValue, TypeTagData>>
tools/clang/include/clang/Sema/SemaInternal.h 95 std::unique_ptr<CorrectionCandidateCallback> CCC,
306 std::unique_ptr<CXXScopeSpec> SS;
307 std::unique_ptr<CorrectionCandidateCallback> CorrectionValidator;
tools/clang/include/clang/Sema/TypoCorrection.h 320 virtual std::unique_ptr<CorrectionCandidateCallback> clone() = 0;
358 std::unique_ptr<CorrectionCandidateCallback> clone() override {
371 std::unique_ptr<CorrectionCandidateCallback> clone() override {
386 std::unique_ptr<CorrectionCandidateCallback> clone() override {
411 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/include/clang/Serialization/ASTReader.h 244 std::unique_ptr<ASTReaderListener> First;
245 std::unique_ptr<ASTReaderListener> Second;
249 ChainedASTReaderListener(std::unique_ptr<ASTReaderListener> First,
250 std::unique_ptr<ASTReaderListener> Second)
253 std::unique_ptr<ASTReaderListener> takeFirst() { return std::move(First); }
254 std::unique_ptr<ASTReaderListener> takeSecond() { return std::move(Second); }
415 std::unique_ptr<ASTReaderListener> Listener;
452 std::unique_ptr<llvm::Timer> ReadTimer;
459 std::unique_ptr<GlobalModuleIndex> GlobalIndex;
1497 std::unique_ptr<llvm::Timer> ReadTimer = {});
1575 std::unique_ptr<ASTReaderListener> takeListener() {
1580 void setListener(std::unique_ptr<ASTReaderListener> Listener) {
1587 void addListener(std::unique_ptr<ASTReaderListener> L) {
1600 ListenerScope(ASTReader &Reader, std::unique_ptr<ASTReaderListener> L)
1654 std::unique_ptr<llvm::MemoryBuffer> Buffer) {
2033 llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
tools/clang/include/clang/Serialization/ASTWriter.h 450 std::vector<std::unique_ptr<ModuleFileExtensionWriter>>
tools/clang/include/clang/Serialization/GlobalModuleIndex.h 61 std::unique_ptr<llvm::MemoryBuffer> Buffer;
117 explicit GlobalModuleIndex(std::unique_ptr<llvm::MemoryBuffer> Buffer,
tools/clang/include/clang/Serialization/InMemoryModuleCache.h 32 std::unique_ptr<llvm::MemoryBuffer> Buffer;
40 PCM(std::unique_ptr<llvm::MemoryBuffer> Buffer)
68 std::unique_ptr<llvm::MemoryBuffer> Buffer);
76 std::unique_ptr<llvm::MemoryBuffer> Buffer);
tools/clang/include/clang/Serialization/Module.h 211 std::vector<std::unique_ptr<ModuleFileExtensionReader>> ExtensionReaders;
tools/clang/include/clang/Serialization/ModuleFileExtension.h 87 virtual std::unique_ptr<ModuleFileExtensionWriter>
96 virtual std::unique_ptr<ModuleFileExtensionReader>
tools/clang/include/clang/Serialization/ModuleManager.h 51 SmallVector<std::unique_ptr<ModuleFile>, 2> Chain;
79 llvm::DenseMap<const FileEntry *, std::unique_ptr<llvm::MemoryBuffer>>
135 SmallVectorImpl<std::unique_ptr<ModuleFile>>::iterator>;
137 SmallVectorImpl<std::unique_ptr<ModuleFile>>::const_iterator>;
139 SmallVectorImpl<std::unique_ptr<ModuleFile>>::reverse_iterator>;
192 std::unique_ptr<llvm::MemoryBuffer> lookupBuffer(StringRef Name);
264 std::unique_ptr<llvm::MemoryBuffer> Buffer);
tools/clang/include/clang/Serialization/PCHContainerOperations.h 46 virtual std::unique_ptr<ASTConsumer>
50 std::unique_ptr<llvm::raw_pwrite_stream> OS,
73 std::unique_ptr<ASTConsumer>
77 std::unique_ptr<llvm::raw_pwrite_stream> OS,
91 llvm::StringMap<std::unique_ptr<PCHContainerWriter>> Writers;
92 llvm::StringMap<std::unique_ptr<PCHContainerReader>> Readers;
97 void registerWriter(std::unique_ptr<PCHContainerWriter> Writer) {
100 void registerReader(std::unique_ptr<PCHContainerReader> Reader) {
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h 71 llvm::DenseMap<PathDiagnosticConsumer *, std::unique_ptr<PathDiagnostic>>;
291 using VisitorList = SmallVector<std::unique_ptr<BugReporterVisitor>, 8>;
365 std::map<PathDiagnosticPieceRef, std::unique_ptr<StackHintGenerator>>
494 void addVisitor(std::unique_ptr<BugReporterVisitor> visitor);
512 std::unique_ptr<StackHintGenerator> StackHint) {
540 llvm::SmallVector<std::unique_ptr<BugReport>, 4> Reports;
542 void AddReport(std::unique_ptr<BugReport> &&R) {
547 BugReportEquivClass(std::unique_ptr<BugReport> R) { AddReport(std::move(R)); }
549 ArrayRef<std::unique_ptr<BugReport>> getReports() const { return Reports; }
616 virtual void emitReport(std::unique_ptr<BugReport> R);
646 virtual std::unique_ptr<DiagnosticForConsumerMapTy>
661 std::unique_ptr<DiagnosticForConsumerMapTy>
682 std::unique_ptr<DiagnosticForConsumerMapTy> generatePathDiagnostics(
686 void emitReport(std::unique_ptr<BugReport> R) override;
761 std::vector<std::unique_ptr<NoteTag>> Tags;
767 std::unique_ptr<NoteTag> T(new NoteTag(std::move(Cb), IsPrunable));
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h 217 void emitReport(std::unique_ptr<BugReport> R) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h 198 std::unique_ptr<ConstraintManager>
202 std::unique_ptr<ConstraintManager>
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h 80 std::unique_ptr<WorkList> WList;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h 366 std::unique_ptr<ExplodedGraph> MakeEmptyGraph() const {
439 std::unique_ptr<ExplodedGraph>
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h 41 typedef std::unique_ptr<ConstraintManager>(*ConstraintManagerCreator)(
43 typedef std::unique_ptr<StoreManager>(*StoreManagerCreator)(
464 std::unique_ptr<StoreManager> StoreMgr;
465 std::unique_ptr<ConstraintManager> ConstraintMgr;
477 std::unique_ptr<SValBuilder> svalBuilder;
480 std::unique_ptr<CallEventManager> CallEventMgr;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h 330 std::unique_ptr<StoreManager>
332 std::unique_ptr<StoreManager>
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h 82 static std::unique_ptr<WorkList> makeDFS();
83 static std::unique_ptr<WorkList> makeBFS();
84 static std::unique_ptr<WorkList> makeBFSBlockDFSContents();
85 static std::unique_ptr<WorkList> makeUnexploredFirst();
86 static std::unique_ptr<WorkList> makeUnexploredFirstPriorityQueue();
87 static std::unique_ptr<WorkList> makeUnexploredFirstPriorityLocationQueue();
tools/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h 55 std::unique_ptr<AnalysisASTConsumer>
tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h 27 std::unique_ptr<CheckerManager> createCheckerManager(
tools/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h 29 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
47 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/include/clang/Tooling/ASTDiff/ASTDiff.h 62 std::unique_ptr<Impl> DiffImpl;
100 std::unique_ptr<Impl> TreeImpl;
tools/clang/include/clang/Tooling/AllTUsExecution.h 51 std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
66 std::unique_ptr<ToolResults> Results;
tools/clang/include/clang/Tooling/CommonOptionsParser.h 125 std::unique_ptr<CompilationDatabase> Compilations;
133 std::unique_ptr<CompilationDatabase> Compilations)
146 std::unique_ptr<CompilationDatabase> Compilations;
tools/clang/include/clang/Tooling/CompilationDatabase.h 102 static std::unique_ptr<CompilationDatabase>
109 static std::unique_ptr<CompilationDatabase>
116 static std::unique_ptr<CompilationDatabase>
182 static std::unique_ptr<FixedCompilationDatabase> loadFromCommandLine(
188 static std::unique_ptr<FixedCompilationDatabase>
213 std::unique_ptr<CompilationDatabase>
214 inferMissingCompileCommands(std::unique_ptr<CompilationDatabase>);
219 std::unique_ptr<CompilationDatabase>
220 inferTargetAndDriverMode(std::unique_ptr<CompilationDatabase> Base);
tools/clang/include/clang/Tooling/CompilationDatabasePluginRegistry.h 35 virtual std::unique_ptr<CompilationDatabase>
tools/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h 153 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
tools/clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h 66 std::unique_ptr<ExcludedPreprocessorDirectiveSkipMapping> PPSkipMappings;
tools/clang/include/clang/Tooling/Execution.h 121 std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
125 llvm::Error execute(std::unique_ptr<FrontendActionFactory> Action);
127 llvm::Error execute(std::unique_ptr<FrontendActionFactory> Action,
158 virtual llvm::Expected<std::unique_ptr<ToolExecutor>>
171 llvm::Expected<std::unique_ptr<ToolExecutor>>
177 llvm::Expected<std::unique_ptr<ToolExecutor>>
tools/clang/include/clang/Tooling/FileMatchTrie.h 82 std::unique_ptr<PathComparator> Comparator;
tools/clang/include/clang/Tooling/JSONCompilationDatabase.h 67 static std::unique_ptr<JSONCompilationDatabase>
74 static std::unique_ptr<JSONCompilationDatabase>
97 JSONCompilationDatabase(std::unique_ptr<llvm::MemoryBuffer> Database,
133 std::unique_ptr<llvm::MemoryBuffer> Database;
tools/clang/include/clang/Tooling/Refactoring/RefactoringAction.h 58 std::vector<std::unique_ptr<RefactoringAction>> createRefactoringActions();
tools/clang/include/clang/Tooling/Refactoring/RefactoringActionRules.h 39 std::unique_ptr<RefactoringActionRule>
45 std::vector<std::unique_ptr<RefactoringActionRule>>;
tools/clang/include/clang/Tooling/Refactoring/RefactoringActionRulesInternal.h 117 std::unique_ptr<RefactoringActionRule>
tools/clang/include/clang/Tooling/Refactoring/RefactoringRuleContext.h 65 void setASTSelection(std::unique_ptr<SelectedASTNode> Node) {
83 std::unique_ptr<SelectedASTNode> ASTNodeSelection;
tools/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h 40 std::unique_ptr<ASTConsumer> newASTConsumer();
107 std::unique_ptr<ASTConsumer> newASTConsumer();
tools/clang/include/clang/Tooling/Refactoring/Rename/USRFindingAction.h 49 std::unique_ptr<ASTConsumer> newASTConsumer();
tools/clang/include/clang/Tooling/RefactoringCallbacks.h 67 std::unique_ptr<ASTConsumer> newASTConsumer();
96 static llvm::Expected<std::unique_ptr<ReplaceNodeWithTemplate>>
tools/clang/include/clang/Tooling/StandaloneExecution.h 59 std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
tools/clang/include/clang/Tooling/Syntax/Tree.h 54 lexBuffer(std::unique_ptr<llvm::MemoryBuffer> Buffer);
tools/clang/include/clang/Tooling/Tooling.h 102 virtual std::unique_ptr<FrontendAction> create() = 0;
113 std::unique_ptr<FrontendActionFactory> newFrontendActionFactory();
145 inline std::unique_ptr<FrontendActionFactory> newFrontendActionFactory(
157 bool runToolOnCode(std::unique_ptr<FrontendAction> ToolAction, const Twine &Code,
180 std::unique_ptr<FrontendAction> ToolAction, const Twine &Code,
189 std::unique_ptr<FrontendAction> ToolAction, const Twine &Code,
204 std::unique_ptr<ASTUnit>
222 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
244 std::unique_ptr<FrontendAction> FAction, FileManager *Files,
357 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
398 std::unique_ptr<FrontendActionFactory> newFrontendActionFactory() {
401 std::unique_ptr<FrontendAction> create() override {
406 return std::unique_ptr<FrontendActionFactory>(
411 inline std::unique_ptr<FrontendActionFactory> newFrontendActionFactory(
419 std::unique_ptr<FrontendAction> create() override {
431 std::unique_ptr<ASTConsumer>
459 return std::unique_ptr<FrontendActionFactory>(
tools/clang/lib/ARCMigrate/ARCMT.cpp 175 std::unique_ptr<CompilerInvocation> CInvok;
252 std::unique_ptr<CompilerInvocation> CInvok;
270 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
453 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
523 std::unique_ptr<CompilerInvocation> CInvok;
543 std::unique_ptr<ARCMTMacroTrackerAction> ASTAction;
546 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
606 std::unique_ptr<llvm::MemoryBuffer> memBuf(
tools/clang/lib/ARCMigrate/ARCMTActions.cpp 27 CheckAction::CheckAction(std::unique_ptr<FrontendAction> WrappedAction)
36 ModifyAction::ModifyAction(std::unique_ptr<FrontendAction> WrappedAction)
51 MigrateAction::MigrateAction(std::unique_ptr<FrontendAction> WrappedAction,
tools/clang/lib/ARCMigrate/FileRemapper.cpp 65 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> fileBuf =
208 std::unique_ptr<llvm::MemoryBuffer> memBuf) {
213 std::unique_ptr<llvm::MemoryBuffer> memBuf) {
tools/clang/lib/ARCMigrate/ObjCMT.cpp 89 std::unique_ptr<RetainSummaryManager> Summaries;
97 std::unique_ptr<NSAPI> NSAPIObj;
98 std::unique_ptr<edit::EditedSource> Editor;
194 std::unique_ptr<FrontendAction> WrappedAction,
204 std::unique_ptr<ASTConsumer>
209 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
369 std::unique_ptr<ParentMap> PMap;
1980 std::unique_ptr<llvm::MemoryBuffer> memBuf(
2019 std::unique_ptr<ASTConsumer>
2093 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp 40 std::unique_ptr<ParentMap> StmtMap;
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 62 std::unique_ptr<ParentMap> StmtMap;
65 mutable std::unique_ptr<ExprSet> Removables;
tools/clang/lib/AST/ASTContext.cpp10263 std::unique_ptr<MangleNumberingContext> &MCtx = MangleNumberingContexts[DC];
10272 std::unique_ptr<MangleNumberingContext> &MCtx =
10279 std::unique_ptr<MangleNumberingContext>
tools/clang/lib/AST/ASTImporter.cpp 8478 std::unique_ptr<llvm::MemoryBuffer> ToBuf =
tools/clang/lib/AST/CXXABI.h 52 virtual std::unique_ptr<MangleNumberingContext>
tools/clang/lib/AST/Expr.cpp 675 std::unique_ptr<MangleContext> MC;
tools/clang/lib/AST/ExternalASTMerger.cpp 258 for (const std::unique_ptr<ASTImporter> &I : Importers)
273 for (const std::unique_ptr<ASTImporter> &I : Importers)
288 for (const std::unique_ptr<ASTImporter> &Importer : Importers) {
tools/clang/lib/AST/Interp/Context.h 94 std::unique_ptr<Program> P;
tools/clang/lib/AST/Interp/Program.h 139 llvm::DenseMap<const FunctionDecl *, std::unique_ptr<Function>> Funcs;
141 std::vector<std::unique_ptr<Function>> AnonFuncs;
tools/clang/lib/AST/ItaniumCXXABI.cpp 186 std::unique_ptr<MangleContext> Mangler;
250 std::unique_ptr<MangleNumberingContext>
tools/clang/lib/AST/Mangle.cpp 294 std::unique_ptr<MangleContext> MC;
382 std::unique_ptr<MangleContext> M(Ctx.createMangleContext());
tools/clang/lib/AST/MicrosoftCXXABI.cpp 133 std::unique_ptr<MangleNumberingContext>
tools/clang/lib/AST/VTableBuilder.cpp 2266 static std::unique_ptr<VTableLayout>
2278 std::unique_ptr<const VTableLayout> &Entry = VTableLayouts[RD];
2314 std::unique_ptr<VTableLayout>
3272 for (const std::unique_ptr<VPtrInfo> &BaseInfo : BasePaths) {
3526 for (const std::unique_ptr<VPtrInfo>& Info : Paths) {
3572 for (const std::unique_ptr<VPtrInfo> &VFPtr : *VFPtrLocations[RD]) {
3668 std::unique_ptr<VirtualBaseInfo> &Entry = VBaseInfo[RD];
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp 1080 std::unique_ptr<ASTConsumer> MatchFinder::newASTConsumer() {
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 560 StringRef Name, std::vector<std::unique_ptr<MatcherDescriptor>> &Out)
578 std::vector<std::unique_ptr<MatcherDescriptor>> &Out;
589 MutableArrayRef<std::unique_ptr<MatcherDescriptor>> Callbacks)
657 std::vector<std::unique_ptr<MatcherDescriptor>> Overloads;
728 std::unique_ptr<MatcherDescriptor>
739 std::unique_ptr<MatcherDescriptor>
751 std::unique_ptr<MatcherDescriptor>
766 std::unique_ptr<MatcherDescriptor> makeMatcherAutoMarshall(
777 std::unique_ptr<MatcherDescriptor> makeMatcherAutoMarshall(
787 std::unique_ptr<MatcherDescriptor> makeMatcherAutoMarshall(
791 std::vector<std::unique_ptr<MatcherDescriptor>> Overloads;
809 std::unique_ptr<MatcherDescriptor> makeMatcherAutoMarshall(
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 44 using ConstructorMap = llvm::StringMap<std::unique_ptr<const MatcherDescriptor>>;
55 std::unique_ptr<MatcherDescriptor> Callback);
63 StringRef MatcherName, std::unique_ptr<MatcherDescriptor> Callback) {
118 std::unique_ptr<MatcherDescriptor> equalsCallbacks[] = {
tools/clang/lib/Analysis/AnalysisDeclContext.cpp 303 std::unique_ptr<AnalysisDeclContext> &AC = Contexts[D];
tools/clang/lib/Analysis/CFG.cpp 473 std::unique_ptr<CFG> cfg;
539 std::unique_ptr<CFG> buildCFG(const Decl *D, Stmt *Statement);
1479 std::unique_ptr<CFG> CFGBuilder::buildCFG(const Decl *D, Stmt *Statement) {
4897 std::unique_ptr<CFG> CFG::buildCFG(const Decl *D, Stmt *Statement,
tools/clang/lib/Analysis/CallGraph.cpp 203 std::unique_ptr<CallGraphNode> &Node = FunctionMap[F];
tools/clang/lib/Analysis/Consumed.cpp 1019 std::unique_ptr<ConsumedStateMap> &OwnedStateMap) {
1033 std::unique_ptr<ConsumedStateMap> StateMap) {
1056 std::unique_ptr<ConsumedStateMap>
1230 std::unique_ptr<ConsumedStateMap> FalseStates(
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 419 std::unique_ptr<FunctionParmMutationAnalyzer> &Analyzer =
tools/clang/lib/Analysis/PathDiagnostic.cpp 123 std::unique_ptr<FilesToLineNumsMap> ExecutedLines)
141 std::unique_ptr<PathDiagnostic> D) {
tools/clang/lib/Analysis/ThreadSafety.cpp 159 std::vector<std::unique_ptr<const FactEntry>> Facts;
162 FactID newFact(std::unique_ptr<FactEntry> Entry) {
206 FactID addLock(FactManager &FM, std::unique_ptr<FactEntry> Entry) {
288 llvm::DenseMap<const ValueDecl *, std::unique_ptr<BeforeInfo>>;
1030 void addLock(FactSet &FSet, std::unique_ptr<FactEntry> Entry,
1077 std::unique_ptr<BeforeInfo> &InfoPtr = BMap[Vd];
1285 std::unique_ptr<FactEntry> Entry,
tools/clang/lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp 11 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/Basic/FileManager.cpp 63 void FileManager::setStatCache(std::unique_ptr<FileSystemStatCache> statCache) {
251 std::unique_ptr<llvm::vfs::File> F;
456 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
478 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
498 bool isFile, std::unique_ptr<llvm::vfs::File> *F) {
tools/clang/lib/Basic/FileSystemStatCache.cpp 35 bool isFile, std::unique_ptr<llvm::vfs::File> *F,
104 std::unique_ptr<llvm::vfs::File> *F,
tools/clang/lib/Basic/SanitizerSpecialCaseList.cpp 17 std::unique_ptr<SanitizerSpecialCaseList>
20 std::unique_ptr<clang::SanitizerSpecialCaseList> SSCL(
29 std::unique_ptr<SanitizerSpecialCaseList>
tools/clang/lib/Basic/SourceManager.cpp 1851 std::unique_ptr<MacroArgsMap> &MacroArgsCache = MacroArgsCacheMap[FID];
tools/clang/lib/Basic/Targets.cpp 618 std::unique_ptr<TargetInfo> Target(AllocateTarget(Triple, *Opts));
tools/clang/lib/Basic/Targets/NVPTX.h 53 std::unique_ptr<TargetInfo> HostTarget;
tools/clang/lib/CodeGen/BackendUtil.cpp 93 std::unique_ptr<raw_pwrite_stream> OS;
120 std::unique_ptr<llvm::ToolOutputFile> openOutputFile(StringRef Path) {
146 std::unique_ptr<TargetMachine> TM;
149 std::unique_ptr<raw_pwrite_stream> OS);
152 std::unique_ptr<raw_pwrite_stream> OS);
557 std::unique_ptr<TargetLibraryInfoImpl> TLII(
784 std::unique_ptr<TargetLibraryInfoImpl> TLII(
808 std::unique_ptr<raw_pwrite_stream> OS) {
837 std::unique_ptr<llvm::ToolOutputFile> ThinLinkOS, DwoOS;
1001 BackendAction Action, std::unique_ptr<raw_pwrite_stream> OS) {
1100 std::unique_ptr<TargetLibraryInfoImpl> TLII(
1259 std::unique_ptr<llvm::ToolOutputFile> ThinLinkOS, DwoOS;
1367 std::unique_ptr<raw_pwrite_stream> OS,
1397 std::vector<std::unique_ptr<llvm::MemoryBuffer>> OwnedImports;
1401 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MBOrErr =
1499 std::unique_ptr<raw_pwrite_stream> OS) {
1503 std::unique_ptr<llvm::Module> EmptyModule;
1508 Expected<std::unique_ptr<ModuleSummaryIndex>> IndexOrErr =
1517 std::unique_ptr<ModuleSummaryIndex> CombinedIndex = std::move(*IndexOrErr);
tools/clang/lib/CodeGen/CGBlocks.cpp 916 std::unique_ptr<CGBlockInfo> blockInfo;
tools/clang/lib/CodeGen/CGCUDANV.cpp 63 std::unique_ptr<MangleContext> DeviceMC;
516 std::unique_ptr<llvm::MemoryBuffer> CudaGpuBinary = nullptr;
518 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> CudaGpuBinaryOrErr =
tools/clang/lib/CodeGen/CGCXXABI.h 46 std::unique_ptr<MangleContext> MangleCtx;
tools/clang/lib/CodeGen/CGCall.cpp 903 static std::unique_ptr<TypeExpansion>
tools/clang/lib/CodeGen/CGLoopInfo.h 282 llvm::SmallVector<std::unique_ptr<LoopInfo>, 4> Active;
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h 465 std::unique_ptr<CodeGenFunction::OMPMapVars> MappedParams;
tools/clang/lib/CodeGen/CGVTables.cpp 763 std::unique_ptr<VTableLayout> VTLayout(
tools/clang/lib/CodeGen/CodeGenAction.cpp 95 std::unique_ptr<raw_pwrite_stream> AsmOutStream;
106 std::unique_ptr<CodeGenerator> Gen;
137 std::unique_ptr<llvm::Module> takeModule() {
265 std::unique_ptr<DiagnosticHandler> OldDiagnosticHandler =
270 Expected<std::unique_ptr<llvm::ToolOutputFile>> OptRecordFileOrErr =
294 std::unique_ptr<llvm::ToolOutputFile> OptRecordFile =
411 std::unique_ptr<llvm::MemoryBuffer> CBuf =
861 std::unique_ptr<llvm::Module> CodeGenAction::takeModule() {
870 static std::unique_ptr<raw_pwrite_stream>
890 std::unique_ptr<ASTConsumer>
893 std::unique_ptr<raw_pwrite_stream> OS = CI.takeOutputStream();
912 Expected<std::unique_ptr<llvm::Module>> ModuleOrErr =
934 std::unique_ptr<BackendConsumer> Result(new BackendConsumer(
945 std::unique_ptr<PPCallbacks> Callbacks =
978 std::unique_ptr<llvm::Module>
1011 Expected<std::unique_ptr<llvm::Module>> MOrErr =
1019 if (std::unique_ptr<llvm::Module> M = parseIR(MBRef, Err, *VMContext))
1049 std::unique_ptr<raw_pwrite_stream> OS =
tools/clang/lib/CodeGen/CodeGenFunction.h 306 std::unique_ptr<CGCoroData> Data;
tools/clang/lib/CodeGen/CodeGenModule.h 304 std::unique_ptr<CGCXXABI> ABI;
307 std::unique_ptr<CodeGenTBAA> TBAA;
309 mutable std::unique_ptr<TargetCodeGenInfo> TheTargetCodeGenInfo;
319 std::unique_ptr<CGObjCRuntime> ObjCRuntime;
320 std::unique_ptr<CGOpenCLRuntime> OpenCLRuntime;
321 std::unique_ptr<CGOpenMPRuntime> OpenMPRuntime;
322 std::unique_ptr<CGCUDARuntime> CUDARuntime;
323 std::unique_ptr<CGDebugInfo> DebugInfo;
324 std::unique_ptr<ObjCEntrypoints> ObjCData;
326 std::unique_ptr<llvm::IndexedInstrProfReader> PGOReader;
328 std::unique_ptr<llvm::SanitizerStatReport> SanStats;
534 std::unique_ptr<SanitizerMetadata> SanitizerMD;
540 std::unique_ptr<CoverageMappingModuleGen> CoverageMapping;
tools/clang/lib/CodeGen/CodeGenPGO.h 36 std::unique_ptr<llvm::DenseMap<const Stmt *, unsigned>> RegionCounterMap;
37 std::unique_ptr<llvm::DenseMap<const Stmt *, uint64_t>> StmtCountMap;
38 std::unique_ptr<llvm::InstrProfRecord> ProfRecord;
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 98 for (const std::unique_ptr<VPtrInfo> &VBT : *VBGlobals.VBTables) {
1242 const std::unique_ptr<VPtrInfo> &VBT = (*VBGlobals.VBTables)[I];
1659 for (const std::unique_ptr<VPtrInfo>& Info : VFPtrs) {
1755 const std::unique_ptr<VPtrInfo> *VFPtrI = std::find_if(
1763 const std::unique_ptr<VPtrInfo> &VFPtr = *VFPtrI;
2040 const std::unique_ptr<VPtrInfo>& VBT = (*VBGlobals.VBTables)[I];
tools/clang/lib/CodeGen/ModuleBuilder.cpp 62 std::unique_ptr<llvm::Module> M;
63 std::unique_ptr<CodeGen::CodeGenModule> Builder;
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp 53 std::unique_ptr<llvm::LLVMContext> VMContext;
54 std::unique_ptr<llvm::Module> M;
55 std::unique_ptr<CodeGen::CodeGenModule> Builder;
56 std::unique_ptr<raw_pwrite_stream> OS;
138 std::unique_ptr<raw_pwrite_stream> OS,
240 std::unique_ptr<llvm::LLVMContext> VMContext = std::move(this->VMContext);
241 std::unique_ptr<llvm::Module> M = std::move(this->M);
242 std::unique_ptr<CodeGen::CodeGenModule> Builder = std::move(this->Builder);
318 std::unique_ptr<ASTConsumer>
322 std::unique_ptr<llvm::raw_pwrite_stream> OS,
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp 348 std::unique_ptr<ASTUnit>
384 std::unique_ptr<ASTUnit> LoadedUnit = FileAccessor(FileName);
tools/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp 323 llvm::Expected<std::unique_ptr<DirectoryWatcher>> clang::DirectoryWatcher::create(
tools/clang/lib/Driver/Compilation.cpp 156 std::unique_ptr<llvm::raw_fd_ostream> OwnedStream;
tools/clang/lib/Driver/DarwinSDKInfo.cpp 22 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
tools/clang/lib/Driver/Distro.cpp 21 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
tools/clang/lib/Driver/Driver.cpp 1098 std::unique_ptr<llvm::opt::InputArgList> UArgs =
1184 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> CrashFile =
tools/clang/lib/Driver/SanitizerArgs.cpp 581 std::unique_ptr<llvm::SpecialCaseList> SCL(
tools/clang/lib/Driver/ToolChain.cpp 1053 std::unique_ptr<Arg> XOpenMPTargetArg(Opts.ParseOneArg(Args, Index));
tools/clang/lib/Driver/ToolChains/Clang.h 90 mutable std::unique_ptr<visualstudio::Compiler> CLFallback;
92 mutable std::unique_ptr<llvm::raw_fd_ostream> CompilationDatabase = nullptr;
tools/clang/lib/Driver/ToolChains/Cuda.cpp 155 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> VersionFile =
802 std::unique_ptr<Arg> XarchArg(Opts.ParseOneArg(Args, Index));
tools/clang/lib/Driver/ToolChains/Darwin.cpp 655 std::unique_ptr<Command> Cmd =
2097 std::unique_ptr<Arg> XarchArg(Opts.ParseOneArg(Args, Index));
tools/clang/lib/Driver/ToolChains/Darwin.h 135 mutable std::unique_ptr<tools::darwin::Lipo> Lipo;
136 mutable std::unique_ptr<tools::darwin::Dsymutil> Dsymutil;
137 mutable std::unique_ptr<tools::darwin::VerifyDebug> VerifyDebug;
tools/clang/lib/Driver/ToolChains/Gnu.cpp 2435 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
2447 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> ConfigFile =
tools/clang/lib/Driver/ToolChains/Gnu.h 335 mutable std::unique_ptr<tools::gcc::Preprocessor> Preprocess;
336 mutable std::unique_ptr<tools::gcc::Compiler> Compile;
tools/clang/lib/Driver/ToolChains/HIP.cpp 376 std::unique_ptr<Arg> XarchArg(Opts.ParseOneArg(Args, Index));
tools/clang/lib/Driver/ToolChains/MSVC.cpp 599 std::unique_ptr<Command> visualstudio::Compiler::GetCommand(
tools/clang/lib/Driver/ToolChains/MSVC.h 54 std::unique_ptr<Command> GetCommand(Compilation &C, const JobAction &JA,
tools/clang/lib/Driver/ToolChains/MinGW.h 99 mutable std::unique_ptr<tools::gcc::Preprocessor> Preprocessor;
100 mutable std::unique_ptr<tools::gcc::Compiler> Compiler;
tools/clang/lib/Driver/ToolChains/Myriad.h 95 mutable std::unique_ptr<Tool> Compiler;
96 mutable std::unique_ptr<Tool> Assembler;
tools/clang/lib/Format/ContinuationIndenter.cpp 1758 std::unique_ptr<BreakableToken>
1841 std::unique_ptr<const BreakableToken> Token =
tools/clang/lib/Format/ContinuationIndenter.h 151 std::unique_ptr<BreakableToken>
tools/clang/lib/Format/Format.cpp 2631 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Text =
tools/clang/lib/Format/FormatToken.h 209 std::unique_ptr<TokenRole> Role;
tools/clang/lib/Format/FormatTokenLexer.h 97 std::unique_ptr<Lexer> Lex;
tools/clang/lib/Format/TokenAnalyzer.h 67 std::unique_ptr<SourceManagerForFile> VirtualSM;
tools/clang/lib/Format/UnwrappedLineParser.cpp 167 std::unique_ptr<UnwrappedLine> PreBlockLine;
tools/clang/lib/Format/UnwrappedLineParser.h 177 std::unique_ptr<UnwrappedLine> Line;
tools/clang/lib/Frontend/ASTConsumers.cpp 37 ASTPrinter(std::unique_ptr<raw_ostream> Out, Kind K,
99 std::unique_ptr<raw_ostream> OwnedOut;
139 std::unique_ptr<ASTConsumer>
140 clang::CreateASTPrinter(std::unique_ptr<raw_ostream> Out,
146 std::unique_ptr<ASTConsumer>
147 clang::CreateASTDumper(std::unique_ptr<raw_ostream> Out, StringRef FilterString,
158 std::unique_ptr<ASTConsumer> clang::CreateASTDeclNodeLister() {
195 std::unique_ptr<ASTConsumer> clang::CreateASTViewer() {
tools/clang/lib/Frontend/ASTMerge.cpp 19 std::unique_ptr<ASTConsumer>
49 std::unique_ptr<ASTUnit> Unit = ASTUnit::LoadFromASTFile(
87 ASTMergeAction::ASTMergeAction(std::unique_ptr<FrontendAction> adaptedAction,
tools/clang/lib/Frontend/ASTUnit.cpp 141 static std::unique_ptr<T> valueOrNull(llvm::ErrorOr<std::unique_ptr<T>> Val) {
141 static std::unique_ptr<T> valueOrNull(llvm::ErrorOr<std::unique_ptr<T>> Val) {
157 static std::unique_ptr<llvm::MemoryBuffer>
167 std::unique_ptr<llvm::MemoryBuffer> BufferOwner;
647 std::unique_ptr<DiagnosticConsumer> OwningPreviousClient;
734 std::unique_ptr<llvm::MemoryBuffer>
756 std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile(
763 std::unique_ptr<ASTUnit> AST(new ASTUnit(true));
1000 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
1052 std::unique_ptr<PPCallbacks> createPPCallbacks() override {
1100 std::unique_ptr<llvm::MemoryBuffer> OverrideMainBuffer,
1118 std::unique_ptr<CompilerInstance> Clang(
1194 std::unique_ptr<TopLevelDeclTrackerAction> Act(
1301 std::unique_ptr<llvm::MemoryBuffer>
1309 std::unique_ptr<llvm::MemoryBuffer> MainFileBuffer =
1491 std::unique_ptr<ASTUnit>
1496 std::unique_ptr<ASTUnit> AST(new ASTUnit(false));
1520 std::unique_ptr<ASTUnit> *ErrAST) {
1523 std::unique_ptr<ASTUnit> OwnAST;
1559 std::unique_ptr<CompilerInstance> Clang(
1608 std::unique_ptr<TopLevelDeclTrackerAction> TrackerAct;
1630 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
1673 std::unique_ptr<llvm::MemoryBuffer> OverrideMainBuffer;
1692 std::unique_ptr<ASTUnit> ASTUnit::LoadFromCompilerInvocation(
1701 std::unique_ptr<ASTUnit> AST(new ASTUnit(false));
1740 llvm::Optional<StringRef> ModuleFormat, std::unique_ptr<ASTUnit> *ErrAST,
1779 std::unique_ptr<ASTUnit> AST;
1854 std::unique_ptr<llvm::MemoryBuffer> OverrideMainBuffer;
2179 std::unique_ptr<CompilerInstance> Clang(
2242 std::unique_ptr<llvm::MemoryBuffer> OverrideMainBuffer;
2286 std::unique_ptr<SyntaxOnlyAction> Act;
tools/clang/lib/Frontend/ChainedIncludesSource.cpp 31 ChainedIncludesSourceImpl(std::vector<std::unique_ptr<CompilerInstance>> CIs)
51 std::vector<std::unique_ptr<CompilerInstance>> CIs;
58 std::vector<std::unique_ptr<CompilerInstance>> CIs,
71 ChainedIncludesSource(std::vector<std::unique_ptr<CompilerInstance>> CIs,
80 SmallVectorImpl<std::unique_ptr<llvm::MemoryBuffer>> &MemBufs,
84 std::unique_ptr<ASTReader> Reader;
118 std::vector<std::unique_ptr<CompilerInstance>> CIs;
121 SmallVector<std::unique_ptr<llvm::MemoryBuffer>, 4> SerialBufs;
126 std::unique_ptr<CompilerInvocation> CInvok;
146 std::unique_ptr<CompilerInstance> Clang(
175 SmallVector<std::unique_ptr<llvm::MemoryBuffer>, 4> Bufs;
tools/clang/lib/Frontend/CompilerInstance.cpp 92 void CompilerInstance::setVerboseOutputStream(std::unique_ptr<raw_ostream> Value) {
123 void CompilerInstance::setASTConsumer(std::unique_ptr<ASTConsumer> Value) {
134 std::unique_ptr<Sema> CompilerInstance::takeSema() {
205 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buffer =
222 std::unique_ptr<raw_ostream> StreamOwner;
670 std::unique_ptr<raw_pwrite_stream>
678 std::unique_ptr<raw_pwrite_stream> CompilerInstance::createNullOutputFile() {
682 std::unique_ptr<raw_pwrite_stream>
689 std::unique_ptr<raw_pwrite_stream> OS = createOutputFile(
706 std::unique_ptr<llvm::raw_pwrite_stream> CompilerInstance::createOutputFile(
727 std::unique_ptr<llvm::raw_fd_ostream> OS;
877 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> SBOrErr =
883 std::unique_ptr<llvm::MemoryBuffer> SB = std::move(SBOrErr.get());
1230 std::unique_ptr<llvm::MemoryBuffer> ModuleMapBuffer =
1491 std::unique_ptr<llvm::Timer> ReadTimer;
tools/clang/lib/Frontend/CompilerInvocation.cpp 656 std::unique_ptr<llvm::IndexedInstrProfReader> PGOReader =
3701 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buffer =
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp 27 std::unique_ptr<CompilerInvocation> clang::createInvocationFromCommandLine(
48 std::unique_ptr<driver::Compilation> C(TheDriver.BuildCompilation(Args));
tools/clang/lib/Frontend/FrontendAction.cpp 137 std::unique_ptr<ASTUnit> AST) {
148 std::unique_ptr<ASTConsumer>
151 std::unique_ptr<ASTConsumer> Consumer = CreateASTConsumer(CI, InFile);
183 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
184 std::vector<std::unique_ptr<ASTConsumer>> AfterConsumers;
188 std::unique_ptr<PluginASTAction> P = it->instantiate();
204 std::unique_ptr<ASTConsumer> PluginConsumer = P->CreateASTConsumer(CI, InFile);
242 std::unique_ptr<Lexer> RawLexer(
512 static std::unique_ptr<llvm::MemoryBuffer>
565 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile(
631 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile(
823 std::unique_ptr<ASTConsumer> Consumer =
1048 std::unique_ptr<ASTConsumer>
1057 std::unique_ptr<ASTConsumer>
1100 std::unique_ptr<FrontendAction> WrappedAction)
tools/clang/lib/Frontend/FrontendActions.cpp 56 std::unique_ptr<ASTConsumer>
68 std::unique_ptr<ASTConsumer>
70 if (std::unique_ptr<raw_ostream> OS =
76 std::unique_ptr<ASTConsumer>
84 std::unique_ptr<ASTConsumer>
89 std::unique_ptr<ASTConsumer>
94 std::unique_ptr<ASTConsumer>
101 std::unique_ptr<raw_pwrite_stream> OS =
111 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
134 std::unique_ptr<llvm::raw_pwrite_stream>
140 std::unique_ptr<raw_pwrite_stream> OS =
162 std::unique_ptr<ASTConsumer>
165 std::unique_ptr<raw_pwrite_stream> OS = CreateOutputFile(CI, InFile);
173 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
198 std::unique_ptr<raw_pwrite_stream>
235 std::unique_ptr<raw_pwrite_stream>
305 std::unique_ptr<raw_pwrite_stream>
314 std::unique_ptr<ASTConsumer>
319 std::unique_ptr<ASTConsumer>
325 std::unique_ptr<ASTConsumer>
334 std::unique_ptr<ASTReader> Reader(new ASTReader(
473 std::unique_ptr<ASTConsumer>
700 std::unique_ptr<llvm::raw_fd_ostream> OutFile;
819 std::unique_ptr<raw_ostream> OS =
874 std::unique_ptr<raw_ostream> OSP =
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp 303 std::unique_ptr<ASTConsumer>
tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp 22 std::unique_ptr<raw_ostream> StreamOwner)
tools/clang/lib/Frontend/MultiplexConsumer.cpp 238 std::vector<std::unique_ptr<ASTConsumer>> C)
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 53 std::unique_ptr<llvm::MemoryBuffer> PCHBuffer,
134 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
163 std::unique_ptr<raw_ostream> Out)
193 std::unique_ptr<raw_ostream> Out;
196 std::unique_ptr<ASTConsumer>
203 std::unique_ptr<llvm::raw_ostream> OS;
280 std::unique_ptr<CompilerInstance> Clang(
341 std::unique_ptr<PrecompilePreambleAction> Act;
348 std::unique_ptr<PPCallbacks> DelegatedPPCallbacks =
764 std::unique_ptr<PPCallbacks> PreambleCallbacks::createPPCallbacks() {
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp 878 std::unique_ptr<UnknownPragmaHandler> MicrosoftExtHandler(
883 std::unique_ptr<UnknownPragmaHandler> GCCHandler(new UnknownPragmaHandler(
887 std::unique_ptr<UnknownPragmaHandler> ClangHandler(new UnknownPragmaHandler(
900 std::unique_ptr<UnknownPragmaHandler> OpenMPHandler(
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp 100 std::unique_ptr<llvm::raw_fd_ostream> OS;
tools/clang/lib/Frontend/Rewrite/FrontendActions.cpp 40 std::unique_ptr<ASTConsumer>
42 if (std::unique_ptr<raw_ostream> OS =
51 std::unique_ptr<ASTConsumer>
121 std::unique_ptr<FrontendAction> FixAction(new SyntaxOnlyAction());
123 std::unique_ptr<FixItOptions> FixItOpts;
163 std::unique_ptr<ASTConsumer>
165 if (std::unique_ptr<raw_ostream> OS =
187 std::unique_ptr<raw_ostream> OS =
196 std::unique_ptr<raw_ostream> OS =
tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp 33 std::unique_ptr<raw_ostream> Out;
38 HTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &pp,
48 std::unique_ptr<ASTConsumer>
49 clang::CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &PP,
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 75 std::unique_ptr<raw_ostream> OutFile;
242 RewriteModernObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
642 std::unique_ptr<raw_ostream> OS,
662 std::unique_ptr<ASTConsumer> clang::CreateModernObjCRewriter(
663 const std::string &InFile, std::unique_ptr<raw_ostream> OS,
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 74 std::unique_ptr<raw_ostream> OutFile;
193 RewriteObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
509 RewriteObjCFragileABI(std::string inFile, std::unique_ptr<raw_ostream> OS,
577 RewriteObjC::RewriteObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
591 std::unique_ptr<ASTConsumer>
593 std::unique_ptr<raw_ostream> OS,
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp 287 std::unique_ptr<DiagnosticsEngine> MetaDiagnostics;
297 std::unique_ptr<DiagnosticConsumer>
tools/clang/lib/Frontend/TestModuleFileExtension.cpp 106 std::unique_ptr<ModuleFileExtensionWriter>
111 std::unique_ptr<ModuleFileExtensionReader>
tools/clang/lib/Frontend/TestModuleFileExtension.h 60 std::unique_ptr<ModuleFileExtensionWriter>
63 std::unique_ptr<ModuleFileExtensionReader>
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp 299 std::unique_ptr<Directive> D =
1040 std::unique_ptr<DiagnosticConsumer> Owner = Diags.takeClient();
1114 std::unique_ptr<Directive> Directive::create(bool RegexKind,
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp 37 static std::unique_ptr<FrontendAction>
80 std::unique_ptr<PluginASTAction> P(it->instantiate());
134 std::unique_ptr<FrontendAction>
137 std::unique_ptr<FrontendAction> Act = CreateFrontendBaseAction(CI);
218 std::unique_ptr<PluginASTAction> P(it->instantiate());
287 std::unique_ptr<FrontendAction> Act(CreateFrontendAction(*Clang));
tools/clang/lib/Index/IndexingAction.cpp 116 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
126 std::unique_ptr<ASTConsumer> index::createIndexingASTConsumer(
134 std::unique_ptr<FrontendAction>
190 std::unique_ptr<PPCallbacks>
tools/clang/lib/Lex/HeaderMap.cpp 50 std::unique_ptr<HeaderMap> HeaderMap::Create(const FileEntry *FE,
tools/clang/lib/Lex/HeaderSearch.cpp 124 if (std::unique_ptr<HeaderMap> HM = HeaderMap::Create(FE, FileMgr)) {
tools/clang/lib/Lex/PPLexerChange.cpp 129 std::unique_ptr<TokenLexer> TokLexer;
181 std::unique_ptr<TokenLexer> TokLexer;
tools/clang/lib/Lex/Preprocessor.cpp 557 std::unique_ptr<llvm::MemoryBuffer> SB =
tools/clang/lib/Lex/ScratchBuffer.cpp 76 std::unique_ptr<llvm::WritableMemoryBuffer> OwnBuf =
tools/clang/lib/Parse/ParseAST.cpp 105 std::unique_ptr<Sema> S(
131 std::unique_ptr<Parser> ParseOP(
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 310 std::unique_ptr<CachedTokens> Toks = std::move(LM.DefaultArgs[I].Toks);
tools/clang/lib/Parse/ParseDecl.cpp 6614 std::unique_ptr<CachedTokens> DefArgToks;
tools/clang/lib/Parse/ParseExpr.cpp 573 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Parse/ParseStmt.cpp 142 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Parse/ParseStmtAsm.cpp 584 std::unique_ptr<llvm::MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TT));
587 std::unique_ptr<llvm::MCAsmInfo> MAI(
590 std::unique_ptr<llvm::MCInstrInfo> MII(TheTarget->createMCInstrInfo());
591 std::unique_ptr<llvm::MCObjectFileInfo> MOFI(new llvm::MCObjectFileInfo());
592 std::unique_ptr<llvm::MCSubtargetInfo> STI(
598 std::unique_ptr<llvm::MemoryBuffer> Buffer =
604 std::unique_ptr<llvm::MCStreamer> Str(createNullStreamer(Ctx));
605 std::unique_ptr<llvm::MCAsmParser> Parser(
608 std::unique_ptr<llvm::MCTargetAsmParser> TargetParser(
611 std::unique_ptr<llvm::MCInstPrinter> IP(
tools/clang/lib/Parse/ParseTentative.cpp 1195 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Rewrite/Rewriter.cpp 459 std::unique_ptr<llvm::raw_fd_ostream> FileStream;
tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp 308 llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
tools/clang/lib/Sema/Sema.cpp 185 std::unique_ptr<sema::SemaPPCallbacks> Callbacks =
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 442 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaDecl.cpp 109 std::unique_ptr<CorrectionCandidateCallback> clone() override {
7939 std::unique_ptr<CorrectionCandidateCallback> clone() override {
17224 typedef SmallVector<std::unique_ptr<ECDVector>, 3> DuplicatesVector;
tools/clang/lib/Sema/SemaDeclCXX.cpp 399 std::unique_ptr<CachedTokens> Toks =
4018 std::unique_ptr<CorrectionCandidateCallback> clone() override {
9795 std::unique_ptr<CorrectionCandidateCallback> clone() override {
10375 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaDeclObjC.cpp 514 std::unique_ptr<CorrectionCandidateCallback> clone() override {
1389 std::unique_ptr<CorrectionCandidateCallback> clone() override {
2646 typedef std::unique_ptr<ProtocolNameSet> LazyProtocolNameSet;
tools/clang/lib/Sema/SemaExpr.cpp 4972 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaExprMember.cpp 631 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaExprObjC.cpp 2117 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaInit.cpp 2309 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaLookup.cpp 3777 std::unique_ptr<IdentifierIterator> Iter(External->getIdentifiers());
4797 std::unique_ptr<TypoCorrectionConsumer> Sema::makeTypoCorrectionConsumer(
4865 std::unique_ptr<CorrectionCandidateCallback> ClonedCCC = CCC.clone();
4908 std::unique_ptr<IdentifierIterator> Iter(External->getIdentifiers());
5476 TypoExpr *Sema::createDelayedTypo(std::unique_ptr<TypoCorrectionConsumer> TCC,
tools/clang/lib/Sema/SemaObjCProperty.cpp 2007 std::unique_ptr<ObjCContainerDecl::PropertyMap> LazyMap;
tools/clang/lib/Sema/SemaOpenMP.cpp 2226 std::unique_ptr<CorrectionCandidateCallback> clone() override {
2248 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaTemplate.cpp 628 std::unique_ptr<CorrectionCandidateCallback> clone() override {
3423 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Sema/SemaTemplateVariadic.cpp 953 std::unique_ptr<CorrectionCandidateCallback> clone() override {
tools/clang/lib/Serialization/ASTReader.cpp 8471 std::unique_ptr<IdentifierIterator> Current;
8472 std::unique_ptr<IdentifierIterator> Queued;
8475 ChainedIdentifierIterator(std::unique_ptr<IdentifierIterator> First,
8476 std::unique_ptr<IdentifierIterator> Second)
8498 std::unique_ptr<IdentifierIterator> ReaderIter(
8500 std::unique_ptr<IdentifierIterator> ModulesIter(
8788 llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
12222 std::unique_ptr<llvm::Timer> ReadTimer)
tools/clang/lib/Serialization/GlobalModuleIndex.cpp 128 GlobalModuleIndex::GlobalModuleIndex(std::unique_ptr<llvm::MemoryBuffer> Buffer,
258 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> BufferOrErr =
263 std::unique_ptr<llvm::MemoryBuffer> Buffer = std::move(BufferOrErr.get());
688 std::unique_ptr<InterestingIdentifierTable> Table(
tools/clang/lib/Serialization/InMemoryModuleCache.cpp 26 std::unique_ptr<llvm::MemoryBuffer> Buffer) {
34 std::unique_ptr<llvm::MemoryBuffer> Buffer) {
tools/clang/lib/Serialization/ModuleManager.cpp 69 std::unique_ptr<llvm::MemoryBuffer>
164 if (std::unique_ptr<llvm::MemoryBuffer> Buffer = lookupBuffer(FileName)) {
183 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buf((std::error_code()));
275 std::unique_ptr<llvm::MemoryBuffer> Buffer) {
tools/clang/lib/Serialization/PCHContainerOperations.cpp 30 std::unique_ptr<raw_pwrite_stream> OS;
33 RawPCHContainerGenerator(std::unique_ptr<llvm::raw_pwrite_stream> OS,
53 std::unique_ptr<ASTConsumer> RawPCHContainerWriter::CreatePCHContainerGenerator(
55 const std::string &OutputFileName, std::unique_ptr<llvm::raw_pwrite_stream> OS,
tools/clang/lib/StaticAnalyzer/Checkers/AllocationState.h 26 std::unique_ptr<BugReporterVisitor> getInnerPointerBRVisitor(SymbolRef Sym);
tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp 33 mutable std::unique_ptr<BuiltinBug> BT;
38 std::unique_ptr<BugReporterVisitor> Visitor = nullptr) const;
232 std::unique_ptr<BugReporterVisitor> Visitor) const {
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 99 mutable std::unique_ptr<APIMisuse> BT;
343 mutable std::unique_ptr<APIMisuse> BT;
599 mutable std::unique_ptr<BugType> BT;
657 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp 40 std::unique_ptr<BugType> BlockInCritSectionBugType;
tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp 25 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp 37 mutable std::unique_ptr<BugType> BT_Null, BT_Bounds, BT_Overlap,
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 37 mutable std::unique_ptr<BugType> BT_call_null;
38 mutable std::unique_ptr<BugType> BT_call_undef;
39 mutable std::unique_ptr<BugType> BT_cxx_call_null;
40 mutable std::unique_ptr<BugType> BT_cxx_call_undef;
41 mutable std::unique_ptr<BugType> BT_call_arg;
42 mutable std::unique_ptr<BugType> BT_cxx_delete_undef;
43 mutable std::unique_ptr<BugType> BT_msg_undef;
44 mutable std::unique_ptr<BugType> BT_objc_prop_undef;
45 mutable std::unique_ptr<BugType> BT_objc_subscript_undef;
46 mutable std::unique_ptr<BugType> BT_msg_arg;
47 mutable std::unique_ptr<BugType> BT_msg_ret;
48 mutable std::unique_ptr<BugType> BT_call_few_args;
69 std::unique_ptr<BugType> &BT,
80 void LazyInit_BT(const char *desc, std::unique_ptr<BugType> &BT) const {
86 std::unique_ptr<BugType> &BT,
145 std::unique_ptr<BugType> &BT, const ParmVarDecl *ParamDecl, const char *BD,
239 std::unique_ptr<BugType> &BT,
435 std::unique_ptr<BugType> *BT;
tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp 25 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp 106 std::unique_ptr<BugType> MissingReleaseBugType;
107 std::unique_ptr<BugType> ExtraReleaseBugType;
108 std::unique_ptr<BugType> MistakenDeallocBugType;
tools/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp 43 mutable std::unique_ptr<BuiltinBug> BT_BreakJail;
tools/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp 38 mutable std::unique_ptr<BugType> BT_Exact, BT_Suspicious;
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp 45 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp 140 std::unique_ptr<ReachableCode> reachableCode;
142 std::unique_ptr<llvm::DenseSet<const VarDecl *>> InEH;
tools/clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp 39 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp 33 mutable std::unique_ptr<BuiltinBug> BT_null;
34 mutable std::unique_ptr<BuiltinBug> BT_undef;
tools/clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT;
29 std::unique_ptr<BugReporterVisitor> Visitor = nullptr) const;
45 std::unique_ptr<BugReporterVisitor> Visitor) const {
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypeChecker.cpp 33 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 69 mutable std::unique_ptr<BugType> ObjCGenericsBugType;
tools/clang/lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp 60 mutable std::unique_ptr<BuiltinBug> EnumValueCastOutOfRange;
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 25 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/FixedAddressChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp 94 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp 263 std::unique_ptr<BugReporterVisitor> getInnerPointerBRVisitor(SymbolRef Sym) {
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp 178 std::unique_ptr<BugType> OutOfRangeBugType;
179 std::unique_ptr<BugType> MismatchedBugType;
180 std::unique_ptr<BugType> InvalidatedBugType;
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 63 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h 74 std::unique_ptr<BugType> UnmatchedWaitBugType;
75 std::unique_ptr<BugType> MissingWaitBugType;
76 std::unique_ptr<BugType> DoubleNonblockingBugType;
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.h 96 const std::unique_ptr<MPIFunctionClassifier> FuncClassifier;
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp 34 mutable std::unique_ptr<BugType> BT;
116 std::unique_ptr<PathSensitiveBugReport>
472 std::unique_ptr<PathSensitiveBugReport>
tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp 33 mutable std::unique_ptr<BugType> BT_dispatchOnce;
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 388 mutable std::unique_ptr<BugType> BT_DoubleFree[CK_NumCheckKinds];
389 mutable std::unique_ptr<BugType> BT_DoubleDelete;
390 mutable std::unique_ptr<BugType> BT_Leak[CK_NumCheckKinds];
391 mutable std::unique_ptr<BugType> BT_UseFree[CK_NumCheckKinds];
392 mutable std::unique_ptr<BugType> BT_BadFree[CK_NumCheckKinds];
393 mutable std::unique_ptr<BugType> BT_FreeAlloca[CK_NumCheckKinds];
394 mutable std::unique_ptr<BugType> BT_MismatchedDealloc;
395 mutable std::unique_ptr<BugType> BT_OffsetFree[CK_NumCheckKinds];
396 mutable std::unique_ptr<BugType> BT_UseZerroAllocated[CK_NumCheckKinds];
3212 std::unique_ptr<StackHintGeneratorForSymbol> StackHint = nullptr;
tools/clang/lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp 34 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp 204 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp 34 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp 155 mutable std::unique_ptr<NSErrorDerefBug> NSBT;
156 mutable std::unique_ptr<CFErrorDerefBug> CFBT;
tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp 31 mutable std::unique_ptr<BugType> BTAttrNonNull;
32 mutable std::unique_ptr<BugType> BTNullRefArg;
38 std::unique_ptr<PathSensitiveBugReport>
42 std::unique_ptr<PathSensitiveBugReport>
146 std::unique_ptr<BugReport> R;
182 std::unique_ptr<PathSensitiveBugReport>
207 std::unique_ptr<PathSensitiveBugReport>
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 85 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp 28 mutable std::unique_ptr<BuiltinBug> BT_null;
29 mutable std::unique_ptr<BuiltinBug> BT_undef;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp 33 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp 64 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp 33 std::unique_ptr<BugType> DoubleSuperDeallocBugType;
tools/clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp 35 mutable std::unique_ptr<BugType> PaddingBug;
tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp 58 mutable std::unique_ptr<BuiltinBug> BT_pointerArith;
59 mutable std::unique_ptr<BuiltinBug> BT_polyArray;
tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp 70 mutable std::unique_ptr<BugType> BT_doublelock;
71 mutable std::unique_ptr<BugType> BT_doubleunlock;
72 mutable std::unique_ptr<BugType> BT_destroylock;
73 mutable std::unique_ptr<BugType> BT_initlock;
74 mutable std::unique_ptr<BugType> BT_lor;
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h 266 mutable std::unique_ptr<RetainSummaryManager> Summaries;
tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT_Undef;
28 mutable std::unique_ptr<BuiltinBug> BT_NullReference;
tools/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp 56 std::unique_ptr<BugType> DoubleCloseBugType;
57 std::unique_ptr<BugType> LeakBugType;
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp 33 mutable std::unique_ptr<BuiltinBug> BT_stackleak;
34 mutable std::unique_ptr<BuiltinBug> BT_returnstack;
35 mutable std::unique_ptr<BuiltinBug> BT_capturedstackasync;
36 mutable std::unique_ptr<BuiltinBug> BT_capturedstackret;
tools/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp 64 mutable std::unique_ptr<BuiltinBug> BT_nullfp, BT_illegalwhence,
tools/clang/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp 27 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp 80 mutable std::unique_ptr<BuiltinBug> DivZeroBug;
tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp 27 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp 29 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp 30 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp 27 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp 26 mutable std::unique_ptr<BugType> BT;
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp 41 std::unique_ptr<BuiltinBug> BT_uninitField;
tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp 41 mutable std::unique_ptr<BugType> BT_open, BT_pthreadOnce;
68 mutable std::unique_ptr<BugType> BT_mallocZero;
92 std::unique_ptr<BugType> &BT,
tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp 33 mutable std::unique_ptr<BugType> BT;
38 std::unique_ptr<BugReporterVisitor> Visitor = nullptr) const;
47 CheckerContext &C, std::unique_ptr<BugReporterVisitor> Visitor) const {
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp 31 mutable std::unique_ptr<BugType> BT_leakedvalist, BT_uninitaccess;
tools/clang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp 46 mutable std::unique_ptr<BuiltinBug> BT;
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp 45 mutable std::unique_ptr<BugType> BT_Pure, BT_Impure;
143 const std::unique_ptr<BugType> &BT = IsPure ? BT_Pure : BT_Impure;
tools/clang/lib/StaticAnalyzer/Checkers/Yaml.h 33 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buffer =
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 131 std::unique_ptr<PathDiagnostic> PD;
202 std::unique_ptr<const ExplodedGraph> BugPath;
213 std::unique_ptr<const VisitorsDiagnosticsTy> VisitorsDiagnostics;
224 BugReporterContext BRC, std::unique_ptr<ExplodedGraph> BugPath,
226 std::unique_ptr<VisitorsDiagnosticsTy> VisitorsDiagnostics);
238 std::unique_ptr<PathDiagnostic>
1116 static std::unique_ptr<FilesToLineNumsMap>
1311 static std::unique_ptr<PathDiagnostic>
1321 static std::unique_ptr<PathDiagnostic>
1976 BugReporterContext BRC, std::unique_ptr<ExplodedGraph> BugPath,
1978 std::unique_ptr<VisitorsDiagnosticsTy> VisitorsDiagnostics)
1983 std::unique_ptr<PathDiagnostic>
2109 std::unique_ptr<BugReporterVisitor> visitor) {
2425 std::unique_ptr<ExplodedGraph> BugPath;
2433 std::unique_ptr<ExplodedGraph> TrimmedGraph;
2693 static std::unique_ptr<VisitorsDiagnosticsTy>
2697 std::unique_ptr<VisitorsDiagnosticsTy> Notes =
2711 for (std::unique_ptr<BugReporterVisitor> &Visitor : R->visitors())
2774 std::unique_ptr<VisitorsDiagnosticsTy> visitorNotes =
2800 std::unique_ptr<DiagnosticForConsumerMapTy>
2813 if (std::unique_ptr<PathDiagnostic> PD = PDB->generate(PC)) {
2822 void BugReporter::emitReport(std::unique_ptr<BugReport> R) {
2846 void PathSensitiveBugReporter::emitReport(std::unique_ptr<BugReport> R) {
2995 std::unique_ptr<DiagnosticForConsumerMapTy> Diagnostics =
3000 std::unique_ptr<PathDiagnostic> &PD = P.second;
3082 static std::unique_ptr<FilesToLineNumsMap>
3118 std::unique_ptr<DiagnosticForConsumerMapTy>
3194 std::unique_ptr<DiagnosticForConsumerMapTy>
3215 std::unique_ptr<DiagnosticForConsumerMapTy> Out = generatePathDiagnostics(
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp 55 static std::unique_ptr<WorkList> generateWorkList(AnalyzerOptions &Opts,
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp 442 std::unique_ptr<ExplodedGraph>
486 std::unique_ptr<ExplodedGraph> G = MakeEmptyGraph();
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 3142 std::unique_ptr<ExplodedGraph> TrimmedG(G.trim(Nodes));
tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp 331 std::unique_ptr<ConstraintManager>
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 675 std::unique_ptr<StoreManager>
681 std::unique_ptr<StoreManager>
tools/clang/lib/StaticAnalyzer/Core/SMTConstraintManager.cpp 15 std::unique_ptr<ConstraintManager>
tools/clang/lib/StaticAnalyzer/Core/WorkList.cpp 81 std::unique_ptr<WorkList> WorkList::makeDFS() {
85 std::unique_ptr<WorkList> WorkList::makeBFS() {
126 std::unique_ptr<WorkList> WorkList::makeBFSBlockDFSContents() {
188 std::unique_ptr<WorkList> WorkList::makeUnexploredFirst() {
251 std::unique_ptr<WorkList> WorkList::makeUnexploredFirstPriorityQueue() {
311 std::unique_ptr<WorkList> WorkList::makeUnexploredFirstPriorityLocationQueue() {
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp 215 std::unique_ptr<CheckerManager> checkerMgr;
216 std::unique_ptr<AnalysisManager> Mgr;
219 std::unique_ptr<llvm::TimerGroup> AnalyzerTimers;
220 std::unique_ptr<llvm::Timer> SyntaxCheckTimer;
221 std::unique_ptr<llvm::Timer> ExprEngineTimer;
222 std::unique_ptr<llvm::Timer> BugReporterTimer;
849 std::unique_ptr<AnalysisASTConsumer>
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp 27 std::unique_ptr<CheckerManager> ento::createCheckerManager(
tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp 15 std::unique_ptr<ASTConsumer>
23 std::unique_ptr<ASTConsumer>
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp 70 NodeId getMapped(const std::unique_ptr<SyntaxTree::Impl> &Tree,
tools/clang/lib/Tooling/AllTUsExecution.cpp 79 std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
160 llvm::Expected<std::unique_ptr<ToolExecutor>>
tools/clang/lib/Tooling/CompilationDatabase.cpp 63 std::unique_ptr<CompilationDatabase>
72 std::unique_ptr<CompilationDatabasePlugin> Plugin(It->instantiate());
73 if (std::unique_ptr<CompilationDatabase> DB =
81 static std::unique_ptr<CompilationDatabase>
89 if (std::unique_ptr<CompilationDatabase> DB =
105 std::unique_ptr<CompilationDatabase>
111 std::unique_ptr<CompilationDatabase> DB =
120 std::unique_ptr<CompilationDatabase>
125 std::unique_ptr<CompilationDatabase> DB =
273 std::unique_ptr<driver::Driver> NewDriver(new driver::Driver(
300 const std::unique_ptr<driver::Compilation> Compilation(
342 std::unique_ptr<FixedCompilationDatabase>
362 std::unique_ptr<FixedCompilationDatabase>
365 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
398 std::unique_ptr<CompilationDatabase>
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp 21 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> MaybeFile =
30 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MaybeBuffer =
215 MinimizedVFSFile(std::unique_ptr<llvm::MemoryBuffer> Buffer,
223 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
232 std::unique_ptr<llvm::MemoryBuffer> Buffer;
236 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
258 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp 58 std::unique_ptr<DependencyOutputOptions> Opts;
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp 28 DependencyConsumerForwarder(std::unique_ptr<DependencyOutputOptions> Opts,
42 std::unique_ptr<DependencyOutputOptions> Opts;
tools/clang/lib/Tooling/Execution.cpp 43 ToolExecutor::execute(std::unique_ptr<FrontendActionFactory> Action) {
47 llvm::Error ToolExecutor::execute(std::unique_ptr<FrontendActionFactory> Action,
50 std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
57 llvm::Expected<std::unique_ptr<ToolExecutor>>
72 std::unique_ptr<ToolExecutorPlugin> Plugin(I->instantiate());
73 llvm::Expected<std::unique_ptr<ToolExecutor>> Executor =
89 llvm::Expected<std::unique_ptr<ToolExecutor>>
tools/clang/lib/Tooling/GuessTargetAndModeCompilationDatabase.cpp 19 TargetAndModeAdderDatabase(std::unique_ptr<CompilationDatabase> Base)
47 std::unique_ptr<CompilationDatabase> Base;
51 std::unique_ptr<CompilationDatabase>
52 inferTargetAndDriverMode(std::unique_ptr<CompilationDatabase> Base) {
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp 159 std::unique_ptr<llvm::opt::Arg> Arg(OptTable.ParseOneArg(
504 InterpolatingCompilationDatabase(std::unique_ptr<CompilationDatabase> Inner)
532 std::unique_ptr<CompilationDatabase> Inner;
538 std::unique_ptr<CompilationDatabase>
539 inferMissingCompileCommands(std::unique_ptr<CompilationDatabase> Inner) {
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp 164 std::unique_ptr<CompilationDatabase>
193 std::unique_ptr<JSONCompilationDatabase>
198 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> DatabaseBuffer =
206 std::unique_ptr<JSONCompilationDatabase> Database(
213 std::unique_ptr<JSONCompilationDatabase>
217 std::unique_ptr<llvm::MemoryBuffer> DatabaseBuffer(
219 std::unique_ptr<JSONCompilationDatabase> Database(
tools/clang/lib/Tooling/Refactoring/ASTSelectionRequirements.cpp 37 std::unique_ptr<SelectedASTNode> StoredSelection =
tools/clang/lib/Tooling/Refactoring/RefactoringActions.cpp 98 std::vector<std::unique_ptr<RefactoringAction>> createRefactoringActions() {
99 std::vector<std::unique_ptr<RefactoringAction>> Actions;
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp 268 std::unique_ptr<ASTConsumer> RenamingAction::newASTConsumer() {
273 std::unique_ptr<ASTConsumer> QualifiedRenamingAction::newASTConsumer() {
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp 272 std::unique_ptr<ASTConsumer> USRFindingAction::newASTConsumer() {
tools/clang/lib/Tooling/RefactoringCallbacks.cpp 68 std::unique_ptr<ASTConsumer> ASTMatchRefactorer::newASTConsumer() {
158 llvm::Expected<std::unique_ptr<ReplaceNodeWithTemplate>>
tools/clang/lib/Tooling/StandaloneExecution.cpp 54 std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
74 llvm::Expected<std::unique_ptr<ToolExecutor>>
tools/clang/lib/Tooling/Syntax/Tree.cpp 26 syntax::Arena::lexBuffer(std::unique_ptr<llvm::MemoryBuffer> Input) {
tools/clang/lib/Tooling/Tooling.cpp 154 bool runToolOnCode(std::unique_ptr<FrontendAction> ToolAction,
181 std::unique_ptr<FrontendAction> ToolAction, const Twine &Code,
199 std::unique_ptr<FrontendAction> ToolAction, const Twine &Code,
276 std::unique_ptr<FrontendAction> Action;
279 SingleFrontendActionFactory(std::unique_ptr<FrontendAction> Action)
282 std::unique_ptr<FrontendAction> create() override {
297 std::unique_ptr<FrontendAction> FAction, FileManager *Files,
331 const std::unique_ptr<driver::Driver> Driver(
339 const std::unique_ptr<driver::Compilation> Compilation(
347 std::unique_ptr<CompilerInvocation> Invocation(
352 std::unique_ptr<llvm::MemoryBuffer> Input =
388 std::unique_ptr<FrontendAction> ScopedToolAction(create());
571 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
574 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {}
580 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation(
596 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) {
612 std::unique_ptr<ASTUnit>
619 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
623 std::vector<std::unique_ptr<ASTUnit>> ASTs;
tools/clang/tools/arcmt-test/arcmt-test.cpp 182 std::unique_ptr<PrintTransforms> transformPrinter;
211 ErrorOr<std::unique_ptr<MemoryBuffer>> file1 = MemoryBuffer::getFile(fname1);
215 ErrorOr<std::unique_ptr<MemoryBuffer>> file2 = MemoryBuffer::getFile(fname2);
240 ErrorOr<std::unique_ptr<MemoryBuffer>> inputBuf = std::error_code();
tools/clang/tools/c-index-test/core_main.cpp 82 std::unique_ptr<ASTNameGenerator> ASTNameGen;
224 std::unique_ptr<FrontendAction> IndexAction =
228 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
262 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile(
tools/clang/tools/clang-check/ClangCheck.cpp 136 std::unique_ptr<clang::ASTConsumer> newASTConsumer() {
177 std::unique_ptr<FrontendActionFactory> FrontendFactory;
tools/clang/tools/clang-diff/ClangDiff.cpp 73 static void addExtraArgs(std::unique_ptr<CompilationDatabase> &Compilations) {
86 static std::unique_ptr<ASTUnit>
87 getAST(const std::unique_ptr<CompilationDatabase> &CommonCompilations,
90 std::unique_ptr<CompilationDatabase> Compilations;
107 std::vector<std::unique_ptr<ASTUnit>> ASTs;
445 std::unique_ptr<CompilationDatabase> CommonCompilations =
462 std::unique_ptr<ASTUnit> AST = getAST(CommonCompilations, SourcePath);
483 std::unique_ptr<ASTUnit> Src = getAST(CommonCompilations, SourcePath);
484 std::unique_ptr<ASTUnit> Dst = getAST(CommonCompilations, DestinationPath);
tools/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp 106 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/tools/clang-format/ClangFormat.cpp 294 const std::unique_ptr<llvm::MemoryBuffer> &Code) {
377 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr =
384 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get());
476 std::unique_ptr<llvm::MemoryBuffer> Code;
484 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr =
tools/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp 39 std::unique_ptr<clang::CompilerInvocation> Invocation(
41 std::unique_ptr<llvm::MemoryBuffer> Input =
45 std::unique_ptr<tooling::ToolAction> action(
tools/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp 98 std::unique_ptr<Module> M = parseIR(MemoryBufferRef(IR, "IR"), Err, Context);
110 std::unique_ptr<TargetMachine> TM(Machine);
147 std::unique_ptr<Module> M = parseIR(MemoryBufferRef(IR, "IR"), Err, Context);
166 std::unique_ptr<ExecutionEngine> EE(builder.create());
tools/clang/tools/clang-import-test/clang-import-test.cpp 76 std::unique_ptr<TextDiagnosticBuffer> Passthrough;
160 std::unique_ptr<CompilerInstance> BuildCompilerInstance() {
214 std::unique_ptr<ASTContext>
223 std::unique_ptr<CodeGenerator> BuildCodeGen(CompilerInstance &CI,
244 std::unique_ptr<CompilerInstance> CI;
277 std::unique_ptr<ASTContext> AST = init_convenience::BuildASTContext(
303 std::unique_ptr<ASTContext> AST =
309 std::vector<std::unique_ptr<ASTConsumer>> ASTConsumers;
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp 147 ArrayRef<std::unique_ptr<MemoryBuffer>> Inputs) = 0;
320 ArrayRef<std::unique_ptr<MemoryBuffer>> Inputs) final {
374 std::unique_ptr<ObjectFile> Obj;
406 ObjectFileHandler(std::unique_ptr<ObjectFile> ObjIn)
444 ArrayRef<std::unique_ptr<MemoryBuffer>> Inputs) final {
586 ArrayRef<std::unique_ptr<MemoryBuffer>> Inputs) final {
618 static std::unique_ptr<FileHandler>
621 Expected<std::unique_ptr<Binary>> BinaryOrErr = createBinary(FirstInput);
635 static Expected<std::unique_ptr<FileHandler>>
674 SmallVector<std::unique_ptr<MemoryBuffer>, 8u> InputBuffers;
677 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr =
686 Expected<std::unique_ptr<FileHandler>> FileHandlerOrErr =
691 std::unique_ptr<FileHandler> &FH = *FileHandlerOrErr;
716 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr =
724 Expected<std::unique_ptr<FileHandler>> FileHandlerOrErr =
729 std::unique_ptr<FileHandler> &FH = *FileHandlerOrErr;
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp 335 SmallVector<std::unique_ptr<MemoryBuffer>, 4u> Buffers;
340 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
346 const std::unique_ptr<MemoryBuffer> &Buf =
tools/clang/tools/clang-refactor/ClangRefactor.cpp 60 static std::unique_ptr<SourceSelectionArgument> fromString(StringRef Value);
74 virtual std::unique_ptr<ClangRefactorToolConsumerInterface>
95 std::unique_ptr<ClangRefactorToolConsumerInterface>
146 std::unique_ptr<SourceSelectionArgument>
171 std::unique_ptr<cl::opt<std::string>> CLOption) {
183 std::unique_ptr<cl::opt<std::string>>>
234 std::unique_ptr<cl::opt<T>> create(const RefactoringOption &Opt) {
255 RefactoringActionSubcommand(std::unique_ptr<RefactoringAction> Action,
307 std::unique_ptr<RefactoringAction> Action;
309 std::unique_ptr<cl::opt<std::string>> Selection;
310 std::unique_ptr<SourceSelectionArgument> ParsedSelection;
348 std::vector<std::unique_ptr<RefactoringAction>> Actions =
398 std::unique_ptr<ClangRefactorToolConsumerInterface> TestConsumer;
429 llvm::Expected<std::unique_ptr<FrontendActionFactory>>
447 std::unique_ptr<clang::ASTConsumer>
450 std::unique_ptr<clang::ASTConsumer> Consumer{
464 std::unique_ptr<FrontendAction> create() override {
487 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> BufferErr =
600 std::vector<std::unique_ptr<RefactoringActionSubcommand>> SubCommands;
603 std::unique_ptr<ClangRefactorToolConsumerInterface> Consumer;
tools/clang/tools/clang-refactor/TestSupport.cpp 92 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> BufferErr =
162 ErrorOr<std::unique_ptr<MemoryBuffer>> ErrOrFile =
257 std::unique_ptr<ClangRefactorToolConsumerInterface>
295 ErrorOr<std::unique_ptr<MemoryBuffer>> ErrOrFile =
tools/clang/tools/clang-refactor/TestSupport.h 64 std::unique_ptr<ClangRefactorToolConsumerInterface> createConsumer() const;
tools/clang/tools/clang-rename/ClangRename.cpp 105 ErrorOr<std::unique_ptr<MemoryBuffer>> Buffer =
180 std::unique_ptr<tooling::FrontendActionFactory> Factory =
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp 128 std::unique_ptr<tooling::JSONCompilationDatabase> Compilations =
211 std::vector<std::unique_ptr<DependencyScanningTool>> WorkerTools;
tools/clang/tools/diagtool/ShowEnabledWarnings.cpp 69 std::unique_ptr<CompilerInvocation> Invocation =
tools/clang/tools/driver/cc1_main.cpp 184 std::unique_ptr<llvm::TargetMachine> TheTargetMachine(
192 std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
tools/clang/tools/driver/cc1as_main.cpp 310 static std::unique_ptr<raw_fd_ostream>
336 ErrorOr<std::unique_ptr<MemoryBuffer>> Buffer =
353 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(Opts.Triple));
357 std::unique_ptr<MCAsmInfo> MAI(
370 std::unique_ptr<raw_fd_ostream> FDOS =
374 std::unique_ptr<raw_fd_ostream> DwoOS;
380 std::unique_ptr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());
430 std::unique_ptr<MCStreamer> Str;
432 std::unique_ptr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo());
433 std::unique_ptr<MCSubtargetInfo> STI(
437 std::unique_ptr<buffer_ostream> BOS;
448 std::unique_ptr<MCCodeEmitter> CE;
451 std::unique_ptr<MCAsmBackend> MAB(
469 std::unique_ptr<MCCodeEmitter> CE(
471 std::unique_ptr<MCAsmBackend> MAB(
473 std::unique_ptr<MCObjectWriter> OW =
500 std::unique_ptr<MCAsmParser> Parser(
504 std::unique_ptr<MCTargetAsmParser> TAP(
tools/clang/tools/driver/cc1gen_reproducer_main.cpp 124 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(Argv));
163 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buffer =
tools/clang/tools/driver/driver.cpp 458 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(argv));
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp 60 ErrorOr<std::unique_ptr<MemoryBuffer>> Out =
104 ErrorOr<std::unique_ptr<MemoryBuffer>> Out =
237 llvm::ErrorOr<std::unique_ptr<MemoryBuffer>> Buffer =
tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp 126 std::unique_ptr<ScopedFileRemover> Remover;
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 96 static std::unique_ptr<Lexer>
121 std::unique_ptr<Lexer> Lex = getLexerStartingFromLoc(Loc, SM, LangOpts);
661 std::unique_ptr<Lexer> Lex =
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp 87 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
118 std::unique_ptr<tooling::FrontendActionFactory> Factory =
tools/clang/tools/extra/clang-doc/BitcodeReader.cpp 359 llvm::Expected<CommentInfo *> getCommentInfo(std::unique_ptr<CommentInfo> &I) {
724 llvm::Expected<std::unique_ptr<Info>>
726 std::unique_ptr<Info> I = std::make_unique<T>();
732 llvm::Expected<std::unique_ptr<Info>>
750 llvm::Expected<std::vector<std::unique_ptr<Info>>>
752 std::vector<std::unique_ptr<Info>> Infos;
tools/clang/tools/extra/clang-doc/BitcodeReader.h 35 llvm::Expected<std::vector<std::unique_ptr<Info>>> readBitcode();
58 llvm::Expected<std::unique_ptr<Info>> createInfo(unsigned ID);
65 llvm::Expected<std::unique_ptr<Info>> readBlockToInfo(unsigned ID);
tools/clang/tools/extra/clang-doc/ClangDoc.cpp 32 std::unique_ptr<FrontendAction> create() override;
38 std::unique_ptr<FrontendAction> MapperActionFactory::create() {
43 std::unique_ptr<clang::ASTConsumer>
55 std::unique_ptr<tooling::FrontendActionFactory>
tools/clang/tools/extra/clang-doc/ClangDoc.h 27 std::unique_ptr<tooling::FrontendActionFactory>
tools/clang/tools/extra/clang-doc/Generators.cpp 16 llvm::Expected<std::unique_ptr<Generator>>
tools/clang/tools/extra/clang-doc/Generators.h 42 llvm::Expected<std::unique_ptr<Generator>>
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp 91 std::vector<std::unique_ptr<HTMLNode>> Children; // List of child nodes
101 std::vector<std::unique_ptr<HTMLNode>> Children; // List of child nodes
270 static std::vector<std::unique_ptr<TagNode>>
272 std::vector<std::unique_ptr<TagNode>> Out;
287 static std::vector<std::unique_ptr<TagNode>>
289 std::vector<std::unique_ptr<TagNode>> Out;
302 static std::unique_ptr<TagNode> genLink(const Twine &Text, const Twine &Link) {
308 static std::unique_ptr<HTMLNode>
327 static std::vector<std::unique_ptr<HTMLNode>>
330 std::vector<std::unique_ptr<HTMLNode>> Out;
339 static std::vector<std::unique_ptr<TagNode>>
341 static std::vector<std::unique_ptr<TagNode>>
345 static std::vector<std::unique_ptr<TagNode>>
351 std::vector<std::unique_ptr<TagNode>> Out;
357 std::vector<std::unique_ptr<TagNode>> Nodes = genHTML(E, CDCtx);
363 static std::unique_ptr<TagNode>
374 static std::vector<std::unique_ptr<TagNode>>
380 std::vector<std::unique_ptr<TagNode>> Out;
386 std::vector<std::unique_ptr<TagNode>> Nodes =
393 static std::vector<std::unique_ptr<TagNode>>
399 std::vector<std::unique_ptr<TagNode>> Out;
417 static std::vector<std::unique_ptr<TagNode>>
423 std::vector<std::unique_ptr<TagNode>> Out;
436 static std::unique_ptr<TagNode>
462 static std::vector<std::unique_ptr<TagNode>>
468 static std::vector<std::unique_ptr<TagNode>>
471 std::vector<std::unique_ptr<TagNode>> Out;
476 std::vector<std::unique_ptr<TagNode>> StylesheetsNodes =
479 std::vector<std::unique_ptr<TagNode>> JsNodes =
487 static std::unique_ptr<TagNode> genFileHeaderNode(StringRef ProjectName) {
497 static std::unique_ptr<TagNode> genInfoFileMainNode(
499 std::vector<std::unique_ptr<TagNode>> &MainContentInnerNodes,
519 std::vector<std::unique_ptr<TagNode>> InfoIndexHTML =
532 static std::unique_ptr<TagNode> genFileFooterNode() {
544 std::vector<std::unique_ptr<TagNode>> &MainContentNodes,
548 std::vector<std::unique_ptr<TagNode>> HeadNodes =
550 std::unique_ptr<TagNode> HeaderNode = genFileHeaderNode(CDCtx.ProjectName);
551 std::unique_ptr<TagNode> MainNode =
553 std::unique_ptr<TagNode> FooterNode = genFileFooterNode();
573 static std::vector<std::unique_ptr<TagNode>>
575 std::vector<std::unique_ptr<TagNode>> Out;
593 std::vector<std::unique_ptr<TagNode>> Nodes = genHTML(C, InfoPath, false);
600 static std::unique_ptr<HTMLNode> genHTML(const CommentInfo &I) {
604 std::unique_ptr<HTMLNode> Node = genHTML(*Child);
612 std::unique_ptr<HTMLNode> Node = genHTML(*Child);
627 static std::unique_ptr<TagNode> genHTML(const std::vector<CommentInfo> &C) {
630 if (std::unique_ptr<HTMLNode> Node = genHTML(Child))
636 static std::vector<std::unique_ptr<TagNode>>
638 std::vector<std::unique_ptr<TagNode>> Out;
650 std::unique_ptr<TagNode> Node = genEnumMembersBlock(I.Members);
669 static std::vector<std::unique_ptr<TagNode>>
672 std::vector<std::unique_ptr<TagNode>> Out;
718 static std::vector<std::unique_ptr<TagNode>>
721 std::vector<std::unique_ptr<TagNode>> Out;
733 std::vector<std::unique_ptr<TagNode>> ChildNamespaces =
736 std::vector<std::unique_ptr<TagNode>> ChildRecords =
740 std::vector<std::unique_ptr<TagNode>> ChildFunctions =
743 std::vector<std::unique_ptr<TagNode>> ChildEnums =
760 static std::vector<std::unique_ptr<TagNode>>
763 std::vector<std::unique_ptr<TagNode>> Out;
779 std::vector<std::unique_ptr<HTMLNode>> Parents =
781 std::vector<std::unique_ptr<HTMLNode>> VParents =
798 std::vector<std::unique_ptr<TagNode>> Members =
801 std::vector<std::unique_ptr<TagNode>> ChildRecords =
805 std::vector<std::unique_ptr<TagNode>> ChildFunctions =
808 std::vector<std::unique_ptr<TagNode>> ChildEnums =
840 std::vector<std::unique_ptr<TagNode>> MainContentNodes;
921 static std::unique_ptr<TagNode> genIndexFileMainNode() {
950 std::vector<std::unique_ptr<TagNode>> HeadNodes =
952 std::unique_ptr<TagNode> HeaderNode = genFileHeaderNode(CDCtx.ProjectName);
953 std::unique_ptr<TagNode> MainNode = genIndexFileMainNode();
954 std::unique_ptr<TagNode> FooterNode = genFileFooterNode();
tools/clang/tools/extra/clang-doc/Representation.cpp 34 llvm::Expected<std::unique_ptr<Info>>
35 reduce(std::vector<std::unique_ptr<Info>> &Values) {
39 std::unique_ptr<Info> Merged = std::make_unique<T>(Values[0]->USR);
96 llvm::Expected<std::unique_ptr<Info>>
97 mergeInfos(std::vector<std::unique_ptr<Info>> &Values) {
tools/clang/tools/extra/clang-doc/Representation.h 111 std::vector<std::unique_ptr<CommentInfo>>
411 llvm::Expected<std::unique_ptr<Info>>
412 mergeInfos(std::vector<std::unique_ptr<Info>> &Values);
tools/clang/tools/extra/clang-doc/Serialize.cpp 190 std::string serialize(std::unique_ptr<Info> &I) {
490 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
490 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
516 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
516 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
561 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
561 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
585 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
585 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
617 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
617 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
tools/clang/tools/extra/clang-doc/Serialize.h 39 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
39 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
42 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
42 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
45 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
45 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
48 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
48 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
51 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
51 std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
62 std::string serialize(std::unique_ptr<Info> &I);
tools/clang/tools/extra/clang-doc/YAMLGenerator.cpp 252 static void mapping(IO &IO, std::unique_ptr<CommentInfo> &I) {
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp 275 std::vector<std::unique_ptr<doc::Info>> Infos;
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp 132 llvm::Expected<std::unique_ptr<FuzzySymbolIndex>>
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.h 35 static llvm::Expected<std::unique_ptr<FuzzySymbolIndex>>
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp 33 std::unique_ptr<clang::ASTConsumer>
tools/clang/tools/extra/clang-include-fixer/SymbolIndexManager.h 35 void addSymbolIndex(std::function<std::unique_ptr<SymbolIndex>()> F) {
59 std::vector<std::shared_future<std::unique_ptr<SymbolIndex>>> SymbolIndices;
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp 24 llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
34 llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.h 25 static llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
28 static llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbolsAction.cpp 26 std::unique_ptr<ASTConsumer>
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbolsAction.h 31 std::unique_ptr<clang::ASTConsumer>
50 std::unique_ptr<FrontendAction> create() override {
tools/clang/tools/extra/clang-include-fixer/plugin/IncludeFixerPlugin.cpp 39 std::unique_ptr<clang::ASTConsumer>
65 llvm::ErrorOr<std::unique_ptr<include_fixer::YamlSymbolIndex>> SymbolIdx(
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp 160 std::unique_ptr<include_fixer::SymbolIndexManager>
194 llvm::ErrorOr<std::unique_ptr<include_fixer::YamlSymbolIndex>> DB(
274 std::unique_ptr<llvm::MemoryBuffer> Code;
278 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> CodeOrErr =
352 std::unique_ptr<include_fixer::SymbolIndexManager> SymbolIndexMgr =
tools/clang/tools/extra/clang-move/HelperDeclRefGraph.cpp 58 std::unique_ptr<CallGraphNode> &Node = DeclMap[F];
tools/clang/tools/extra/clang-move/HelperDeclRefGraph.h 71 typedef llvm::DenseMap<const Decl *, std::unique_ptr<CallGraphNode>>
92 std::unique_ptr<HelperDeclRefGraph> RG;
tools/clang/tools/extra/clang-move/Move.cpp 476 std::unique_ptr<ASTConsumer>
tools/clang/tools/extra/clang-move/Move.h 164 std::vector<std::unique_ptr<ast_matchers::MatchFinder::MatchCallback>>
212 std::unique_ptr<clang::ASTConsumer>
227 std::unique_ptr<clang::FrontendAction> create() override {
tools/clang/tools/extra/clang-query/QuerySession.h 25 QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs)
30 llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs;
tools/clang/tools/extra/clang-query/tool/ClangQuery.cpp 101 std::vector<std::unique_ptr<ASTUnit>> ASTs;
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp 304 std::unique_ptr<ASTConsumer> ReorderFieldsAction::newASTConsumer() {
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.h 41 std::unique_ptr<ASTConsumer> newASTConsumer();
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp 190 llvm::ErrorOr<std::unique_ptr<MemoryBuffer>> Buffer =
294 ClangTidyASTConsumer(std::vector<std::unique_ptr<ASTConsumer>> Consumers,
295 std::unique_ptr<ClangTidyProfiling> Profiling,
296 std::unique_ptr<ast_matchers::MatchFinder> Finder,
297 std::vector<std::unique_ptr<ClangTidyCheck>> Checks)
305 std::unique_ptr<ClangTidyProfiling> Profiling;
306 std::unique_ptr<ast_matchers::MatchFinder> Finder;
307 std::vector<std::unique_ptr<ClangTidyCheck>> Checks;
320 std::unique_ptr<ClangTidyModule> Module(I->instantiate());
371 std::unique_ptr<clang::ASTConsumer>
388 std::vector<std::unique_ptr<ClangTidyCheck>> Checks =
393 std::unique_ptr<ClangTidyProfiling> Profiling;
400 std::unique_ptr<ast_matchers::MatchFinder> Finder(
418 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
432 std::unique_ptr<ento::AnalysisASTConsumer> AnalysisConsumer =
463 std::vector<std::unique_ptr<ClangTidyCheck>> Checks =
535 std::unique_ptr<FrontendAction> create() override {
553 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
tools/clang/tools/extra/clang-tidy/ClangTidy.h 37 std::unique_ptr<clang::ASTConsumer>
49 std::unique_ptr<ClangTidyCheckFactories> CheckFactories;
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp 147 std::unique_ptr<ClangTidyOptionsProvider> OptionsProvider,
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.h 80 ClangTidyContext(std::unique_ptr<ClangTidyOptionsProvider> OptionsProvider,
185 std::unique_ptr<ClangTidyOptionsProvider> OptionsProvider;
190 std::unique_ptr<CachedGlobList> CheckFilter;
191 std::unique_ptr<CachedGlobList> WarningAsErrorFilter;
263 std::unique_ptr<llvm::Regex> HeaderFilter;
tools/clang/tools/extra/clang-tidy/ClangTidyModule.cpp 23 std::vector<std::unique_ptr<ClangTidyCheck>>
25 std::vector<std::unique_ptr<ClangTidyCheck>> Checks;
tools/clang/tools/extra/clang-tidy/ClangTidyModule.h 29 using CheckFactory = std::function<std::unique_ptr<ClangTidyCheck>(
66 std::vector<std::unique_ptr<ClangTidyCheck>>
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp 294 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Text =
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.h 114 std::unique_ptr<FileRecorder> Recorder;
127 std::unique_ptr<HeaderSearch> HeaderInfo;
128 std::unique_ptr<Preprocessor> PP;
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.h 38 std::unique_ptr<clang::tidy::utils::IncludeInserter> IncludeInserter;
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp 62 std::unique_ptr<ExprSequence> Sequence;
63 std::unique_ptr<StmtToBlockMap> BlockMap;
99 std::unique_ptr<CFG> TheCFG =
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.h 33 std::unique_ptr<clang::tidy::utils::IncludeInserter> IncludeInserter;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.h 27 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.h 40 std::unique_ptr<IdentifierTable> IdentTable;
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.h 32 std::unique_ptr<TodoCommentHandler> Handler;
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.h 31 std::unique_ptr<IndexerVisitor> Indexer;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.h 67 std::unique_ptr<TUTrackingInfo> TUInfo;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.h 411 std::unique_ptr<StmtAncestorASTVisitor> ParentFinder;
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.h 49 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.h 31 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.h 53 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.h 34 std::unique_ptr<utils::IncludeInserter> IncludeInserter;
tools/clang/tools/extra/clang-tidy/performance/MoveConstructorInitCheck.h 36 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.h 39 std::unique_ptr<utils::IncludeInserter> IncludeInserter;
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.h 41 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clang-tidy/plugin/ClangTidyPlugin.cpp 27 std::unique_ptr<ClangTidyContext> Context;
28 std::unique_ptr<DiagnosticsEngine> DiagEngine;
31 WrapConsumer(std::unique_ptr<ClangTidyContext> Context,
32 std::unique_ptr<DiagnosticsEngine> DiagEngine,
33 std::vector<std::unique_ptr<ASTConsumer>> Consumer)
39 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
51 std::vector<std::unique_ptr<ASTConsumer>> Vec;
77 std::unique_ptr<ClangTidyContext> Context;
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp 258 static std::unique_ptr<ClangTidyOptionsProvider> createOptionsProvider(
310 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buffer =
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.cpp 44 std::unique_ptr<PPCallbacks> IncludeInserter::CreatePPCallbacks() {
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.h 63 std::unique_ptr<PPCallbacks> CreatePPCallbacks();
74 llvm::DenseMap<FileID, std::unique_ptr<IncludeSorter>> IncludeSorterByFile;
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.h 64 std::unique_ptr<clang::tidy::utils::IncludeInserter> Inserter;
tools/clang/tools/extra/clangd/ClangdLSPServer.h 161 std::unique_ptr<MessageHandler> MsgHandler;
212 std::unique_ptr<GlobalCompilationDatabase> BaseCDB;
tools/clang/tools/extra/clangd/ClangdServer.h 316 std::unique_ptr<FileIndex> DynamicIdx;
318 std::unique_ptr<BackgroundIndex> BackgroundIdx;
320 std::vector<std::unique_ptr<SymbolIndex>> MergedIdx;
tools/clang/tools/extra/clangd/CodeComplete.cpp 1046 bool semaCodeComplete(std::unique_ptr<CodeCompleteConsumer> Consumer,
1077 std::unique_ptr<llvm::MemoryBuffer> ContentsBuffer =
tools/clang/tools/extra/clangd/Compiler.cpp 43 std::unique_ptr<CompilerInvocation>
58 std::unique_ptr<CompilerInvocation> CI = createInvocationFromCommandLine(
69 std::unique_ptr<CompilerInstance>
70 prepareCompilerInstance(std::unique_ptr<clang::CompilerInvocation> CI,
72 std::unique_ptr<llvm::MemoryBuffer> Buffer,
tools/clang/tools/extra/clangd/Compiler.h 54 std::unique_ptr<CompilerInvocation>
68 std::unique_ptr<CompilerInstance> prepareCompilerInstance(
69 std::unique_ptr<clang::CompilerInvocation>, const PrecompiledPreamble *,
70 std::unique_ptr<llvm::MemoryBuffer> MainFile,
tools/clang/tools/extra/clangd/Context.h 180 std::unique_ptr<AnyStorage> Value;
tools/clang/tools/extra/clangd/FS.cpp 64 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
tools/clang/tools/extra/clangd/FSProvider.cpp 28 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
47 VolatileFile(std::unique_ptr<llvm::vfs::File> Wrapped)
52 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
66 std::unique_ptr<File> Wrapped;
tools/clang/tools/extra/clangd/FileDistance.h 111 llvm::StringMap<std::unique_ptr<FileDistance>> ByScheme;
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.h 86 std::unique_ptr<clang::tooling::CompilationDatabase> CDB = nullptr;
117 std::unique_ptr<GlobalCompilationDatabase>
119 std::unique_ptr<GlobalCompilationDatabase> Base);
tools/clang/tools/extra/clangd/Headers.cpp 112 std::unique_ptr<PPCallbacks>
tools/clang/tools/extra/clangd/Headers.h 139 std::unique_ptr<PPCallbacks>
tools/clang/tools/extra/clangd/JSONTransport.cpp 292 std::unique_ptr<Transport> newJSONTransport(std::FILE *In,
tools/clang/tools/extra/clangd/ParsedAST.cpp 97 std::unique_ptr<ASTConsumer>
218 ParsedAST::build(std::unique_ptr<clang::CompilerInvocation> CI,
221 std::unique_ptr<llvm::MemoryBuffer> Buffer,
254 std::vector<std::unique_ptr<tidy::ClangTidyCheck>> CTChecks;
359 std::unique_ptr<CommentHandler> IWYUHandler =
489 std::unique_ptr<CompilerInstance> Clang,
490 std::unique_ptr<FrontendAction> Action,
505 buildAST(PathRef FileName, std::unique_ptr<CompilerInvocation> Invocation,
tools/clang/tools/extra/clangd/ParsedAST.h 51 build(std::unique_ptr<clang::CompilerInvocation> CI,
54 std::unique_ptr<llvm::MemoryBuffer> Buffer,
102 std::unique_ptr<CompilerInstance> Clang,
103 std::unique_ptr<FrontendAction> Action, syntax::TokenBuffer Tokens,
116 std::unique_ptr<CompilerInstance> Clang;
117 std::unique_ptr<FrontendAction> Action;
139 buildAST(PathRef FileName, std::unique_ptr<CompilerInvocation> Invocation,
tools/clang/tools/extra/clangd/Preamble.cpp 51 std::unique_ptr<PPCallbacks> createPPCallbacks() override {
71 std::unique_ptr<CommentHandler> IWYUHandler = nullptr;
81 std::unique_ptr<PreambleFileStatusCache> StatCache,
tools/clang/tools/extra/clangd/Preamble.h 48 std::unique_ptr<PreambleFileStatusCache> StatCache,
63 std::unique_ptr<PreambleFileStatusCache> StatCache;
tools/clang/tools/extra/clangd/Protocol.h 1244 std::unique_ptr<SelectionRange> parent;
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp 204 std::unique_ptr<GlobalCompilationDatabase> Base)
269 std::unique_ptr<GlobalCompilationDatabase> Base;
274 std::unique_ptr<GlobalCompilationDatabase>
276 std::unique_ptr<GlobalCompilationDatabase> Base) {
tools/clang/tools/extra/clangd/TUScheduler.cpp 105 void put(Key K, std::unique_ptr<ParsedAST> V) {
113 std::unique_ptr<ParsedAST> ForCleanup = std::move(LRU.back().second);
123 llvm::Optional<std::unique_ptr<ParsedAST>> take(Key K) {
128 std::unique_ptr<ParsedAST> V = std::move(Existing->second);
137 using KVPair = std::pair<Key, std::unique_ptr<ParsedAST>>;
410 std::unique_ptr<CompilerInvocation> Invocation =
486 llvm::Optional<std::unique_ptr<ParsedAST>> AST = IdleASTs.take(this);
532 llvm::Optional<std::unique_ptr<ParsedAST>> AST = IdleASTs.take(this);
536 std::unique_ptr<CompilerInvocation> Invocation = buildCompilerInvocation(
848 std::unique_ptr<ParsingCallbacks> Callbacks,
886 std::unique_ptr<FileData> &FD = Files[File];
tools/clang/tools/extra/clangd/TUScheduler.h 151 std::unique_ptr<ParsingCallbacks> ASTCallbacks,
250 std::unique_ptr<ParsingCallbacks> Callbacks; // not nullptr
252 llvm::StringMap<std::unique_ptr<FileData>> Files;
253 std::unique_ptr<ASTCache> IdleASTs;
tools/clang/tools/extra/clangd/Trace.cpp 145 static Key<std::unique_ptr<JSONSpan>> SpanKey;
188 Key<std::unique_ptr<JSONTracer::JSONSpan>> JSONTracer::SpanKey;
200 std::unique_ptr<EventTracer> createJSONTracer(llvm::raw_ostream &OS,
tools/clang/tools/extra/clangd/Trace.h 66 std::unique_ptr<EventTracer> createJSONTracer(llvm::raw_ostream &OS,
tools/clang/tools/extra/clangd/Transport.h 83 std::unique_ptr<Transport>
tools/clang/tools/extra/clangd/URI.cpp 61 llvm::Expected<std::unique_ptr<URIScheme>>
tools/clang/tools/extra/clangd/benchmarks/IndexBenchmark.cpp 27 std::unique_ptr<SymbolIndex> buildMem() {
31 std::unique_ptr<SymbolIndex> buildDex() {
tools/clang/tools/extra/clangd/index/Background.h 50 virtual std::unique_ptr<IndexFileIn>
tools/clang/tools/extra/clangd/index/BackgroundIndexLoader.h 42 std::unique_ptr<IndexFileIn> Shard;
tools/clang/tools/extra/clangd/index/BackgroundIndexStorage.cpp 59 std::unique_ptr<IndexFileIn>
89 std::unique_ptr<IndexFileIn>
127 std::unique_ptr<BackgroundIndexStorage> create(PathRef CDBDirectory) {
137 llvm::StringMap<std::unique_ptr<BackgroundIndexStorage>> IndexStorageMap;
138 std::unique_ptr<std::mutex> IndexStorageMapMu;
tools/clang/tools/extra/clangd/index/BackgroundRebuild.cpp 116 std::unique_ptr<SymbolIndex> NewIndex;
tools/clang/tools/extra/clangd/index/CanonicalIncludes.cpp 62 std::unique_ptr<CommentHandler>
tools/clang/tools/extra/clangd/index/CanonicalIncludes.h 74 std::unique_ptr<CommentHandler>
tools/clang/tools/extra/clangd/index/FileIndex.cpp 95 void FileSymbols::update(PathRef Path, std::unique_ptr<SymbolSlab> Symbols,
96 std::unique_ptr<RefSlab> Refs,
97 std::unique_ptr<RelationSlab> Relations,
118 std::unique_ptr<SymbolIndex>
tools/clang/tools/extra/clangd/index/FileIndex.h 66 void update(PathRef Path, std::unique_ptr<SymbolSlab> Slab,
67 std::unique_ptr<RefSlab> Refs,
68 std::unique_ptr<RelationSlab> Relations, bool CountReferences);
73 std::unique_ptr<SymbolIndex>
tools/clang/tools/extra/clangd/index/Index.cpp 20 void SwapIndex::reset(std::unique_ptr<SymbolIndex> Index) {
tools/clang/tools/extra/clangd/index/Index.h 129 SwapIndex(std::unique_ptr<SymbolIndex> Index = nullptr)
131 void reset(std::unique_ptr<SymbolIndex>);
tools/clang/tools/extra/clangd/index/IndexAction.cpp 129 std::unique_ptr<CanonicalIncludes> Includes,
141 std::unique_ptr<ASTConsumer>
196 std::unique_ptr<CanonicalIncludes> Includes;
198 std::unique_ptr<CommentHandler> PragmaHandler;
204 std::unique_ptr<FrontendAction> createStaticIndexingAction(
tools/clang/tools/extra/clangd/index/IndexAction.h 26 std::unique_ptr<FrontendAction> createStaticIndexingAction(
tools/clang/tools/extra/clangd/index/MemIndex.cpp 19 std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab, RefSlab Refs,
tools/clang/tools/extra/clangd/index/MemIndex.h 48 static std::unique_ptr<SymbolIndex> build(SymbolSlab Symbols, RefSlab Refs,
tools/clang/tools/extra/clangd/index/Serialization.cpp 663 std::unique_ptr<SymbolIndex> loadIndex(llvm::StringRef SymbolFilename,
tools/clang/tools/extra/clangd/index/Serialization.h 83 std::unique_ptr<SymbolIndex> loadIndex(llvm::StringRef Filename,
tools/clang/tools/extra/clangd/index/SymbolCollector.h 152 std::unique_ptr<CodeCompletionTUInfo> CompletionTUInfo;
tools/clang/tools/extra/clangd/index/dex/Dex.cpp 26 std::unique_ptr<SymbolIndex> Dex::build(SymbolSlab Symbols, RefSlab Refs,
103 std::unique_ptr<Iterator> Dex::iterator(const Token &Tok) const {
110 std::unique_ptr<Iterator> Dex::createFileProximityIterator(
112 std::vector<std::unique_ptr<Iterator>> BoostingIterators;
147 std::unique_ptr<Iterator>
149 std::vector<std::unique_ptr<Iterator>> BoostingIterators;
173 std::vector<std::unique_ptr<Iterator>> Criteria;
178 std::vector<std::unique_ptr<Iterator>> TrigramIterators;
184 std::vector<std::unique_ptr<Iterator>> ScopeIterators;
tools/clang/tools/extra/clangd/index/dex/Dex.h 71 static std::unique_ptr<SymbolIndex> build(SymbolSlab, RefSlab, RelationSlab);
91 std::unique_ptr<Iterator> iterator(const Token &Tok) const;
92 std::unique_ptr<Iterator>
94 std::unique_ptr<Iterator>
tools/clang/tools/extra/clangd/index/dex/Iterator.cpp 27 explicit AndIterator(std::vector<std::unique_ptr<Iterator>> AllChildren)
120 std::vector<std::unique_ptr<Iterator>> Children;
136 explicit OrIterator(std::vector<std::unique_ptr<Iterator>> AllChildren)
211 std::vector<std::unique_ptr<Iterator>> Children;
283 BoostIterator(std::unique_ptr<Iterator> Child, float Factor)
303 std::unique_ptr<Iterator> Child;
313 LimitIterator(std::unique_ptr<Iterator> Child, size_t Limit)
343 std::unique_ptr<Iterator> Child;
357 std::unique_ptr<Iterator>
358 Corpus::intersect(std::vector<std::unique_ptr<Iterator>> Children) const {
359 std::vector<std::unique_ptr<Iterator>> RealChildren;
387 std::unique_ptr<Iterator>
388 Corpus::unionOf(std::vector<std::unique_ptr<Iterator>> Children) const {
389 std::vector<std::unique_ptr<Iterator>> RealChildren;
417 std::unique_ptr<Iterator> Corpus::all() const {
421 std::unique_ptr<Iterator> Corpus::none() const {
425 std::unique_ptr<Iterator> Corpus::boost(std::unique_ptr<Iterator> Child,
425 std::unique_ptr<Iterator> Corpus::boost(std::unique_ptr<Iterator> Child,
434 std::unique_ptr<Iterator> Corpus::limit(std::unique_ptr<Iterator> Child,
434 std::unique_ptr<Iterator> Corpus::limit(std::unique_ptr<Iterator> Child,
tools/clang/tools/extra/clangd/index/dex/Iterator.h 124 inline void populateChildren(std::vector<std::unique_ptr<Iterator>> &) {}
126 void populateChildren(std::vector<std::unique_ptr<Iterator>> &Children,
127 std::unique_ptr<Iterator> Head, TailT... Tail) {
145 std::unique_ptr<Iterator>
146 intersect(std::vector<std::unique_ptr<Iterator>> Children) const;
153 std::unique_ptr<Iterator>
154 unionOf(std::vector<std::unique_ptr<Iterator>> Children) const;
158 std::unique_ptr<Iterator> all() const;
161 std::unique_ptr<Iterator> none() const;
167 std::unique_ptr<Iterator> boost(std::unique_ptr<Iterator> Child,
167 std::unique_ptr<Iterator> boost(std::unique_ptr<Iterator> Child,
174 std::unique_ptr<Iterator> limit(std::unique_ptr<Iterator> Child,
174 std::unique_ptr<Iterator> limit(std::unique_ptr<Iterator> Child,
179 std::unique_ptr<Iterator> intersect(Args... args) const {
180 std::vector<std::unique_ptr<Iterator>> Children;
187 std::unique_ptr<Iterator> unionOf(Args... args) const {
188 std::vector<std::unique_ptr<Iterator>> Children;
tools/clang/tools/extra/clangd/index/dex/PostingList.cpp 222 std::unique_ptr<Iterator> PostingList::iterator(const Token *Tok) const {
tools/clang/tools/extra/clangd/index/dex/PostingList.h 66 std::unique_ptr<Iterator> iterator(const Token *Tok = nullptr) const;
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp 258 std::function<std::unique_ptr<Command>()> Implementation;
267 std::unique_ptr<SymbolIndex> openIndex(llvm::StringRef Index) {
282 std::unique_ptr<SymbolIndex> Index;
tools/clang/tools/extra/clangd/indexer/IndexerMain.cpp 42 std::unique_ptr<FrontendAction> create() override {
tools/clang/tools/extra/clangd/refactor/Tweak.cpp 58 std::vector<std::unique_ptr<Tweak>>
63 std::vector<std::unique_ptr<Tweak>> Available;
65 std::unique_ptr<Tweak> T = E.instantiate();
77 llvm::Expected<std::unique_ptr<Tweak>> prepareTweak(StringRef ID,
85 std::unique_ptr<Tweak> T = It->instantiate();
tools/clang/tools/extra/clangd/refactor/Tweak.h 138 std::vector<std::unique_ptr<Tweak>>
145 llvm::Expected<std::unique_ptr<Tweak>> prepareTweak(StringRef TweakID,
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 445 std::unique_ptr<ExtractionContext> Target;
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp 504 std::unique_ptr<trace::EventTracer> Tracer;
583 std::unique_ptr<SymbolIndex> StaticIdx;
620 std::unique_ptr<Transport> TransportLayer;
639 std::unique_ptr<tidy::ClangTidyOptionsProvider>
tools/clang/tools/extra/clangd/unittests/BackgroundIndexTests.cpp 63 std::unique_ptr<IndexFileIn>
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp 910 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp 92 std::unique_ptr<SymbolIndex> memIndex(std::vector<Symbol> Symbols) {
103 std::unique_ptr<SymbolIndex> OverrideIndex;
121 std::unique_ptr<SymbolIndex> OverrideIndex;
156 std::unique_ptr<SymbolIndex> OverrideIndex;
1008 std::unique_ptr<SymbolIndex> Index;
tools/clang/tools/extra/clangd/unittests/ContextTests.cpp 27 Key<std::unique_ptr<int>> Param;
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp 518 std::unique_ptr<SymbolIndex>
tools/clang/tools/extra/clangd/unittests/FileIndexTests.cpp 67 std::unique_ptr<SymbolSlab> numSlab(int Begin, int End) {
74 std::unique_ptr<RefSlab> refSlab(const SymbolID &ID, const char *Path) {
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp 60 std::unique_ptr<llvm::raw_ostream> OS(
197 std::unique_ptr<llvm::raw_ostream> OS(
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp 86 std::unique_ptr<GlobalCompilationDatabase> Base;
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp 40 std::unique_ptr<CompilerInstance> setupClang() {
tools/clang/tools/extra/clangd/unittests/JSONTransportTests.cpp 27 std::unique_ptr<FILE, int (*)(FILE *)> In;
33 std::unique_ptr<Transport> transport(std::string InData, bool Pretty,
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp 204 std::unique_ptr<FrontendAction> create() override {
213 std::unique_ptr<ASTConsumer>
297 std::unique_ptr<CommentHandler> PragmaHandler;
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp 68 static std::unique_ptr<ParsingCallbacks> captureDiags() {
tools/clang/tools/extra/clangd/unittests/TestTU.cpp 88 std::unique_ptr<SymbolIndex> TestTU::index() const {
tools/clang/tools/extra/clangd/unittests/TestTU.h 69 std::unique_ptr<SymbolIndex> index() const;
tools/clang/tools/extra/clangd/unittests/TweakTesting.h 72 std::unique_ptr<const SymbolIndex> Index = nullptr;
tools/clang/tools/extra/modularize/CoverageChecker.cpp 118 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
133 std::unique_ptr<FrontendAction> create() override {
154 std::unique_ptr<CoverageChecker> CoverageChecker::createCoverageChecker(
281 std::unique_ptr<CompilationDatabase> Compilations;
tools/clang/tools/extra/modularize/CoverageChecker.h 93 static std::unique_ptr<CoverageChecker> createCoverageChecker(
tools/clang/tools/extra/modularize/Modularize.cpp 706 std::unique_ptr<clang::ASTConsumer>
726 std::unique_ptr<FrontendAction> create() override {
797 std::unique_ptr<clang::ASTConsumer>
807 std::unique_ptr<FrontendAction> create() override {
833 std::unique_ptr<ModularizeUtilities> ModUtil;
867 std::unique_ptr<CompilationDatabase> Compilations;
872 std::unique_ptr<PreprocessorTracker> PPTracker(
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 121 std::unique_ptr<clang::ModuleMap> &ModMap = ModuleMaps[ModuleMapIndex];
147 ErrorOr<std::unique_ptr<MemoryBuffer>> listBuffer =
220 ErrorOr<std::unique_ptr<MemoryBuffer>> listBuffer =
291 std::unique_ptr<ModuleMap> ModMap;
tools/clang/tools/extra/modularize/ModularizeUtilities.h 217 std::unique_ptr<clang::HeaderSearch> HeaderInfo;
219 std::vector<std::unique_ptr<clang::ModuleMap>> ModuleMaps;
tools/clang/tools/extra/modularize/ModuleAssistant.cpp 304 std::unique_ptr<Module> RootModule(
tools/clang/tools/extra/pp-trace/PPTrace.cpp 85 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
116 std::unique_ptr<FrontendAction> create() override {
tools/clang/tools/extra/unittests/clang-change-namespace/ChangeNamespaceTests.cpp 44 std::unique_ptr<tooling::FrontendActionFactory> Factory =
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp 43 std::vector<std::unique_ptr<Info>> readInfo(StringRef Bitcode,
68 std::vector<std::unique_ptr<Info>> ReadResults = readInfo(WriteResult, 1);
97 std::vector<std::unique_ptr<Info>> ReadResults = readInfo(WriteResult, 1);
117 std::vector<std::unique_ptr<Info>> ReadResults = readInfo(WriteResult, 1);
139 std::vector<std::unique_ptr<Info>> ReadResults = readInfo(WriteResult, 1);
157 std::vector<std::unique_ptr<Info>> ReadResults = readInfo(WriteResult, 1);
273 std::vector<std::unique_ptr<Info>> ReadResults = readInfo(WriteResult, 1);
tools/clang/tools/extra/unittests/clang-doc/ClangDocTest.h 20 using EmittedInfoList = std::vector<std::unique_ptr<Info>>;
tools/clang/tools/extra/unittests/clang-doc/HTMLGeneratorTest.cpp 22 std::unique_ptr<Generator> getHTMLGenerator() {
tools/clang/tools/extra/unittests/clang-doc/MDGeneratorTest.cpp 17 std::unique_ptr<Generator> getMDGenerator() {
tools/clang/tools/extra/unittests/clang-doc/MergeTest.cpp 45 std::vector<std::unique_ptr<Info>> Infos;
116 std::vector<std::unique_ptr<Info>> Infos;
195 std::vector<std::unique_ptr<Info>> Infos;
247 std::vector<std::unique_ptr<Info>> Infos;
tools/clang/tools/extra/unittests/clang-doc/YAMLGeneratorTest.cpp 18 std::unique_ptr<Generator> getYAMLGenerator() {
tools/clang/tools/extra/unittests/clang-include-fixer/find-all-symbols/FindAllSymbolsTests.cpp 94 std::unique_ptr<tooling::FrontendActionFactory> Factory(
tools/clang/tools/extra/unittests/clang-query/QueryEngineTest.cpp 28 ArrayRef<std::unique_ptr<ASTUnit>> mkASTUnit2(std::unique_ptr<ASTUnit> a,
28 ArrayRef<std::unique_ptr<ASTUnit>> mkASTUnit2(std::unique_ptr<ASTUnit> a,
29 std::unique_ptr<ASTUnit> b) {
43 std::unique_ptr<ASTUnit> ASTs[2];
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h 33 SmallVectorImpl<std::unique_ptr<ClangTidyCheck>> &Result) {
42 SmallVectorImpl<std::unique_ptr<ClangTidyCheck>> &Result) {
51 TestClangTidyAction(SmallVectorImpl<std::unique_ptr<ClangTidyCheck>> &Checks,
57 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
76 SmallVectorImpl<std::unique_ptr<ClangTidyCheck>> &Checks;
118 SmallVector<std::unique_ptr<ClangTidyCheck>, 1> Checks;
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp 60 std::unique_ptr<utils::IncludeInserter> Inserter;
tools/clang/tools/extra/unittests/clang-tidy/NamespaceAliaserTest.cpp 46 std::unique_ptr<NamespaceAliaser> Aliaser;
tools/clang/tools/extra/unittests/clang-tidy/UsingInserterTest.cpp 50 std::unique_ptr<UsingInserter> Inserter;
tools/clang/tools/libclang/ARCMigrate.cpp 58 std::unique_ptr<Remap> remap(new Remap());
85 std::unique_ptr<Remap> remap(new Remap());
tools/clang/tools/libclang/CIndex.cpp 72 std::unique_ptr<ASTUnit> AU) {
3370 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile(
3459 std::unique_ptr<std::vector<ASTUnit::RemappedFile>> RemappedFiles(
3467 std::unique_ptr<llvm::MemoryBuffer> MB =
3472 std::unique_ptr<std::vector<const char *>> Args(
3516 std::unique_ptr<ASTUnit> ErrUnit;
3527 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCommandLine(
4109 std::unique_ptr<std::vector<ASTUnit::RemappedFile>> RemappedFiles(
4117 std::unique_ptr<llvm::MemoryBuffer> MB =
8566 std::unique_ptr<MemUsageEntries> entries(new MemUsageEntries());
tools/clang/tools/libclang/CIndexCodeCompletion.cpp 726 std::unique_ptr<llvm::MemoryBuffer> MB =
tools/clang/tools/libclang/CIndexDiagnostic.cpp 33 CXDiagnosticSetImpl::appendDiagnostic(std::unique_ptr<CXDiagnosticImpl> D) {
tools/clang/tools/libclang/CIndexDiagnostic.h 28 std::vector<std::unique_ptr<CXDiagnosticImpl>> Diagnostics;
45 void appendDiagnostic(std::unique_ptr<CXDiagnosticImpl> D);
102 void append(std::unique_ptr<CXDiagnosticImpl> D) {
tools/clang/tools/libclang/CXCompilationDatabase.cpp 17 std::unique_ptr<CompilationDatabase> db =
tools/clang/tools/libclang/CXLoadedDiagnostic.cpp 190 std::unique_ptr<CXLoadedDiagnosticSetImpl> TopDiags;
191 SmallVector<std::unique_ptr<CXLoadedDiagnostic>, 8> CurrentDiags;
tools/clang/tools/libclang/CXTranslationUnit.h 47 std::unique_ptr<ASTUnit> AU);
tools/clang/tools/libclang/Indexing.cpp 339 std::unique_ptr<ParsedSrcLocationsTracker> ParsedLocsTracker;
347 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
369 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
433 std::unique_ptr<ThreadSafeParsedRegions> SkipBodyData =
492 std::unique_ptr<std::vector<const char *>> Args(
526 typedef SmallVector<std::unique_ptr<llvm::MemoryBuffer>, 8> MemBufferOwner;
527 std::unique_ptr<MemBufferOwner> BufOwner(new MemBufferOwner);
534 std::unique_ptr<llvm::MemoryBuffer> MB =
559 std::unique_ptr<CXTUOwner> CXTU(
tools/clang/unittests/AST/ASTImporterFixtures.cpp 25 std::unique_ptr<llvm::MemoryBuffer> &&Buffer) {
tools/clang/unittests/AST/ASTImporterFixtures.h 44 std::unique_ptr<llvm::MemoryBuffer> &&Buffer);
105 std::unique_ptr<ASTUnit> Unit;
107 std::unique_ptr<ASTImporter> Importer;
148 std::unique_ptr<ASTUnit> ToAST;
tools/clang/unittests/AST/ASTImporterTest.cpp 70 std::unique_ptr<ASTUnit> FromAST = tooling::buildASTFromCodeWithArgs(
157 using SingleASTUnit = std::unique_ptr<ASTUnit>;
196 llvm::DenseMap<ImporterKey, std::unique_ptr<ASTImporter>> Importers;
215 std::unique_ptr<ASTImporter> &ImporterRef = Importers[{From, To}];
tools/clang/unittests/AST/ASTPrint.h 69 std::unique_ptr<tooling::FrontendActionFactory> Factory(
tools/clang/unittests/AST/CommentLexer.cpp 62 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source);
tools/clang/unittests/AST/CommentParser.cpp 55 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source);
tools/clang/unittests/AST/DataCollectionTest.cpp 78 std::unique_ptr<FrontendActionFactory> Factory(
tools/clang/unittests/AST/DeclPrinterTest.cpp 82 std::unique_ptr<FrontendActionFactory> Factory(
tools/clang/unittests/AST/DeclTest.cpp 27 std::unique_ptr<FrontendActionFactory> Factory(
98 std::unique_ptr<ItaniumMangleContext> MC(
tools/clang/unittests/AST/EvaluateAsRValueTest.cpp 59 std::unique_ptr<clang::ASTConsumer>
tools/clang/unittests/AST/ExternalASTSourceTest.cpp 38 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/unittests/AST/MatchVerifier.h 86 std::unique_ptr<tooling::FrontendActionFactory> Factory(
tools/clang/unittests/AST/NamedDeclPrinterTest.cpp 72 std::unique_ptr<FrontendActionFactory> Factory =
tools/clang/unittests/AST/OMPStructuredBlockTest.cpp 60 std::unique_ptr<FrontendActionFactory> Factory(
tools/clang/unittests/AST/RecursiveASTVisitorTest.cpp 32 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp 18 std::unique_ptr<ASTUnit> AST0, AST1;
tools/clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp 106 std::unique_ptr<FrontendActionFactory> Factory(
128 std::unique_ptr<FrontendActionFactory> Factory(
134 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;"));
154 std::unique_ptr<FrontendActionFactory> Factory(
160 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;"));
167 std::unique_ptr<ASTUnit> AST =
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h 39 VerifyMatch(std::unique_ptr<BoundNodesCallback> FindResultVerifier, bool *Verified)
57 const std::unique_ptr<BoundNodesCallback> FindResultReviewer;
84 std::unique_ptr<FrontendActionFactory> Factory(
265 std::unique_ptr<FrontendActionFactory> Factory(
320 std::unique_ptr<BoundNodesCallback> FindResultVerifier,
326 std::unique_ptr<FrontendActionFactory> Factory(
345 std::unique_ptr<ASTUnit> AST(buildASTFromCodeWithArgs(Code, Args));
366 std::unique_ptr<BoundNodesCallback> FindResultVerifier) {
374 std::unique_ptr<BoundNodesCallback> FindResultVerifier) {
tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp 393 std::unique_ptr<Diagnostics> Error(new Diagnostics());
tools/clang/unittests/Analysis/CFGBuildResult.h 25 BuildResult(Status S, std::unique_ptr<CFG> Cfg = nullptr)
33 std::unique_ptr<CFG> Cfg;
48 if (std::unique_ptr<CFG> Cfg =
59 std::unique_ptr<tooling::FrontendActionFactory> Factory(
tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp 32 std::unique_ptr<ASTUnit>
42 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code) {
tools/clang/unittests/Basic/FileManagerTest.cpp 62 std::unique_ptr<llvm::vfs::File> *F,
tools/clang/unittests/Basic/SourceManagerTest.cpp 56 std::unique_ptr<llvm::MemoryBuffer> Buf =
110 std::unique_ptr<llvm::MemoryBuffer> Buf =
163 std::unique_ptr<llvm::MemoryBuffer> HeaderBuf =
165 std::unique_ptr<llvm::MemoryBuffer> Buf =
259 std::unique_ptr<llvm::MemoryBuffer> HeaderBuf =
261 std::unique_ptr<llvm::MemoryBuffer> MainBuf =
378 std::unique_ptr<llvm::MemoryBuffer> HeaderBuf =
380 std::unique_ptr<llvm::MemoryBuffer> MainBuf =
tools/clang/unittests/CodeGen/CodeGenExternalTest.cpp 53 std::unique_ptr<CodeGenerator> Builder;
56 MyASTConsumer(std::unique_ptr<CodeGenerator> Builder_in)
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp 48 static std::unique_ptr<llvm::Module>
95 std::unique_ptr<llvm::Module> M(CG.ReleaseModule());
144 std::unique_ptr<Parser> ParseOP(new Parser(S.getPreprocessor(), S,
148 std::array<std::unique_ptr<llvm::Module>, 3> M;
tools/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp 73 std::unique_ptr<ASTUnit> ASTWithDefinition =
122 std::unique_ptr<clang::ASTConsumer>
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp 280 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
313 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
335 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
362 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
394 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
417 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
439 llvm::Expected<std::unique_ptr<DirectoryWatcher>> DW =
tools/clang/unittests/Driver/ToolChainTest.cpp 62 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
102 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
142 std::unique_ptr<Compilation> CC(CCDriver.BuildCompilation(
144 std::unique_ptr<Compilation> CXX(CXXDriver.BuildCompilation(
146 std::unique_ptr<Compilation> CL(CLDriver.BuildCompilation(
162 std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
tools/clang/unittests/Frontend/ASTUnitTest.cpp 29 std::unique_ptr<ToolOutputFile> input_file;
34 std::unique_ptr<ASTUnit> createASTUnit(bool isVolatile) {
74 std::unique_ptr<ASTUnit> AST = createASTUnit(false);
89 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile(
101 std::unique_ptr<ASTUnit> AST = createASTUnit(true);
106 std::unique_ptr<llvm::MemoryBuffer> memoryBuffer =
tools/clang/unittests/Frontend/CodeGenActionTest.cpp 57 std::unique_ptr<FrontendAction> Act(new NullCodeGenAction);
tools/clang/unittests/Frontend/FrontendActionTest.cpp 49 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/unittests/Frontend/OutputStreamTest.cpp 35 std::unique_ptr<raw_pwrite_stream> IRStream(
87 std::unique_ptr<raw_ostream> VerboseStream =
tools/clang/unittests/Frontend/PCHPreambleTest.cpp 32 ErrorOr<std::unique_ptr<vfs::File>> openFileForRead(const Twine &Path) override
79 std::unique_ptr<ASTUnit> ParseAST(const std::string &EntryFile) {
98 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation(
104 bool ReparseAST(const std::unique_ptr<ASTUnit> &AST) {
118 std::unique_ptr<MemoryBuffer> buf = MemoryBuffer::getMemBufferCopy(
137 std::unique_ptr<ASTUnit> AST(ParseAST(MainName));
157 std::unique_ptr<ASTUnit> AST(ParseAST(MainName));
180 std::unique_ptr<ASTUnit> AST(ParseAST(MainName));
204 std::unique_ptr<ASTUnit> AST(ParseAST(MainName));
230 std::unique_ptr<ASTUnit> AST(ParseAST(Main));
tools/clang/unittests/Index/IndexTests.cpp 118 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/clang/unittests/Lex/HeaderMapTest.cpp 45 std::unique_ptr<const MemoryBuffer> getBuffer() const {
tools/clang/unittests/Lex/LexerTest.cpp 48 std::unique_ptr<Preprocessor> CreatePP(StringRef Source,
50 std::unique_ptr<llvm::MemoryBuffer> Buf =
56 std::unique_ptr<Preprocessor> PP = std::make_unique<Preprocessor>(
406 std::unique_ptr<MacroArgs, decltype(MacroArgsDeleter)> MA(
tools/clang/unittests/Lex/PPCallbacksTest.cpp 175 std::unique_ptr<llvm::MemoryBuffer> Buf =
194 std::unique_ptr<llvm::MemoryBuffer> Buf =
233 std::unique_ptr<llvm::MemoryBuffer> Buf =
264 std::unique_ptr<llvm::MemoryBuffer> SourceBuf =
tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp 72 std::unique_ptr<llvm::MemoryBuffer> Buf =
tools/clang/unittests/Rename/ClangRenameTest.h 62 std::unique_ptr<tooling::FrontendActionFactory> USRFindingActionFactory =
tools/clang/unittests/Rewrite/RewriterTest.cpp 18 std::unique_ptr<ASTUnit> AST;
tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp 184 std::unique_ptr<DiagnosticConsumer> OwnedClient;
187 std::unique_ptr<clang::ASTConsumer>
tools/clang/unittests/Serialization/InMemoryModuleCacheTest.cpp 18 std::unique_ptr<MemoryBuffer> getBuffer(int I) {
tools/clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp 94 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
tools/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp 44 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
46 std::unique_ptr<AnalysisASTConsumer> AnalysisConsumer =
tools/clang/unittests/StaticAnalyzer/StoreTest.cpp 92 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
tools/clang/unittests/StaticAnalyzer/SymbolReaperTest.cpp 56 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
tools/clang/unittests/Tooling/CommentHandlerTest.cpp 58 std::unique_ptr<ASTFrontendAction> CreateTestAction() override {
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp 58 std::unique_ptr<CompilationDatabase> Database(
71 std::unique_ptr<CompilationDatabase> Database(
177 std::unique_ptr<CompilationDatabase> Database(
537 std::unique_ptr<FixedCompilationDatabase> Database =
548 std::unique_ptr<FixedCompilationDatabase> Database(
561 std::unique_ptr<FixedCompilationDatabase> Database(
578 std::unique_ptr<FixedCompilationDatabase> Database =
595 std::unique_ptr<FixedCompilationDatabase> Database =
614 std::unique_ptr<CompilationDatabase> Database =
630 std::unique_ptr<FixedCompilationDatabase> Database =
tools/clang/unittests/Tooling/ExecutionTest.cpp 66 std::unique_ptr<clang::ASTConsumer>
69 std::unique_ptr<clang::ASTConsumer> ast_consumer{
81 std::unique_ptr<FrontendAction> create() override {
101 execute(llvm::ArrayRef<std::pair<std::unique_ptr<FrontendActionFactory>,
128 llvm::Expected<std::unique_ptr<ToolExecutor>>
tools/clang/unittests/Tooling/RangeSelectorTest.cpp 37 std::unique_ptr<clang::ASTUnit> ASTUnit;
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp 37 createReplacements(const std::unique_ptr<RefactoringActionRule> &Rule,
tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp 26 std::unique_ptr<tooling::FrontendActionFactory> Factory(
tools/clang/unittests/Tooling/RefactoringTest.cpp 677 std::unique_ptr<clang::ASTConsumer>
tools/clang/unittests/Tooling/RewriterTestContext.h 55 std::unique_ptr<llvm::MemoryBuffer> Source =
tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp 42 std::unique_ptr<ASTUnit> AstUnit;
tools/clang/unittests/Tooling/StencilTest.cpp 46 std::unique_ptr<ASTUnit> AstUnit;
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp 107 std::unique_ptr<ASTConsumer>
tools/clang/unittests/Tooling/Syntax/TreeTest.cpp 36 std::unique_ptr<syntax::Arena> &Arena,
37 std::unique_ptr<syntax::TokenCollector> Tokens)
52 std::unique_ptr<syntax::Arena> &Arena;
53 std::unique_ptr<syntax::TokenCollector> Tokens;
59 std::unique_ptr<syntax::Arena> &Arena)
62 std::unique_ptr<ASTConsumer>
73 std::unique_ptr<syntax::Arena> &Arena;
121 std::unique_ptr<syntax::Arena> Arena;
tools/clang/unittests/Tooling/TestVisitor.h 88 virtual std::unique_ptr<ASTFrontendAction> CreateTestAction() {
109 std::unique_ptr<clang::ASTConsumer>
tools/clang/unittests/Tooling/ToolingTest.cpp 35 explicit TestAction(std::unique_ptr<clang::ASTConsumer> TestConsumer)
39 std::unique_ptr<clang::ASTConsumer>
47 std::unique_ptr<clang::ASTConsumer> TestConsumer;
120 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;");
130 std::unique_ptr<FrontendActionFactory> Factory(
132 std::unique_ptr<FrontendAction> Action(Factory->create());
137 std::unique_ptr<ASTConsumer> newASTConsumer() {
144 std::unique_ptr<FrontendActionFactory> Factory(
146 std::unique_ptr<FrontendAction> Action(Factory->create());
209 std::unique_ptr<ASTConsumer> newASTConsumer() {
230 std::unique_ptr<FrontendActionFactory> Action(
249 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
336 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
379 std::unique_ptr<FrontendActionFactory> Action(
411 std::unique_ptr<FrontendActionFactory> Action(
445 std::unique_ptr<FrontendActionFactory> Action(
457 std::unique_ptr<FrontendActionFactory> Action(
488 std::unique_ptr<FrontendActionFactory> Action(
602 std::vector<std::unique_ptr<ASTUnit>> ASTs;
622 std::unique_ptr<FrontendActionFactory> Action(
634 std::vector<std::unique_ptr<ASTUnit>> ASTs;
644 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
tools/clang/unittests/libclang/TestUtils.h 25 typedef std::unique_ptr<std::string> fixed_addr_string;
tools/clang/utils/TableGen/ClangAttrEmitter.cpp 1251 static std::unique_ptr<Argument>
1257 std::unique_ptr<Argument> Ptr;
1369 const std::vector<std::unique_ptr<Argument>> &Args,
2269 std::vector<std::unique_ptr<Argument>> Args;
2508 std::vector<std::unique_ptr<Argument>> Args;
2679 std::vector<std::unique_ptr<AttrClass>> Classes;
2816 std::vector<std::unique_ptr<Argument>> Args;
3210 std::vector<std::unique_ptr<Argument>> Args;
tools/clang/utils/TableGen/MveEmitter.cpp 833 std::map<std::string, std::unique_ptr<ScalarType>> ScalarTypes;
834 std::map<std::pair<ScalarTypeKind, unsigned>, std::unique_ptr<VectorType>>
836 std::map<std::pair<std::string, unsigned>, std::unique_ptr<MultiVectorType>>
838 std::map<unsigned, std::unique_ptr<PredicateType>> PredicateTypes;
839 std::map<std::string, std::unique_ptr<PointerType>> PointerTypes;
842 std::map<std::string, std::unique_ptr<ACLEIntrinsic>> ACLEIntrinsics;
tools/dsymutil/BinaryHolder.h 48 std::unique_ptr<MemoryBuffer> MemBuffer;
49 std::unique_ptr<object::MachOUniversalBinary> FatBinary;
91 std::vector<std::unique_ptr<object::ObjectFile>> Objects;
115 std::vector<std::unique_ptr<object::Archive>> Archives;
tools/dsymutil/DebugMap.cpp 126 ErrorOr<std::vector<std::unique_ptr<DebugMap>>>
137 std::unique_ptr<DebugMap> Res;
143 std::vector<std::unique_ptr<DebugMap>> Result;
190 IO &io, std::vector<std::unique_ptr<dsymutil::DebugMapObject>> &seq) {
196 IO &, std::vector<std::unique_ptr<dsymutil::DebugMapObject>> &seq,
215 IO &io, std::unique_ptr<dsymutil::DebugMap> &DM) {
tools/dsymutil/DebugMap.h 78 using ObjectContainer = std::vector<std::unique_ptr<DebugMapObject>>;
130 static ErrorOr<std::vector<std::unique_ptr<DebugMap>>>
253 size(IO &io, std::vector<std::unique_ptr<dsymutil::DebugMapObject>> &seq);
255 element(IO &, std::vector<std::unique_ptr<dsymutil::DebugMapObject>> &seq,
264 static void mapping(IO &io, std::unique_ptr<dsymutil::DebugMap> &DM);
tools/dsymutil/DwarfLinker.cpp 2290 std::unique_ptr<CompileUnit> Unit;
tools/dsymutil/DwarfLinker.h 40 using UnitListTy = std::vector<std::unique_ptr<CompileUnit>>;
147 std::unique_ptr<DWARFContext> DwarfContext;
267 std::vector<std::unique_ptr<CompileUnit>> &CompileUnits;
273 std::vector<std::unique_ptr<CompileUnit>> &CompileUnits,
444 std::vector<std::unique_ptr<DIEAbbrev>> Abbreviations;
469 std::unique_ptr<DwarfStreamer> Streamer;
tools/dsymutil/DwarfStreamer.cpp 180 const std::vector<std::unique_ptr<DIEAbbrev>> &Abbrevs,
tools/dsymutil/DwarfStreamer.h 71 void emitAbbrevs(const std::vector<std::unique_ptr<DIEAbbrev>> &Abbrevs,
150 std::unique_ptr<MCRegisterInfo> MRI;
151 std::unique_ptr<MCAsmInfo> MAI;
152 std::unique_ptr<MCObjectFileInfo> MOFI;
153 std::unique_ptr<MCContext> MC;
155 std::unique_ptr<MCInstrInfo> MII;
156 std::unique_ptr<MCSubtargetInfo> MSTI;
160 std::unique_ptr<TargetMachine> TM;
161 std::unique_ptr<AsmPrinter> Asm;
tools/dsymutil/MachODebugMapParser.cpp 37 ErrorOr<std::vector<std::unique_ptr<DebugMap>>> parse();
54 std::unique_ptr<DebugMap> Result;
67 std::unique_ptr<DebugMap> parseOneBinary(const MachOObjectFile &MainBinary,
187 std::unique_ptr<DebugMap>
377 ErrorOr<std::vector<std::unique_ptr<DebugMap>>> MachODebugMapParser::parse() {
388 std::vector<std::unique_ptr<DebugMap>> Results;
584 llvm::ErrorOr<std::vector<std::unique_ptr<DebugMap>>>
tools/dsymutil/MachOUtils.h 28 std::unique_ptr<llvm::sys::fs::TempFile> File;
tools/dsymutil/dsymutil.cpp 366 std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*Obj);
tools/dsymutil/dsymutil.h 37 ErrorOr<std::vector<std::unique_ptr<DebugMap>>>
tools/gold/gold-plugin.cpp 81 std::unique_ptr<ld_plugin_input_file> File;
499 std::unique_ptr<MemoryBuffer> Buffer;
515 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
528 Expected<std::unique_ptr<InputFile>> ObjOrErr = InputFile::create(BufferRef);
544 std::unique_ptr<InputFile> Obj = std::move(*ObjOrErr);
706 Expected<std::unique_ptr<InputFile>> ObjOrErr = InputFile::create(BufferRef);
713 std::unique_ptr<InputFile> Input = std::move(ObjOrErr.get());
839 static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
972 static std::unique_ptr<raw_fd_ostream> CreateLinkedObjectsFile() {
992 DenseMap<void *, std::unique_ptr<PluginInputFile>> HandleToInputFile;
997 std::unique_ptr<raw_fd_ostream> LinkedObjects = CreateLinkedObjectsFile();
998 std::unique_ptr<LTO> Lto = createLTO(
tools/llc/llc.cpp 187 static std::unique_ptr<ToolOutputFile> GetOutputStream(const char *TargetName,
335 Expected<std::unique_ptr<ToolOutputFile>> RemarksFileOrErr =
343 std::unique_ptr<ToolOutputFile> RemarksFile = std::move(*RemarksFileOrErr);
394 std::unique_ptr<Module> M;
395 std::unique_ptr<MIRParser> MIR;
458 std::unique_ptr<TargetMachine> Target(TheTarget->createTargetMachine(
475 std::unique_ptr<ToolOutputFile> Out =
479 std::unique_ptr<ToolOutputFile> DwoOut;
532 std::unique_ptr<raw_svector_ostream> BOS;
596 std::unique_ptr<Module> M2(llvm::CloneModule(*M));
tools/lld/COFF/DebugTypes.cpp 54 std::unique_ptr<llvm::pdb::NativeSession> session;
94 static std::vector<std::unique_ptr<TpiSource>> GC;
249 std::unique_ptr<llvm::pdb::IPDBSession> iSession;
255 std::unique_ptr<llvm::pdb::NativeSession> session(
tools/lld/COFF/Driver.cpp 125 using MBErrPair = std::pair<std::unique_ptr<MemoryBuffer>, std::error_code>;
160 MemoryBufferRef LinkerDriver::takeBuffer(std::unique_ptr<MemoryBuffer> mb) {
162 make<std::unique_ptr<MemoryBuffer>>(std::move(mb)); // take ownership
170 void LinkerDriver::addBuffer(std::unique_ptr<MemoryBuffer> mb,
184 std::unique_ptr<Archive> file =
187 make<std::unique_ptr<Archive>>(std::move(file)); // take ownership
772 ErrorOr<std::unique_ptr<MemoryBuffer>> oldBuf = MemoryBuffer::getFile(
792 std::unique_ptr<MemoryBuffer> newBuf = check(MemoryBuffer::getFile(
803 std::unique_ptr<MemoryBuffer> mb = CHECK(
888 std::unique_ptr<MemoryBuffer> mb = CHECK(
1155 Expected<std::unique_ptr<TarWriter>> errOrWriter =
tools/lld/COFF/Driver.h 78 MemoryBufferRef takeBuffer(std::unique_ptr<MemoryBuffer> mb);
83 std::unique_ptr<llvm::TarWriter> tar; // for /linkrepro
127 void addBuffer(std::unique_ptr<MemoryBuffer> mb, bool wholeArchive,
177 std::unique_ptr<MemoryBuffer> createManifestRes();
tools/lld/COFF/DriverUtils.cpp 347 std::unique_ptr<MemoryBuffer> getMemoryBuffer() {
390 std::unique_ptr<MemoryBuffer> defaultXmlCopy =
399 std::unique_ptr<MemoryBuffer> manifest =
450 static std::unique_ptr<WritableMemoryBuffer>
494 std::unique_ptr<MemoryBuffer> createManifestRes() {
497 std::unique_ptr<WritableMemoryBuffer> res =
709 std::unique_ptr<object::Binary> bin = check(object::createBinary(mb));
739 Expected<std::unique_ptr<MemoryBuffer>> e =
746 make<std::unique_ptr<MemoryBuffer>>(std::move(*e)); // take ownership
tools/lld/COFF/InputFiles.cpp 157 std::unique_ptr<lto::InputFile> obj =
167 std::unique_ptr<Binary> coffObjPtr = CHECK(createBinary(mb), this);
186 std::unique_ptr<Binary> bin = CHECK(createBinary(mb), this);
tools/lld/COFF/InputFiles.h 110 std::unique_ptr<Archive> file;
264 std::unique_ptr<COFFObjectFile> coffObj;
348 std::unique_ptr<llvm::lto::InputFile> obj;
tools/lld/COFF/LTO.cpp 46 static std::unique_ptr<raw_fd_ostream> openFile(StringRef file) {
203 for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/COFF/LTO.h 51 std::unique_ptr<llvm::lto::LTO> ltoObj;
53 std::vector<std::unique_ptr<MemoryBuffer>> files;
54 std::unique_ptr<llvm::raw_fd_ostream> indexFile;
tools/lld/COFF/PDB.cpp 1340 ErrorOr<std::unique_ptr<MemoryBuffer>> dataOrErr =
tools/lld/COFF/SymbolTable.h 131 std::unique_ptr<BitcodeCompiler> lto;
tools/lld/COFF/Writer.cpp 237 std::unique_ptr<FileOutputBuffer> &buffer;
tools/lld/Common/DWARF.cpp 16 DWARFCache::DWARFCache(std::unique_ptr<llvm::DWARFContext> d)
18 for (std::unique_ptr<DWARFUnit> &cu : dwarf->compile_units()) {
tools/lld/ELF/Driver.cpp 158 std::unique_ptr<Archive> file =
182 for (std::unique_ptr<MemoryBuffer> &mb : file->takeThinBuffers())
183 make<std::unique_ptr<MemoryBuffer>>(std::move(mb));
214 std::unique_ptr<Archive> file =
455 Expected<std::unique_ptr<TarWriter>> errOrWriter =
tools/lld/ELF/Driver.h 46 std::unique_ptr<BitcodeCompiler> lto;
tools/lld/ELF/InputFiles.cpp 63 std::unique_ptr<TarWriter> tar;
117 std::unique_ptr<MemoryBuffer> &mb = *mbOrErr;
119 make<std::unique_ptr<MemoryBuffer>>(std::move(mb)); // take MB ownership
1071 ArchiveFile::ArchiveFile(std::unique_ptr<Archive> &&file)
1506 std::unique_ptr<lto::InputFile> obj =
tools/lld/ELF/InputFiles.h 49 extern std::unique_ptr<llvm::TarWriter> tar;
315 explicit ArchiveFile(std::unique_ptr<Archive> &&file);
326 std::unique_ptr<Archive> file;
336 std::unique_ptr<llvm::lto::InputFile> obj;
tools/lld/ELF/LTO.cpp 50 static std::unique_ptr<raw_fd_ostream> openFile(StringRef file) {
116 if (std::unique_ptr<raw_fd_ostream> os = openFile(config->outputFile))
221 std::unique_ptr<raw_fd_ostream> os = openFile(path + ".thinlto.bc");
301 for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/ELF/LTO.h 52 std::unique_ptr<llvm::lto::LTO> ltoObj;
54 std::vector<std::unique_ptr<MemoryBuffer>> files;
56 std::unique_ptr<llvm::raw_fd_ostream> indexFile;
tools/lld/ELF/SyntheticSections.cpp 2554 for (std::unique_ptr<DWARFUnit> &cu : dwarf.compile_units())
2564 for (std::unique_ptr<DWARFUnit> &cu : dwarf.compile_units()) {
tools/lld/ELF/Writer.cpp 79 std::unique_ptr<FileOutputBuffer> &buffer;
2597 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr =
tools/lld/include/lld/Common/DWARF.h 28 DWARFCache(std::unique_ptr<llvm::DWARFContext> dwarf);
35 std::unique_ptr<llvm::DWARFContext> dwarf;
tools/lld/include/lld/Common/ErrorHandler.h 101 std::unique_ptr<llvm::FileOutputBuffer> outputBuffer;
tools/lld/include/lld/Core/ArchiveLibraryFile.h 37 parseAllMembers(std::vector<std::unique_ptr<File>> &result) = 0;
tools/lld/include/lld/Core/LinkingContext.h 136 std::vector<std::unique_ptr<Node>> &getNodes() { return _nodes; }
137 const std::vector<std::unique_ptr<Node>> &getNodes() const { return _nodes; }
157 virtual void createInternalFiles(std::vector<std::unique_ptr<File>> &) const;
193 virtual void createImplicitFiles(std::vector<std::unique_ptr<File>> &) = 0;
226 virtual std::unique_ptr<File> createEntrySymbolFile() const;
227 std::unique_ptr<File> createEntrySymbolFile(StringRef filename) const;
230 virtual std::unique_ptr<File> createUndefinedSymbolFile() const;
231 std::unique_ptr<File> createUndefinedSymbolFile(StringRef filename) const;
244 std::vector<std::unique_ptr<Node>> _nodes;
tools/lld/include/lld/Core/Node.h 59 explicit FileNode(std::unique_ptr<File> f)
69 std::unique_ptr<File> _file;
tools/lld/include/lld/Core/PassManager.h 30 void add(std::unique_ptr<Pass> pass) {
35 for (std::unique_ptr<Pass> &pass : _passes)
43 std::vector<std::unique_ptr<Pass>> _passes;
tools/lld/include/lld/Core/Reader.h 51 virtual ErrorOr<std::unique_ptr<File>>
52 loadFile(std::unique_ptr<MemoryBuffer> mb, const class Registry &) const = 0;
87 ErrorOr<std::unique_ptr<File>>
88 loadFile(std::unique_ptr<MemoryBuffer> mb) const;
135 void add(std::unique_ptr<Reader>);
136 void add(std::unique_ptr<YamlIOTaggedDocumentHandler>);
138 std::vector<std::unique_ptr<Reader>> _readers;
139 std::vector<std::unique_ptr<YamlIOTaggedDocumentHandler>> _yamlHandlers;
tools/lld/include/lld/Core/Resolver.h 55 std::unique_ptr<SimpleFile> resultFile() { return std::move(_result); }
85 std::unique_ptr<MergedFile> _result;
tools/lld/include/lld/Core/Writer.h 35 virtual void createImplicitFiles(std::vector<std::unique_ptr<File>> &) {}
42 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &);
43 std::unique_ptr<Writer> createWriterYAML(const LinkingContext &);
tools/lld/include/lld/ReaderWriter/MachOLinkingContext.h 94 void createImplicitFiles(std::vector<std::unique_ptr<File>> &) override;
101 auto file = std::unique_ptr<T>(new T(std::forward<Args>(args)...));
335 std::unique_ptr<MemoryBuffer> content);
368 ErrorOr<std::unique_ptr<MemoryBuffer>> getMemoryBuffer(StringRef path);
487 mutable std::unique_ptr<mach_o::ArchHandler> _archHandler;
488 mutable std::unique_ptr<Writer> _writer;
493 mutable std::vector<std::unique_ptr<File>> _indirectDylibs;
498 std::unique_ptr<llvm::raw_fd_ostream> _dependencyInfo;
tools/lld/lib/Core/LinkingContext.cpp 30 std::unique_ptr<File> LinkingContext::createEntrySymbolFile() const {
34 std::unique_ptr<File>
38 std::unique_ptr<SimpleFile> entryFile(new SimpleFile(filename,
45 std::unique_ptr<File> LinkingContext::createUndefinedSymbolFile() const {
49 std::unique_ptr<File>
53 std::unique_ptr<SimpleFile> undefinedSymFile(
62 std::vector<std::unique_ptr<File>> &result) const {
63 if (std::unique_ptr<File> file = createEntrySymbolFile())
65 if (std::unique_ptr<File> file = createUndefinedSymbolFile())
tools/lld/lib/Core/Reader.cpp 27 void Registry::add(std::unique_ptr<Reader> reader) {
31 void Registry::add(std::unique_ptr<YamlIOTaggedDocumentHandler> handler) {
35 ErrorOr<std::unique_ptr<File>>
36 Registry::loadFile(std::unique_ptr<MemoryBuffer> mb) const {
42 for (const std::unique_ptr<Reader> &reader : _readers) {
64 for (const std::unique_ptr<YamlIOTaggedDocumentHandler> &h : _yamlHandlers)
tools/lld/lib/Core/Resolver.cpp 183 std::vector<std::unique_ptr<Node>> &inputs = _ctx.getNodes();
192 std::vector<std::unique_ptr<Node>> &inputs = _ctx.getNodes();
tools/lld/lib/Driver/DarwinLdDriver.cpp 95 static std::vector<std::unique_ptr<File>>
97 std::vector<std::unique_ptr<File>> result;
102 static std::vector<std::unique_ptr<File>>
103 parseMemberFiles(std::unique_ptr<File> file) {
104 std::vector<std::unique_ptr<File>> members;
114 std::vector<std::unique_ptr<File>> loadFile(MachOLinkingContext &ctx,
120 ErrorOr<std::unique_ptr<MemoryBuffer>> mbOrErr = ctx.getMemoryBuffer(path);
123 ErrorOr<std::unique_ptr<File>> fileOrErr =
127 std::unique_ptr<File> &file = fileOrErr.get();
138 std::vector<std::unique_ptr<File>> files;
160 std::vector<std::unique_ptr<File>> files =
162 for (std::unique_ptr<File> &file : files)
171 ErrorOr<std::unique_ptr<MemoryBuffer>> mb =
201 ErrorOr<std::unique_ptr<MemoryBuffer>> mb =
260 ErrorOr<std::unique_ptr<MemoryBuffer>> mb =
1110 ErrorOr<std::unique_ptr<MemoryBuffer>> contentOrErr =
1134 std::vector<std::unique_ptr<File>> Files;
1164 for (std::unique_ptr<Node> &ie : ctx.getNodes())
1184 std::unique_ptr<SimpleFile> mergedFile = resolver.resultFile();
tools/lld/lib/ReaderWriter/FileArchive.cpp 43 FileArchive(std::unique_ptr<MemoryBuffer> mb, const Registry ®,
68 std::unique_ptr<File> result;
81 parseAllMembers(std::vector<std::unique_ptr<File>> &result) override {
87 std::unique_ptr<File> file;
139 std::unique_ptr<File> &result) const {
150 std::unique_ptr<MemoryBuffer> memberMB(MemoryBuffer::getMemBuffer(
153 ErrorOr<std::unique_ptr<File>> fileOrErr =
193 std::unique_ptr<Archive> _archive;
197 std::vector<std::unique_ptr<MemoryBuffer>> _memberBuffers;
198 std::vector<std::unique_ptr<File>> _filesReturned;
209 ErrorOr<std::unique_ptr<File>> loadFile(std::unique_ptr<MemoryBuffer> mb,
209 ErrorOr<std::unique_ptr<File>> loadFile(std::unique_ptr<MemoryBuffer> mb,
212 std::unique_ptr<File> ret =
tools/lld/lib/ReaderWriter/MachO/ArchHandler.cpp 31 std::unique_ptr<mach_o::ArchHandler> ArchHandler::create(
tools/lld/lib/ReaderWriter/MachO/ArchHandler.h 35 static std::unique_ptr<ArchHandler> create(MachOLinkingContext::Arch arch);
283 static std::unique_ptr<mach_o::ArchHandler> create_x86_64();
284 static std::unique_ptr<mach_o::ArchHandler> create_x86();
285 static std::unique_ptr<mach_o::ArchHandler> create_arm();
286 static std::unique_ptr<mach_o::ArchHandler> create_arm64();
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp 1517 std::unique_ptr<mach_o::ArchHandler> ArchHandler::create_arm() {
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp 892 std::unique_ptr<mach_o::ArchHandler> ArchHandler::create_arm64() {
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp 638 std::unique_ptr<mach_o::ArchHandler> ArchHandler::create_x86() {
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp 894 std::unique_ptr<mach_o::ArchHandler> ArchHandler::create_x86_64() {
tools/lld/lib/ReaderWriter/MachO/DebugInfo.h 32 void setAllocator(std::unique_ptr<llvm::BumpPtrAllocator> allocator) {
40 std::unique_ptr<llvm::BumpPtrAllocator> _allocator;
tools/lld/lib/ReaderWriter/MachO/File.h 31 MachOFile(std::unique_ptr<MemoryBuffer> mb, MachOLinkingContext *ctx)
233 void setDebugInfo(std::unique_ptr<DebugInfo> debugInfo) {
238 std::unique_ptr<DebugInfo> takeDebugInfo() { return std::move(_debugInfo); }
268 std::unique_ptr<MemoryBuffer> _mb;
280 std::unique_ptr<DebugInfo> _debugInfo;
285 MachODylibFile(std::unique_ptr<MemoryBuffer> mb, MachOLinkingContext *ctx)
387 std::unique_ptr<MemoryBuffer> _mb;
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 657 ErrorOr<std::unique_ptr<MemoryBuffer>>
661 ErrorOr<std::unique_ptr<MemoryBuffer>> mbOrErr =
665 std::unique_ptr<MemoryBuffer> mb = std::move(mbOrErr.get());
677 ErrorOr<std::unique_ptr<MemoryBuffer>> mbOrErr = getMemoryBuffer(path);
681 ErrorOr<std::unique_ptr<File>> fileOrErr =
685 std::unique_ptr<File> &file = fileOrErr.get();
743 std::vector<std::unique_ptr<File> > &result) {
802 std::unique_ptr<MemoryBuffer> content) {
1000 static bool isLibrary(const std::unique_ptr<Node> &elem) {
1016 std::vector<std::unique_ptr<Node>> &elements = getNodes();
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFile.h 283 llvm::Expected<std::unique_ptr<NormalizedFile>>
284 readBinary(std::unique_ptr<MemoryBuffer> &mb,
295 llvm::Expected<std::unique_ptr<NormalizedFile>>
296 readYaml(std::unique_ptr<MemoryBuffer> &mb);
312 llvm::Expected<std::unique_ptr<lld::File>>
317 llvm::Expected<std::unique_ptr<NormalizedFile>>
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp 147 ErrorOr<std::unique_ptr<MemoryBuffer>> b = MemoryBuffer::getFileOrSTDIN(path);
203 llvm::Expected<std::unique_ptr<NormalizedFile>>
204 readBinary(std::unique_ptr<MemoryBuffer> &mb,
207 std::unique_ptr<NormalizedFile> f(new NormalizedFile());
541 ErrorOr<std::unique_ptr<File>>
542 loadFile(std::unique_ptr<MemoryBuffer> mb,
544 std::unique_ptr<File> ret =
567 ErrorOr<std::unique_ptr<File>>
568 loadFile(std::unique_ptr<MemoryBuffer> mb,
570 std::unique_ptr<File> ret =
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp 1534 Expected<std::unique_ptr<llvm::FileOutputBuffer>> fobOrErr =
1538 std::unique_ptr<llvm::FileOutputBuffer> &fob = *fobOrErr;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 1584 llvm::Expected<std::unique_ptr<NormalizedFile>>
1592 std::unique_ptr<NormalizedFile> f(new NormalizedFile());
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp 718 std::unique_ptr<BumpPtrAllocator> allocator;
975 std::unique_ptr<BumpPtrAllocator> allocator;
1401 llvm::Expected<std::unique_ptr<lld::File>>
1404 std::unique_ptr<MachOFile> file(new MachOFile(path));
1410 llvm::Expected<std::unique_ptr<lld::File>>
1414 std::unique_ptr<MachODylibFile> file(new MachODylibFile(path));
1474 std::unique_ptr<mach_o::ArchHandler> handler
1618 llvm::Expected<std::unique_ptr<lld::File>>
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp 801 llvm::Expected<std::unique_ptr<NormalizedFile>>
802 readYaml(std::unique_ptr<MemoryBuffer> &mb) {
804 std::unique_ptr<NormalizedFile> f(new NormalizedFile());
tools/lld/lib/ReaderWriter/MachO/SectCreateFile.h 28 std::unique_ptr<MemoryBuffer> content)
60 std::unique_ptr<MemoryBuffer> _content;
66 std::unique_ptr<MemoryBuffer> content) {
tools/lld/lib/ReaderWriter/MachO/WriterMachO.cpp 32 llvm::Expected<std::unique_ptr<NormalizedFile>> nFile =
39 std::unique_ptr<Writer> yamlWriter = createWriterYAML(_ctx);
48 void createImplicitFiles(std::vector<std::unique_ptr<File>> &r) override {
66 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &context) {
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 616 parseAllMembers(std::vector<std::unique_ptr<File>> &result) override {
679 std::unique_ptr<RefNameBuilder> _rnb;
1358 ErrorOr<std::unique_ptr<File>>
1359 loadFile(std::unique_ptr<MemoryBuffer> mb,
1399 std::unique_ptr<Writer> createWriterYAML(const LinkingContext &context) {
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp 29 static std::unique_ptr<NormalizedFile>
32 std::unique_ptr<MemoryBuffer> mb(MemoryBuffer::getMemBuffer(sr, "", false));
33 llvm::Expected<std::unique_ptr<NormalizedFile>> r =
74 std::unique_ptr<NormalizedFile> f =
105 std::unique_ptr<NormalizedFile> f =
136 std::unique_ptr<NormalizedFile> f =
167 std::unique_ptr<NormalizedFile> f =
181 std::unique_ptr<NormalizedFile> f =
190 std::unique_ptr<NormalizedFile> f2 =
266 std::unique_ptr<NormalizedFile> f =
391 std::unique_ptr<NormalizedFile> f =
523 std::unique_ptr<NormalizedFile> f =
667 std::unique_ptr<NormalizedFile> f =
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp 30 static void fromBinary(StringRef path, std::unique_ptr<MemoryBuffer> &mb,
31 std::unique_ptr<NormalizedFile> &nf, StringRef archStr) {
32 ErrorOr<std::unique_ptr<MemoryBuffer>> mbOrErr = MemoryBuffer::getFile(path);
37 llvm::Expected<std::unique_ptr<NormalizedFile>> r =
154 std::unique_ptr<MemoryBuffer> bufferOwner;
155 std::unique_ptr<NormalizedFile> f2;
266 std::unique_ptr<MemoryBuffer> bufferOwner;
267 std::unique_ptr<NormalizedFile> f2;
385 std::unique_ptr<MemoryBuffer> bufferOwner;
386 std::unique_ptr<NormalizedFile> f2;
542 std::unique_ptr<MemoryBuffer> bufferOwner;
543 std::unique_ptr<NormalizedFile> f2;
tools/lld/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp 29 llvm::Expected<std::unique_ptr<const lld::File>> atom_f =
69 llvm::Expected<std::unique_ptr<const lld::File>> atom_f =
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp 29 static std::unique_ptr<NormalizedFile> fromYAML(StringRef str) {
30 std::unique_ptr<MemoryBuffer> mb(MemoryBuffer::getMemBuffer(str));
31 llvm::Expected<std::unique_ptr<NormalizedFile>> r
45 std::unique_ptr<NormalizedFile> f = fromYAML(
61 std::unique_ptr<NormalizedFile> f = fromYAML(
77 std::unique_ptr<NormalizedFile> f = fromYAML(
93 std::unique_ptr<NormalizedFile> f = fromYAML(
109 std::unique_ptr<NormalizedFile> f = fromYAML(
125 std::unique_ptr<NormalizedFile> f = fromYAML(
151 std::unique_ptr<NormalizedFile> f2 = fromYAML(intermediate);
163 std::unique_ptr<NormalizedFile> f = fromYAML(
191 std::unique_ptr<NormalizedFile> f = fromYAML(
224 std::unique_ptr<NormalizedFile> f = fromYAML(
352 std::unique_ptr<NormalizedFile> f = fromYAML(
481 std::unique_ptr<NormalizedFile> f = fromYAML(
609 std::unique_ptr<NormalizedFile> f = fromYAML(
tools/lld/wasm/Driver.cpp 191 std::unique_ptr<Archive> file =
212 for (std::unique_ptr<MemoryBuffer> &mb : file->takeThinBuffers())
213 make<std::unique_ptr<MemoryBuffer>>(std::move(mb));
238 std::unique_ptr<Archive> file =
666 Expected<std::unique_ptr<TarWriter>> errOrWriter =
tools/lld/wasm/InputFiles.cpp 43 std::unique_ptr<llvm::TarWriter> tar;
53 std::unique_ptr<MemoryBuffer> &mb = *mbOrErr;
55 make<std::unique_ptr<MemoryBuffer>>(std::move(mb)); // take MB ownership
66 std::unique_ptr<Binary> bin =
251 std::unique_ptr<Binary> bin = CHECK(createBinary(mb), toString(this));
tools/lld/wasm/InputFiles.h 38 extern std::unique_ptr<llvm::TarWriter> tar;
85 std::unique_ptr<llvm::object::Archive> file;
142 std::unique_ptr<WasmObjectFile> wasmObj;
162 std::unique_ptr<llvm::lto::InputFile> obj;
tools/lld/wasm/LTO.cpp 42 static std::unique_ptr<lto::LTO> createLTO() {
161 for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/wasm/LTO.h 50 std::unique_ptr<llvm::lto::LTO> ltoObj;
52 std::vector<std::unique_ptr<MemoryBuffer>> files;
tools/lld/wasm/SymbolTable.h 116 std::unique_ptr<BitcodeCompiler> lto;
tools/lld/wasm/Writer.cpp 98 std::unique_ptr<FileOutputBuffer> buffer;
1079 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr =
tools/lldb/include/lldb/API/SBAddress.h 123 std::unique_ptr<lldb_private::Address> m_opaque_up;
tools/lldb/include/lldb/API/SBBreakpointName.h 117 std::unique_ptr<SBBreakpointNameImpl> m_impl_up;
tools/lldb/include/lldb/API/SBCommandInterpreter.h 61 mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions>
tools/lldb/include/lldb/API/SBCommandReturnObject.h 122 std::unique_ptr<lldb_private::SBCommandReturnObjectImpl> m_opaque_up;
tools/lldb/include/lldb/API/SBDeclaration.h 66 std::unique_ptr<lldb_private::Declaration> m_opaque_up;
tools/lldb/include/lldb/API/SBError.h 86 std::unique_ptr<lldb_private::Status> m_opaque_up;
tools/lldb/include/lldb/API/SBExpressionOptions.h 110 mutable std::unique_ptr<lldb_private::EvaluateExpressionOptions> m_opaque_up;
tools/lldb/include/lldb/API/SBFileSpec.h 90 std::unique_ptr<lldb_private::FileSpec> m_opaque_up;
tools/lldb/include/lldb/API/SBFileSpecList.h 52 std::unique_ptr<lldb_private::FileSpecList> m_opaque_up;
tools/lldb/include/lldb/API/SBLineEntry.h 73 std::unique_ptr<lldb_private::LineEntry> m_opaque_up;
tools/lldb/include/lldb/API/SBMemoryRegionInfoList.h 50 std::unique_ptr<MemoryRegionInfoListImpl> m_opaque_up;
tools/lldb/include/lldb/API/SBModuleSpec.h 87 std::unique_ptr<lldb_private::ModuleSpec> m_opaque_up;
117 std::unique_ptr<lldb_private::ModuleSpecList> m_opaque_up;
tools/lldb/include/lldb/API/SBProcessInfo.h 60 std::unique_ptr<lldb_private::ProcessInstanceInfo> m_opaque_up;
tools/lldb/include/lldb/API/SBSourceManager.h 42 std::unique_ptr<lldb_private::SourceManagerImpl> m_opaque_up;
tools/lldb/include/lldb/API/SBStream.h 103 std::unique_ptr<lldb_private::Stream> m_opaque_up;
tools/lldb/include/lldb/API/SBStringList.h 60 std::unique_ptr<lldb_private::StringList> m_opaque_up;
tools/lldb/include/lldb/API/SBSymbolContext.h 78 std::unique_ptr<lldb_private::SymbolContext> m_opaque_up;
tools/lldb/include/lldb/API/SBSymbolContextList.h 53 std::unique_ptr<lldb_private::SymbolContextList> m_opaque_up;
tools/lldb/include/lldb/API/SBType.h 56 std::unique_ptr<lldb_private::TypeMemberImpl> m_opaque_up;
255 std::unique_ptr<lldb_private::TypeListImpl> m_opaque_up;
tools/lldb/include/lldb/API/SBTypeEnumMember.h 78 std::unique_ptr<lldb_private::TypeEnumMemberListImpl> m_opaque_up;
tools/lldb/include/lldb/API/SBTypeSummary.h 54 std::unique_ptr<lldb_private::TypeSummaryOptions> m_opaque_up;
tools/lldb/include/lldb/API/SBValueList.h 70 std::unique_ptr<ValueListImpl> m_opaque_up;
tools/lldb/include/lldb/API/SBVariablesOptions.h 77 std::unique_ptr<VariablesOptionsImpl> m_opaque_up;
tools/lldb/include/lldb/Breakpoint/Breakpoint.h 655 std::unique_ptr<BreakpointOptions>
tools/lldb/include/lldb/Breakpoint/BreakpointLocation.h 331 std::unique_ptr<BreakpointOptions> m_options_up; ///< Breakpoint options
tools/lldb/include/lldb/Breakpoint/BreakpointOptions.h 60 static std::unique_ptr<CommandData>
88 explicit CommandBaton(std::unique_ptr<CommandData> Data)
127 static std::unique_ptr<BreakpointOptions>
343 void SetCommandDataCallback(std::unique_ptr<CommandData> &cmd_data);
376 void SetThreadSpec(std::unique_ptr<ThreadSpec> &thread_spec_up);
393 std::unique_ptr<ThreadSpec> m_thread_spec_up;
tools/lldb/include/lldb/Breakpoint/Watchpoint.h 204 std::unique_ptr<UserExpression> m_condition_up; // The condition to test.
tools/lldb/include/lldb/Breakpoint/WatchpointOptions.h 180 CommandBaton(std::unique_ptr<CommandData> Data)
194 std::unique_ptr<ThreadSpec>
tools/lldb/include/lldb/Core/Debugger.h 388 std::unique_ptr<SourceManager> m_source_manager_up; // This is a scratch
397 std::unique_ptr<CommandInterpreter> m_command_interpreter_up;
tools/lldb/include/lldb/Core/IOHandler.h 38 typedef std::unique_ptr<Application> ApplicationAP;
421 std::unique_ptr<Editline> m_editline_up;
tools/lldb/include/lldb/Core/PluginManager.h 50 std::unique_ptr<Architecture> (*)(const ArchSpec &);
58 static std::unique_ptr<Architecture>
tools/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h 136 std::unique_ptr<SyntheticChildrenFrontEnd> m_synth_filter_up;
tools/lldb/include/lldb/DataFormatters/LanguageCategory.h 24 typedef std::unique_ptr<LanguageCategory> UniquePointer;
tools/lldb/include/lldb/DataFormatters/TypeSynthetic.h 79 typedef std::unique_ptr<SyntheticChildrenFrontEnd> AutoPointer;
tools/lldb/include/lldb/Expression/DiagnosticManager.h 91 typedef std::vector<std::unique_ptr<Diagnostic>> DiagnosticList;
116 void AddDiagnostic(std::unique_ptr<Diagnostic> diagnostic) {
tools/lldb/include/lldb/Expression/FunctionCaller.h 303 std::unique_ptr<ExpressionParser>
tools/lldb/include/lldb/Expression/IRExecutionUnit.h 61 IRExecutionUnit(std::unique_ptr<llvm::LLVMContext> &context_up,
62 std::unique_ptr<llvm::Module> &module_up, ConstString &name,
317 std::unique_ptr<SectionMemoryManager> m_default_mm_up; ///< The memory
371 std::unique_ptr<llvm::LLVMContext> m_context_up;
372 std::unique_ptr<llvm::ExecutionEngine> m_execution_engine_up;
373 std::unique_ptr<llvm::ObjectCache> m_object_cache_up;
374 std::unique_ptr<llvm::Module>
tools/lldb/include/lldb/Expression/LLVMUserExpression.h 102 std::unique_ptr<Materializer> m_materializer_up; ///< The materializer to use
tools/lldb/include/lldb/Expression/Materializer.h 126 typedef std::unique_ptr<Entity> EntityUP;
tools/lldb/include/lldb/Expression/UtilityFunction.h 115 std::unique_ptr<FunctionCaller> m_caller_up;
tools/lldb/include/lldb/Host/FileSystem.h 66 llvm::Expected<std::unique_ptr<File>>
tools/lldb/include/lldb/Host/Host.h 233 static std::unique_ptr<Connection>
tools/lldb/include/lldb/Host/MainLoop.h 42 typedef std::unique_ptr<SignalHandle> SignalHandleUP;
tools/lldb/include/lldb/Host/MainLoopBase.h 39 typedef std::unique_ptr<ReadHandle> ReadHandleUP;
tools/lldb/include/lldb/Host/MonitoringProcessLauncher.h 20 std::unique_ptr<ProcessLauncher> delegate_launcher);
29 std::unique_ptr<ProcessLauncher> m_delegate_launcher;
tools/lldb/include/lldb/Host/Socket.h 56 static std::unique_ptr<Socket> Create(const SocketProtocol protocol,
tools/lldb/include/lldb/Host/Terminal.h 121 std::unique_ptr<struct termios>
tools/lldb/include/lldb/Host/common/NativeProcessProtocol.h 179 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
277 virtual llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
299 virtual llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
406 std::vector<std::unique_ptr<NativeThreadProtocol>> m_threads;
tools/lldb/include/lldb/Host/linux/Support.h 18 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
21 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
24 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
tools/lldb/include/lldb/Initialization/SystemLifetimeManager.h 26 llvm::Error Initialize(std::unique_ptr<SystemInitializer> initializer,
32 std::unique_ptr<SystemInitializer> m_initializer;
tools/lldb/include/lldb/Interpreter/CommandAlias.h 22 typedef std::unique_ptr<CommandAlias> UniquePointer;
tools/lldb/include/lldb/Interpreter/ScriptInterpreter.h 310 std::unique_ptr<BreakpointOptions::CommandData> &data_up) {
470 virtual std::unique_ptr<ScriptInterpreterLocker> AcquireInterpreterLock();
tools/lldb/include/lldb/Symbol/ClangASTContext.h 281 std::unique_ptr<TemplateParameterInfos> packed_args;
826 std::unique_ptr<clang::CXXBaseSpecifier>
833 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> bases);
982 std::unique_ptr<clang::ASTContext> m_ast_up;
983 std::unique_ptr<clang::LangOptions> m_language_options_up;
984 std::unique_ptr<clang::FileManager> m_file_manager_up;
985 std::unique_ptr<clang::SourceManager> m_source_manager_up;
986 std::unique_ptr<clang::DiagnosticsEngine> m_diagnostics_engine_up;
987 std::unique_ptr<clang::DiagnosticConsumer> m_diagnostic_consumer_up;
989 std::unique_ptr<clang::TargetInfo> m_target_info_up;
990 std::unique_ptr<clang::IdentifierTable> m_identifier_table_up;
991 std::unique_ptr<clang::SelectorTable> m_selector_table_up;
992 std::unique_ptr<clang::Builtin::Context> m_builtins_up;
993 std::unique_ptr<DWARFASTParserClang> m_dwarf_ast_parser_up;
994 std::unique_ptr<PDBASTParser> m_pdb_ast_parser_up;
995 std::unique_ptr<ClangASTSource> m_scratch_ast_source_up;
996 std::unique_ptr<clang::MangleContext> m_mangle_ctx_up;
1047 std::unique_ptr<PersistentExpressionState>
tools/lldb/include/lldb/Symbol/CompileUnit.h 401 std::unique_ptr<LineTable> m_line_table_up;
tools/lldb/include/lldb/Symbol/ObjectFile.h 660 virtual std::unique_ptr<CallFrameInfo> CreateCallFrameInfo();
676 std::unique_ptr<lldb_private::SectionList> m_sections_up;
677 std::unique_ptr<lldb_private::Symtab> m_symtab_up;
tools/lldb/include/lldb/Symbol/SymbolContext.h 378 std::unique_ptr<FileSpec> m_file_spec_up;
383 std::unique_ptr<AddressRange> m_address_range_up;
tools/lldb/include/lldb/Symbol/SymbolVendor.h 50 std::unique_ptr<SymbolFile> m_sym_file_up; // A single symbol file. Subclasses
tools/lldb/include/lldb/Symbol/UnwindTable.h 76 std::unique_ptr<CallFrameInfo> m_object_file_unwind_up;
77 std::unique_ptr<DWARFCallFrameInfo> m_eh_frame_up;
78 std::unique_ptr<DWARFCallFrameInfo> m_debug_frame_up;
79 std::unique_ptr<CompactUnwindInfo> m_compact_unwind_up;
80 std::unique_ptr<ArmUnwindInfo> m_arm_unwind_up;
tools/lldb/include/lldb/Target/ABI.h 141 ABI(lldb::ProcessSP process_sp, std::unique_ptr<llvm::MCRegisterInfo> info_up)
149 static std::unique_ptr<llvm::MCRegisterInfo>
153 std::unique_ptr<llvm::MCRegisterInfo> m_mc_register_info_up;
tools/lldb/include/lldb/Target/Language.h 43 typedef std::set<std::unique_ptr<Result>> ResultSet;
190 virtual std::unique_ptr<TypeScavenger> GetTypeScavenger();
tools/lldb/include/lldb/Target/Platform.h 863 const std::unique_ptr<ModuleCache> m_module_cache;
tools/lldb/include/lldb/Target/Process.h 658 llvm::function_ref<std::unique_ptr<UtilityFunction>()> factory);
2724 std::unique_ptr<NextEventAction> m_next_event_action_up;
2754 std::unique_ptr<UtilityFunction> m_dlopen_utility_func_up;
tools/lldb/include/lldb/Target/StackFrameList.h 92 static void Merge(std::unique_ptr<StackFrameList> &curr_up,
tools/lldb/include/lldb/Target/Target.h 237 std::unique_ptr<TargetExperimentalProperties> m_experimental_properties_up;
1179 std::unique_ptr<ThreadSpec> m_thread_spec_up;
1284 std::unique_ptr<Architecture> m_plugin_up;
tools/lldb/include/lldb/Target/Thread.h 1260 std::unique_ptr<lldb_private::Unwind> m_unwinder_up;
tools/lldb/include/lldb/Target/ThreadPlanStepInRange.h 95 std::unique_ptr<RegularExpression> m_avoid_regexp_up;
tools/lldb/include/lldb/Target/ThreadSpec.h 37 static std::unique_ptr<ThreadSpec>
tools/lldb/include/lldb/Utility/Baton.h 60 explicit TypedBaton(std::unique_ptr<T> Item) : Item(std::move(Item)) {}
69 std::unique_ptr<T> Item;
tools/lldb/include/lldb/Utility/DataBufferLLVM.h 40 explicit DataBufferLLVM(std::unique_ptr<llvm::WritableMemoryBuffer> Buffer);
42 std::unique_ptr<llvm::WritableMemoryBuffer> Buffer;
tools/lldb/include/lldb/Utility/Reproducer.h 162 static llvm::Expected<std::unique_ptr<DataRecorder>>
204 std::vector<std::unique_ptr<DataRecorder>> m_data_recorders;
230 std::unique_ptr<llvm::raw_fd_ostream> m_stream_up;
253 std::unique_ptr<ProviderBase> provider = std::make_unique<T>(m_root);
278 ProviderBase *Register(std::unique_ptr<ProviderBase> provider);
284 llvm::DenseMap<const void *, std::unique_ptr<ProviderBase>> m_providers;
307 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> buffer =
367 static std::unique_ptr<CommandLoader> Create(Loader *loader);
tools/lldb/include/lldb/Utility/ReproducerInstrumentation.h 482 void DoRegister(uintptr_t RunID, std::unique_ptr<Replayer> replayer,
490 std::map<uintptr_t, std::pair<std::unique_ptr<Replayer>, unsigned>>
tools/lldb/include/lldb/Utility/SharingPtr.h 177 std::unique_ptr<Y> hold(p);
tools/lldb/include/lldb/lldb-forward.h 308 typedef std::unique_ptr<lldb_private::ClangASTContext> ClangASTContextUP;
310 typedef std::unique_ptr<lldb_private::ClangModulesDeclVendor>
312 typedef std::unique_ptr<lldb_private::ClangPersistentVariables>
324 typedef std::unique_ptr<lldb_private::DynamicCheckerFunctions>
327 typedef std::unique_ptr<lldb_private::DynamicLoader> DynamicLoaderUP;
335 typedef std::unique_ptr<lldb_private::File> FileUP;
348 typedef std::unique_ptr<lldb_private::JITLoaderList> JITLoaderListUP;
351 typedef std::unique_ptr<lldb_private::SystemRuntime> SystemRuntimeUP;
356 typedef std::unique_ptr<lldb_private::MemoryRegionInfo> MemoryRegionInfoUP;
365 typedef std::unique_ptr<lldb_private::OperatingSystem> OperatingSystemUP;
406 typedef std::unique_ptr<lldb_private::ScriptInterpreter> ScriptInterpreterUP;
408 typedef std::unique_ptr<lldb_private::SectionList> SectionListUP;
413 typedef std::unique_ptr<lldb_private::SourceManager> SourceManagerUP;
415 typedef std::unique_ptr<lldb_private::StackFrame> StackFrameUP;
427 typedef std::unique_ptr<lldb_private::StructuredDataImpl> StructuredDataImplUP;
437 typedef std::unique_ptr<lldb_private::SymbolVendor> SymbolVendorUP;
tools/lldb/source/API/SBBreakpoint.cpp 496 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
tools/lldb/source/API/SBBreakpointLocation.cpp 283 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
tools/lldb/source/API/SBBreakpointName.cpp 485 std::unique_ptr<BreakpointOptions::CommandData> cmd_data_up(
tools/lldb/source/API/SBDebugger.cpp 318 static std::unique_ptr<repro::CommandLoader> loader =
tools/lldb/source/API/SBFrame.cpp 1106 std::unique_ptr<llvm::PrettyStackTraceFormat> stack_trace;
tools/lldb/source/API/Utils.h 17 template <typename T> std::unique_ptr<T> clone(const std::unique_ptr<T> &src) {
17 template <typename T> std::unique_ptr<T> clone(const std::unique_ptr<T> &src) {
tools/lldb/source/Breakpoint/Breakpoint.cpp 171 std::unique_ptr<BreakpointOptions> options_up;
tools/lldb/source/Breakpoint/BreakpointOptions.cpp 59 std::unique_ptr<BreakpointOptions::CommandData>
62 std::unique_ptr<CommandData> data_up(new CommandData());
236 std::unique_ptr<BreakpointOptions> BreakpointOptions::CreateFromStructuredData(
297 std::unique_ptr<CommandData> cmd_data_up;
348 std::unique_ptr<ThreadSpec> thread_spec_up =
524 std::unique_ptr<ThreadSpec> &thread_spec_up) {
613 std::unique_ptr<CommandData> &cmd_data) {
tools/lldb/source/Commands/CommandObjectCommands.cpp 1138 std::unique_ptr<CommandObjectRegexCommand> m_regex_cmd_up;
tools/lldb/source/Commands/CommandObjectMemory.cpp 768 std::unique_ptr<Stream> output_stream_storage;
tools/lldb/source/Commands/CommandObjectReproducer.cpp 253 ErrorOr<std::unique_ptr<MemoryBuffer>> buffer =
298 std::unique_ptr<repro::CommandLoader> command_loader =
tools/lldb/source/Commands/CommandObjectTarget.cpp 4618 std::unique_ptr<SymbolContextSpecifier> specifier_up;
tools/lldb/source/Commands/CommandObjectType.cpp 1033 std::unique_ptr<RegularExpression> category_regex;
1034 std::unique_ptr<RegularExpression> formatter_regex;
1413 std::unique_ptr<StringSummaryFormat> string_format(
2100 std::unique_ptr<RegularExpression> regex;
tools/lldb/source/Commands/CommandObjectWatchpointCommand.cpp 227 std::unique_ptr<WatchpointOptions::CommandData> data_up(
251 std::unique_ptr<WatchpointOptions::CommandData> data_up(
tools/lldb/source/Core/Disassembler.cpp 757 std::unique_ptr<EmulateInstruction> insn_emulator_up(
1008 std::unique_ptr<EmulateInstruction> insn_emulator_up(
1028 std::unique_ptr<EmulateInstruction> insn_emulator_up(
tools/lldb/source/Core/DynamicLoader.cpp 41 std::unique_ptr<DynamicLoader> instance_up(
52 std::unique_ptr<DynamicLoader> instance_up(
tools/lldb/source/Core/IOHandler.cpp 1130 std::unique_ptr<HelpDialogDelegate> help_delegate_up(
tools/lldb/source/Core/PluginManager.cpp 319 std::unique_ptr<Architecture>
tools/lldb/source/Expression/DWARFExpression.cpp 471 std::unique_ptr<DataBufferHeap> head_data_up(
tools/lldb/source/Expression/IRExecutionUnit.cpp 39 IRExecutionUnit::IRExecutionUnit(std::unique_ptr<llvm::LLVMContext> &context_up,
40 std::unique_ptr<llvm::Module> &module_up,
310 std::unique_ptr<llvm::MemoryBuffer>
tools/lldb/source/Host/common/FileSystem.cpp 60 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> buffer =
291 std::unique_ptr<llvm::WritableMemoryBuffer> buffer;
tools/lldb/source/Host/common/Host.cpp 583 std::unique_ptr<ProcessLauncher> delegate_launcher;
615 std::unique_ptr<Connection> Host::CreateDefaultConnection(llvm::StringRef url) {
tools/lldb/source/Host/common/MonitoringProcessLauncher.cpp 21 std::unique_ptr<ProcessLauncher> delegate_launcher)
tools/lldb/source/Host/common/Socket.cpp 109 std::unique_ptr<Socket> Socket::Create(const SocketProtocol protocol,
114 std::unique_ptr<Socket> socket_up;
157 std::unique_ptr<Socket> connect_socket(
182 std::unique_ptr<TCPSocket> listen_socket(
221 std::unique_ptr<Socket> connect_socket(
236 std::unique_ptr<Socket> listen_socket(
253 std::unique_ptr<Socket> connect_socket(
268 std::unique_ptr<Socket> listen_socket(
tools/lldb/source/Host/common/TCPSocket.cpp 272 std::unique_ptr<TCPSocket> accepted_socket;
tools/lldb/source/Host/common/UDPSocket.cpp 58 std::unique_ptr<UDPSocket> final_socket;
tools/lldb/source/Host/linux/Host.cpp 151 std::unique_ptr<llvm::MemoryBuffer> Cmdline = std::move(*BufferOrError);
196 std::unique_ptr<llvm::MemoryBuffer> Environ = std::move(*BufferOrError);
tools/lldb/source/Host/linux/Support.cpp 13 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
25 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
35 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
tools/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp 210 std::unique_ptr<TCPSocket> tcp_socket;
707 std::unique_ptr<Socket> listening_socket_up;
tools/lldb/source/Initialization/SystemLifetimeManager.cpp 27 std::unique_ptr<SystemInitializer> initializer,
tools/lldb/source/Interpreter/CommandInterpreter.cpp 507 std::unique_ptr<CommandObjectRegexCommand> break_regex_cmd_up(
557 std::unique_ptr<CommandObjectRegexCommand> tbreak_regex_cmd_up(
615 std::unique_ptr<CommandObjectRegexCommand> attach_regex_cmd_up(
635 std::unique_ptr<CommandObjectRegexCommand> down_regex_cmd_up(
650 std::unique_ptr<CommandObjectRegexCommand> up_regex_cmd_up(
664 std::unique_ptr<CommandObjectRegexCommand> display_regex_cmd_up(
678 std::unique_ptr<CommandObjectRegexCommand> undisplay_regex_cmd_up(
693 std::unique_ptr<CommandObjectRegexCommand> connect_gdb_remote_cmd_up(
711 std::unique_ptr<CommandObjectRegexCommand> connect_kdp_remote_cmd_up(
729 std::unique_ptr<CommandObjectRegexCommand> bt_regex_cmd_up(
754 std::unique_ptr<CommandObjectRegexCommand> list_regex_cmd_up(
790 std::unique_ptr<CommandObjectRegexCommand> env_regex_cmd_up(
808 std::unique_ptr<CommandObjectRegexCommand> jump_regex_cmd_up(
1126 std::unique_ptr<CommandAlias> command_alias_up(
tools/lldb/source/Interpreter/Options.cpp 744 std::unique_ptr<SearchFilter> filter_up;
tools/lldb/source/Interpreter/ScriptInterpreter.cpp 98 std::unique_ptr<ScriptInterpreterLocker>
tools/lldb/source/Plugins/ABI/MacOSX-arm/ABIMacOSX_arm.cpp 1606 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/MacOSX-arm/ABIMacOSX_arm.h 89 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp 2117 std::unique_ptr<DataBufferHeap> heap_data_up(
2298 std::unique_ptr<DataBufferHeap> heap_data_up(
2398 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.h 97 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.h 96 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-arc/ABISysV_arc.h 100 using lldb_private::ABI::ABI; // Call CreateInstance instead.
tools/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.h 89 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-arm64/ABISysV_arm64.cpp 2094 std::unique_ptr<DataBufferHeap> heap_data_up(
2270 std::unique_ptr<DataBufferHeap> heap_data_up(
2368 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/SysV-arm64/ABISysV_arm64.h 96 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-hexagon/ABISysV_hexagon.h 101 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-i386/ABISysV_i386.cpp 650 std::unique_ptr<DataBufferHeap> heap_data_up(
675 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/SysV-i386/ABISysV_i386.h 104 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-mips/ABISysV_mips.h 91 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.h 104 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-ppc/ABISysV_ppc.cpp 616 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/SysV-ppc/ABISysV_ppc.h 100 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp 552 std::unique_ptr<DataBufferHeap> m_data_up;
720 std::unique_ptr<DataBufferHeap> vr_data(
tools/lldb/source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.h 100 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-s390x/ABISysV_s390x.h 92 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp 658 std::unique_ptr<DataBufferHeap> heap_data_up(
683 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.h 102 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/ABI/Windows-x86_64/ABIWindows_x86_64.cpp 1491 std::unique_ptr<DataBufferHeap> heap_data_up(
tools/lldb/source/Plugins/ABI/Windows-x86_64/ABIWindows_x86_64.h 95 std::unique_ptr<llvm::MCRegisterInfo> info_up)
tools/lldb/source/Plugins/Architecture/Arm/ArchitectureArm.cpp 34 std::unique_ptr<Architecture> ArchitectureArm::Create(const ArchSpec &arch) {
tools/lldb/source/Plugins/Architecture/Arm/ArchitectureArm.h 34 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
tools/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp 38 std::unique_ptr<Architecture> ArchitectureMips::Create(const ArchSpec &arch) {
tools/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.h 43 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
tools/lldb/source/Plugins/Architecture/PPC64/ArchitecturePPC64.cpp 37 std::unique_ptr<Architecture> ArchitecturePPC64::Create(const ArchSpec &arch) {
tools/lldb/source/Plugins/Architecture/PPC64/ArchitecturePPC64.h 35 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp 48 static std::unique_ptr<MCDisasmInstance>
64 MCDisasmInstance(std::unique_ptr<llvm::MCInstrInfo> &&instr_info_up,
65 std::unique_ptr<llvm::MCRegisterInfo> &®_info_up,
66 std::unique_ptr<llvm::MCSubtargetInfo> &&subtarget_info_up,
67 std::unique_ptr<llvm::MCAsmInfo> &&asm_info_up,
68 std::unique_ptr<llvm::MCContext> &&context_up,
69 std::unique_ptr<llvm::MCDisassembler> &&disasm_up,
70 std::unique_ptr<llvm::MCInstPrinter> &&instr_printer_up);
72 std::unique_ptr<llvm::MCInstrInfo> m_instr_info_up;
73 std::unique_ptr<llvm::MCRegisterInfo> m_reg_info_up;
74 std::unique_ptr<llvm::MCSubtargetInfo> m_subtarget_info_up;
75 std::unique_ptr<llvm::MCAsmInfo> m_asm_info_up;
76 std::unique_ptr<llvm::MCContext> m_context_up;
77 std::unique_ptr<llvm::MCDisassembler> m_disasm_up;
78 std::unique_ptr<llvm::MCInstPrinter> m_instr_printer_up;
925 std::unique_ptr<DisassemblerLLVMC::MCDisasmInstance>
930 using Instance = std::unique_ptr<DisassemblerLLVMC::MCDisasmInstance>;
938 std::unique_ptr<llvm::MCInstrInfo> instr_info_up(
943 std::unique_ptr<llvm::MCRegisterInfo> reg_info_up(
948 std::unique_ptr<llvm::MCSubtargetInfo> subtarget_info_up(
954 std::unique_ptr<llvm::MCAsmInfo> asm_info_up(
959 std::unique_ptr<llvm::MCContext> context_up(
964 std::unique_ptr<llvm::MCDisassembler> disasm_up(
969 std::unique_ptr<llvm::MCRelocationInfo> rel_info_up(
974 std::unique_ptr<llvm::MCSymbolizer> symbolizer_up(
983 std::unique_ptr<llvm::MCInstPrinter> instr_printer_up(
998 std::unique_ptr<llvm::MCInstrInfo> &&instr_info_up,
999 std::unique_ptr<llvm::MCRegisterInfo> &®_info_up,
1000 std::unique_ptr<llvm::MCSubtargetInfo> &&subtarget_info_up,
1001 std::unique_ptr<llvm::MCAsmInfo> &&asm_info_up,
1002 std::unique_ptr<llvm::MCContext> &&context_up,
1003 std::unique_ptr<llvm::MCDisassembler> &&disasm_up,
1004 std::unique_ptr<llvm::MCInstPrinter> &&instr_printer_up)
1242 std::unique_ptr<DisassemblerLLVMC> disasm_up(
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.h 81 std::unique_ptr<MCDisasmInstance> m_disasm_up;
82 std::unique_ptr<MCDisasmInstance> m_alternate_disasm_up;
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h 71 std::unique_ptr<AuxVector> m_auxv;
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h 547 std::unique_ptr<clang::LateParsedTemplate>> &LPTMap)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h 421 std::unique_ptr<clang::ExternalASTMerger> m_merger_up;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h 354 std::unique_ptr<ParserVars> m_parser_vars;
384 std::unique_ptr<StructVars> m_struct_vars;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp 589 std::unique_ptr<PPCallbacks> pp_callbacks(new LLDBPreprocessorCallbacks(
935 std::unique_ptr<MemoryBuffer> memory_buffer =
963 std::unique_ptr<clang::ASTConsumer> Consumer;
1175 std::unique_ptr<llvm::Module> llvm_module_up(
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h 173 std::unique_ptr<llvm::LLVMContext>
175 std::unique_ptr<clang::CompilerInstance>
177 std::unique_ptr<clang::CodeGenerator>
183 std::unique_ptr<ClangASTContext> m_ast_context;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h 88 std::unique_ptr<ASTStructExtractor> m_struct_extractor; ///< The class that
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp 71 std::unique_ptr<clang::CompilerInstance> compiler_instance,
72 std::unique_ptr<clang::Parser> parser);
103 std::unique_ptr<clang::CompilerInstance> m_compiler_instance;
104 std::unique_ptr<clang::Parser> m_parser;
116 std::unique_ptr<ClangASTContext> m_ast_context;
158 std::unique_ptr<clang::CompilerInstance> compiler_instance,
159 std::unique_ptr<clang::Parser> parser)
663 std::unique_ptr<llvm::MemoryBuffer> source_buffer =
671 std::unique_ptr<clang::CompilerInstance> instance(
691 std::unique_ptr<clang::FrontendAction> action(new clang::SyntaxOnlyAction);
712 std::unique_ptr<clang::Parser> parser(new clang::Parser(
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h 82 std::unique_ptr<ClangExpressionDeclMap> m_expr_decl_map_up;
83 std::unique_ptr<ASTStructExtractor> m_struct_extractor_up; ///< The class
87 std::unique_ptr<ASTResultSynthesizer> m_result_synthesizer_up;
220 std::unique_ptr<ClangExpressionSourceCode> m_source_code;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.h 70 std::unique_ptr<ClangExpressionDeclMap> m_expr_decl_map_up;
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h 446 std::unique_ptr<llvm::DataLayout> m_target_data; ///< The target data for the
tools/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp 738 std::unique_ptr<EmulateInstructionARM> emulate_insn_up(
744 std::unique_ptr<EmulateInstructionARM> emulate_insn_up(
tools/lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.h 209 std::unique_ptr<llvm::MCDisassembler> m_disasm;
210 std::unique_ptr<llvm::MCDisassembler> m_alt_disasm;
211 std::unique_ptr<llvm::MCSubtargetInfo> m_subtype_info;
212 std::unique_ptr<llvm::MCSubtargetInfo> m_alt_subtype_info;
213 std::unique_ptr<llvm::MCRegisterInfo> m_reg_info;
214 std::unique_ptr<llvm::MCAsmInfo> m_asm_info;
215 std::unique_ptr<llvm::MCContext> m_context;
216 std::unique_ptr<llvm::MCInstrInfo> m_insn_info;
tools/lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h 174 std::unique_ptr<llvm::MCDisassembler> m_disasm;
175 std::unique_ptr<llvm::MCSubtargetInfo> m_subtype_info;
176 std::unique_ptr<llvm::MCRegisterInfo> m_reg_info;
177 std::unique_ptr<llvm::MCAsmInfo> m_asm_info;
178 std::unique_ptr<llvm::MCContext> m_context;
179 std::unique_ptr<llvm::MCInstrInfo> m_insn_info;
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp 919 std::unique_ptr<Language::TypeScavenger> CPlusPlusLanguage::GetTypeScavenger() {
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h 83 std::unique_ptr<TypeScavenger> GetTypeScavenger() override;
tools/lldb/source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp 95 std::unique_ptr<SyntheticChildrenFrontEnd> tuple_frontend(
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.h 49 typedef std::unique_ptr<Matcher> UP;
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp 910 std::unique_ptr<Language::TypeScavenger> ObjCLanguage::GetTypeScavenger() {
944 std::unique_ptr<Language::TypeScavenger::Result> result(
972 std::unique_ptr<Language::TypeScavenger::Result> result(
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.h 114 std::unique_ptr<TypeScavenger> GetTypeScavenger() override;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp 19 Process *process, std::unique_ptr<objc_class_t> &objc_class) const {
189 std::unique_ptr<class_ro_t> &class_ro,
190 std::unique_ptr<class_rw_t> &class_rw) const {
344 std::unique_ptr<objc_class_t> objc_class;
345 std::unique_ptr<class_ro_t> class_ro;
346 std::unique_ptr<class_rw_t> class_rw;
359 std::unique_ptr<method_list_t> base_method_list;
368 std::unique_ptr<method_t> method;
425 std::unique_ptr<objc_class_t> objc_class;
426 std::unique_ptr<class_ro_t> class_ro;
427 std::unique_ptr<class_rw_t> class_rw;
446 std::unique_ptr<objc_class_t> objc_class;
461 std::unique_ptr<objc_class_t> objc_class;
476 std::unique_ptr<objc_class_t> objc_class;
477 std::unique_ptr<class_ro_t> class_ro;
478 std::unique_ptr<class_rw_t> class_rw;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.h 218 std::unique_ptr<objc_class_t> &objc_class) const;
221 std::unique_ptr<class_ro_t> &class_ro,
222 std::unique_ptr<class_rw_t> &class_rw) const;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h 118 std::unique_ptr<Address> m_PrintForDebugger_addr;
120 std::unique_ptr<lldb_private::AppleObjCTrampolineHandler>
124 std::unique_ptr<FunctionCaller> m_print_object_caller_up;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp 127 std::unique_ptr<BufStruct> buf(new BufStruct);
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.h 148 std::unique_ptr<DeclVendor> m_decl_vendor_up;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp 580 std::unique_ptr<RegularExpression> regex_up;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h 319 std::unique_ptr<UtilityFunction> m_get_class_info_code;
323 std::unique_ptr<UtilityFunction> m_get_shared_cache_class_info_code;
327 std::unique_ptr<DeclVendor> m_decl_vendor_up;
333 std::unique_ptr<NonPointerISACache> m_non_pointer_isa_cache_up;
334 std::unique_ptr<TaggedPointerVendor> m_tagged_pointer_vendor_up;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.h 147 std::unique_ptr<UtilityFunction> m_impl_code;
153 std::unique_ptr<AppleObjCVTables> m_vtables_up;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h 155 std::unique_ptr<ClangASTContext> m_scratch_ast_ctx_up;
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp 3826 std::unique_ptr<ScriptDetails> s(new ScriptDetails);
3861 std::unique_ptr<AllocationDetails> a(new AllocationDetails);
4581 std::unique_ptr<Stream> output_stream_storage;
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h 474 std::vector<std::unique_ptr<ScriptDetails>> m_scripts;
475 std::vector<std::unique_ptr<AllocationDetails>> m_allocations;
480 std::map<lldb::user_id_t, std::unique_ptr<lldb_renderscript::RSCoordinate>>
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp 323 std::unique_ptr<ObjectContainerBSDArchive> container_up(
343 std::unique_ptr<ObjectContainerBSDArchive> container_up(
tools/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/ObjectContainerUniversalMachO.cpp 52 std::unique_ptr<ObjectContainerUniversalMachO> container_up(
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp 360 std::unique_ptr<ObjectFileELF> objfile_up(new ObjectFileELF(
378 std::unique_ptr<ObjectFileELF> objfile_up(
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h 217 mutable std::unique_ptr<lldb_private::FileSpecList> m_filespec_up;
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp 809 std::unique_ptr<ObjectFile> objfile_up(
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp 766 std::unique_ptr<CallFrameInfo> ObjectFilePECOFF::CreateCallFrameInfo() {
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h 145 std::unique_ptr<lldb_private::CallFrameInfo> CreateCallFrameInfo() override;
tools/lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp 356 std::unique_ptr<UnwindPlan::Row> BuildUnwindPlanRow() const;
369 std::unique_ptr<UnwindPlan::Row> EHProgramRange::BuildUnwindPlanRow() const {
370 std::unique_ptr<UnwindPlan::Row> row = std::make_unique<UnwindPlan::Row>();
tools/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp 57 std::unique_ptr<OperatingSystemPython> os_up(
tools/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h 78 std::unique_ptr<DynamicRegisterInfo> m_register_info_up;
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp 424 std::unique_ptr<AdbClient::SyncService>
426 std::unique_ptr<SyncService> sync_service;
575 AdbClient::SyncService::SyncService(std::unique_ptr<Connection> &&conn)
tools/lldb/source/Plugins/Platform/Android/AdbClient.h 51 explicit SyncService(std::unique_ptr<Connection> &&conn);
73 std::unique_ptr<Connection> m_conn;
102 std::unique_ptr<SyncService> GetSyncService(Status &error);
134 std::unique_ptr<Connection> m_conn;
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp 328 std::unique_ptr<std::string, std::function<void(std::string *)>>
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.h 76 std::unique_ptr<AdbClient::SyncService> m_adb_sync_svc;
tools/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp 65 std::unique_ptr<TCPSocket> tcp_socket(new TCPSocket(true, false));
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp 56 std::unique_ptr<lldb_private::OptionGroupOptions> options(
628 std::unique_ptr<UtilityFunction>
687 std::unique_ptr<UtilityFunction> dlopen_utility_func_up(process
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h 84 std::unique_ptr<lldb_private::OptionGroupPlatformRSync>
86 std::unique_ptr<lldb_private::OptionGroupPlatformSSH>
88 std::unique_ptr<lldb_private::OptionGroupPlatformCaching>
92 std::unique_ptr<lldb_private::OptionGroupOptions>>
100 std::unique_ptr<lldb_private::UtilityFunction>
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp 211 llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
263 llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
944 std::unique_ptr<EmulateInstruction> emulator_up(
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h 43 llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
47 llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
98 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
tools/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h 27 static std::unique_ptr<NativeRegisterContextLinux>
tools/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp 254 std::unique_ptr<NativeRegisterContextLinux>
tools/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h 111 std::unique_ptr<FPR, llvm::FreeDeleter>
tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h 100 std::unique_ptr<NativeRegisterContextLinux> m_reg_context_up;
105 std::unique_ptr<SingleStepWorkaround> m_step_workaround;
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.h 40 typedef std::unique_ptr<ProcessorTraceMonitor> ProcessorTraceMonitorUP;
69 std::unique_ptr<perf_event_mmap_page, munmap_delete> m_mmap_meta;
70 std::unique_ptr<uint8_t, munmap_delete> m_mmap_aux;
71 std::unique_ptr<int, file_close> m_fd;
tools/lldb/source/Plugins/Process/Linux/SingleStepCheck.h 47 static std::unique_ptr<SingleStepWorkaround> Get(::pid_t tid) {
tools/lldb/source/Plugins/Process/POSIX/NativeProcessELF.h 47 std::unique_ptr<AuxVector> m_aux_vector;
tools/lldb/source/Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h 37 std::unique_ptr<RegisterInfoInterface> m_register_info_interface_up;
tools/lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp 83 std::unique_ptr<RegisterContextFreeBSD_i386> reg_interface(
tools/lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86_64.cpp 97 std::unique_ptr<RegisterContextLinux_i386> reg_interface(
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm.h 85 std::unique_ptr<lldb_private::RegisterInfoInterface>
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm64.h 85 std::unique_ptr<lldb_private::RegisterInfoInterface>
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_mips64.h 63 std::unique_ptr<lldb_private::RegisterInfoInterface>
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_powerpc.h 177 std::unique_ptr<lldb_private::RegisterInfoInterface>
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.h 58 std::unique_ptr<lldb_private::RegisterInfoInterface> m_register_info_up;
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_s390x.h 61 std::unique_ptr<lldb_private::RegisterInfoInterface> m_register_info_up;
tools/lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_x86.h 148 std::unique_ptr<lldb_private::RegisterInfoInterface>
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp 1268 std::unique_ptr<ConnectionFileDescriptor> conn_up(
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp 116 std::unique_ptr<llvm::ErrorInfoBase> EIB;
117 std::unique_ptr<PacketUnimplementedError> PUE;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp 925 std::unique_ptr<Connection> &&connection) {
955 std::unique_ptr<ConnectionFileDescriptor> conn_up(
2753 llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h 70 Status InitializeConnection(std::unique_ptr<Connection> &&connection);
79 std::unique_ptr<NativeProcessProtocol> m_debugged_process_up;
85 llvm::StringMap<std::unique_ptr<llvm::MemoryBuffer>> m_xfer_buffer_map;
196 llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 978 std::unique_ptr<ConnectionFileDescriptor> conn_up(
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp 38 std::unique_ptr<llvm::object::MinidumpFile> file)
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.h 101 std::unique_ptr<llvm::object::MinidumpFile> file);
105 std::unique_ptr<llvm::object::MinidumpFile> m_file;
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 895 std::unique_ptr<ConnectionFileDescriptor> conn_up(
1272 std::unique_ptr<BreakpointOptions::CommandData> &cmd_data_up) {
3170 std::unique_ptr<ScriptInterpreterLocker>
3172 std::unique_ptr<ScriptInterpreterLocker> py_lock(new Locker(
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h 235 std::unique_ptr<ScriptInterpreterLocker> AcquireInterpreterLock() override;
257 std::unique_ptr<BreakpointOptions::CommandData> &data_up) override;
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp 695 std::unique_ptr<LineSequence> line_seq_up(
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h 192 std::unique_ptr<LineTable> line_table_up;
tools/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp 20 std::unique_ptr<AppleDWARFIndex> AppleDWARFIndex::Create(
tools/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.h 18 static std::unique_ptr<AppleDWARFIndex>
24 Module &module, std::unique_ptr<DWARFMappedHash::MemoryTable> apple_names,
25 std::unique_ptr<DWARFMappedHash::MemoryTable> apple_namespaces,
26 std::unique_ptr<DWARFMappedHash::MemoryTable> apple_types,
27 std::unique_ptr<DWARFMappedHash::MemoryTable> apple_objc)
55 std::unique_ptr<DWARFMappedHash::MemoryTable> m_apple_names_up;
56 std::unique_ptr<DWARFMappedHash::MemoryTable> m_apple_namespaces_up;
57 std::unique_ptr<DWARFMappedHash::MemoryTable> m_apple_types_up;
58 std::unique_ptr<DWARFMappedHash::MemoryTable> m_apple_objc_up;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 1746 std::unique_ptr<ClangASTMetadata> m_metadata_up;
1973 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> bases;
2420 std::unique_ptr<Declaration> decl_up;
2454 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
3029 std::unique_ptr<clang::CXXBaseSpecifier> result =
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h 90 std::unique_ptr<lldb_private::ClangASTImporter> m_clang_ast_importer_up;
110 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> &base_classes,
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp 106 llvm::StringMap<std::unique_ptr<llvm::MemoryBuffer>> section_map;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.h 24 mutable std::unique_ptr<llvm::DWARFContext> m_llvm_context;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h 71 std::unique_ptr<DWARFDebugAranges>
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp 327 std::unique_ptr<SymbolFileDWARFDwo> dwo_symbol_file =
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h 255 std::unique_ptr<SymbolFileDWARFDwo> m_dwo_symbol_file;
274 std::unique_ptr<DWARFDebugAranges> m_func_aranges_up;
tools/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp 19 llvm::Expected<std::unique_ptr<DebugNamesDWARFIndex>>
tools/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h 21 static llvm::Expected<std::unique_ptr<DebugNamesDWARFIndex>>
49 std::unique_ptr<llvm::DWARFDebugNames> debug_names_up,
66 std::unique_ptr<DebugNames> m_debug_names_up;
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 461 llvm::Expected<std::unique_ptr<DebugNamesDWARFIndex>> index_or =
1000 std::unique_ptr<LineTable> line_table_up =
1155 std::unique_ptr<Declaration> decl_up;
1161 std::unique_ptr<Declaration> call_up;
1535 std::unique_ptr<SymbolFileDWARFDwo>
1558 std::unique_ptr<SymbolFileDWARFDwo> dwo_symfile =
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h 280 virtual std::unique_ptr<SymbolFileDWARFDwo>
461 std::unique_ptr<SymbolFileDWARFDwp> m_dwp_symfile;
470 std::unique_ptr<DWARFDebugAbbrev> m_abbr;
471 std::unique_ptr<DWARFDebugInfo> m_info;
472 std::unique_ptr<GlobalVariableMap> m_global_aranges_up;
479 std::unique_ptr<lldb_private::DWARFIndex> m_index;
486 std::unique_ptr<DWARFDebugRanges> m_ranges;
487 std::unique_ptr<DWARFDebugRngLists> m_rnglists;
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h 39 std::unique_ptr<SymbolFileDWARFDwo>
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwp.cpp 41 std::unique_ptr<SymbolFileDWARFDwp>
54 std::unique_ptr<SymbolFileDWARFDwp> dwp_symfile(
83 std::unique_ptr<SymbolFileDWARFDwo>
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwp.h 23 static std::unique_ptr<SymbolFileDWARFDwp>
26 std::unique_ptr<SymbolFileDWARFDwo>
tools/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.cpp 125 std::unique_ptr<llvm::msf::MappedBlockStream> stream_data =
129 std::unique_ptr<CompilandIndexItem>& cci = result.first->second;
tools/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h 78 llvm::DenseMap<uint16_t, std::unique_ptr<CompilandIndexItem>> m_comp_units;
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp 41 llvm::Expected<std::unique_ptr<PdbIndex>>
42 PdbIndex::create(std::unique_ptr<llvm::pdb::PDBFile> file) {
45 std::unique_ptr<PdbIndex> result(new PdbIndex());
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.h 51 std::unique_ptr<llvm::pdb::PDBFile> m_file;
113 static llvm::Expected<std::unique_ptr<PdbIndex>>
114 create(std::unique_ptr<llvm::pdb::PDBFile>);
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp 83 static std::unique_ptr<PDBFile> loadPDBFile(std::string PdbPath,
85 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> ErrorOrBuffer =
90 std::unique_ptr<llvm::MemoryBuffer> Buffer = std::move(*ErrorOrBuffer);
109 static std::unique_ptr<PDBFile>
141 std::unique_ptr<PDBFile> pdb = loadPDBFile(pdb_file, allocator);
285 std::unique_ptr<PDBFile> file_up =
1051 std::unique_ptr<LineSequence> seq) {
1115 std::unique_ptr<LineSequence> sequence(
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h 222 std::unique_ptr<PdbIndex> m_index;
224 std::unique_ptr<PdbAstBuilder> m_ast;
tools/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp 60 std::unique_ptr<clang::CXXBaseSpecifier> base_spec =
221 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> bases;
tools/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.h 39 std::pair<uint64_t, std::unique_ptr<clang::CXXBaseSpecifier>>;
tools/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp 278 static std::unique_ptr<llvm::pdb::PDBSymbol>
792 std::unique_ptr<PDBSymbol> symbol =
834 if (std::unique_ptr<PDBSymbol> class_parent =
854 if (std::unique_ptr<ConcreteSymbolEnumerator<PDBSymbolFunc>>
857 while (std::unique_ptr<PDBSymbolFunc> method =
939 if (std::unique_ptr<PDBSymbolTypeFunctionSig> sig = func->getSignature()) {
940 if (std::unique_ptr<ConcreteSymbolEnumerator<PDBSymbolTypeFunctionArg>>
942 while (std::unique_ptr<PDBSymbolTypeFunctionArg> arg =
1038 if (std::unique_ptr<IPDBEnumSymbols> children_enum = global->findChildren(
1287 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> base_classes;
1309 std::unique_ptr<clang::CXXBaseSpecifier> base_spec =
1335 while (std::unique_ptr<PDBSymbolFunc> method = methods_enum.getNext())
tools/lldb/source/Plugins/SymbolFile/PDB/PDBLocationToDWARFExpression.cpp 30 static std::unique_ptr<IPDBFrameData>
37 std::unique_ptr<IPDBFrameData> found;
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp 240 std::unique_ptr<llvm::pdb::PDBSymbolCompiland>
458 std::unique_ptr<IPDBEnumSymbols> results;
1472 std::unique_ptr<IPDBEnumSymbols> results;
1520 std::unique_ptr<IPDBEnumSymbols> results;
1788 std::unique_ptr<LineSequence> sequence(
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h 217 std::unique_ptr<llvm::pdb::PDBSymbolCompiland>
245 std::unique_ptr<llvm::pdb::IPDBSession> m_session_up;
246 std::unique_ptr<llvm::pdb::PDBSymbolExe> m_global_scope_up;
tools/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.h 103 std::unique_ptr<UtilityFunction> m_get_item_info_impl_code;
tools/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.h 108 std::unique_ptr<UtilityFunction> m_get_pending_items_impl_code;
tools/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h 100 std::unique_ptr<UtilityFunction> m_get_queues_impl_code_up;
tools/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.h 102 std::unique_ptr<UtilityFunction> m_get_thread_item_info_impl_code;
tools/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp 297 std::unique_ptr<EmulateInstruction> inst_emulator_up(
tools/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.h 129 std::unique_ptr<lldb_private::EmulateInstruction> m_inst_emulator_up;
tools/lldb/source/Symbol/ClangASTContext.cpp 8314 std::unique_ptr<clang::CXXBaseSpecifier>
8330 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> bases) {
tools/lldb/source/Symbol/CxxModuleHandler.cpp 64 static std::unique_ptr<LookupResult>
68 std::unique_ptr<LookupResult> lookup_result;
212 std::unique_ptr<LookupResult> lookup =
tools/lldb/source/Symbol/LineTable.cpp 456 std::unique_ptr<LineTable> line_table_up(new LineTable(m_comp_unit));
tools/lldb/source/Symbol/ObjectFile.cpp 61 std::unique_ptr<ObjectContainer> object_container_up(
109 std::unique_ptr<ObjectContainer> object_container_up(
151 std::unique_ptr<ObjectContainer> object_container_up(
465 std::unique_ptr<DataBufferHeap> data_up(new DataBufferHeap(byte_size, 0));
674 std::unique_ptr<CallFrameInfo> ObjectFile::CreateCallFrameInfo() {
tools/lldb/source/Symbol/SymbolFile.cpp 39 std::unique_ptr<SymbolFile> best_symfile_up;
65 std::unique_ptr<SymbolFile> curr_symfile_up(create_callback(objfile_sp));
tools/lldb/source/Symbol/SymbolVendor.cpp 28 std::unique_ptr<SymbolVendor> instance_up;
tools/lldb/source/Target/ABI.cpp 216 std::unique_ptr<llvm::MCRegisterInfo> ABI::MakeMCRegisterInfo(const ArchSpec &arch) {
227 std::unique_ptr<llvm::MCRegisterInfo> info_up(
tools/lldb/source/Target/Language.cpp 28 typedef std::unique_ptr<Language> LanguageUP;
372 std::unique_ptr<Language::TypeScavenger> Language::GetTypeScavenger() {
415 std::unique_ptr<Language::TypeScavenger::Result> scavengeresult(
tools/lldb/source/Target/LanguageRuntime.cpp 204 std::unique_ptr<LanguageRuntime> language_runtime_up;
tools/lldb/source/Target/Memory.cpp 227 std::unique_ptr<DataBufferHeap> data_buffer_heap_up(
tools/lldb/source/Target/ModuleCache.cpp 52 std::unique_ptr<lldb_private::LockFile> m_lock;
tools/lldb/source/Target/OperatingSystem.cpp 25 std::unique_ptr<OperatingSystem> instance_up(
36 std::unique_ptr<OperatingSystem> instance_up(
tools/lldb/source/Target/Process.cpp 3744 std::unique_ptr<PrivateStateThreadArgs> args_up(
4435 std::unique_ptr<ConnectionFileDescriptor> conn_up(
5972 llvm::function_ref<std::unique_ptr<UtilityFunction>()> factory) {
tools/lldb/source/Target/StackFrameList.cpp 824 void StackFrameList::Merge(std::unique_ptr<StackFrameList> &curr_up,
tools/lldb/source/Target/SystemRuntime.cpp 23 std::unique_ptr<SystemRuntime> instance_up(create_callback(process));
tools/lldb/source/Target/ThreadSpec.cpp 24 std::unique_ptr<ThreadSpec> ThreadSpec::CreateFromStructuredData(
31 std::unique_ptr<ThreadSpec> thread_spec_up(new ThreadSpec());
tools/lldb/source/Utility/DataBufferLLVM.cpp 21 std::unique_ptr<llvm::WritableMemoryBuffer> MemBuffer)
tools/lldb/source/Utility/Reproducer.cpp 153 ProviderBase *Generator::Register(std::unique_ptr<ProviderBase> provider) {
155 std::pair<const void *, std::unique_ptr<ProviderBase>> key_value(
234 llvm::Expected<std::unique_ptr<DataRecorder>>
304 std::unique_ptr<CommandLoader> CommandLoader::Create(Loader *loader) {
tools/lldb/source/Utility/ReproducerInstrumentation.cpp 66 void Registry::DoRegister(uintptr_t RunID, std::unique_ptr<Replayer> replayer,
tools/lldb/tools/lldb-instr/Instrument.cpp 335 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
tools/lldb/tools/lldb-server/Acceptor.cpp 81 std::unique_ptr<Acceptor> Acceptor::Create(StringRef name,
108 std::unique_ptr<Socket> listener_socket_up =
132 Acceptor::Acceptor(std::unique_ptr<Socket> &&listener_socket, StringRef name,
tools/lldb/tools/lldb-server/Acceptor.h 34 static std::unique_ptr<Acceptor> Create(llvm::StringRef name,
49 Acceptor(std::unique_ptr<Socket> &&listener_socket, llvm::StringRef name,
52 const std::unique_ptr<Socket> m_listener_socket_up;
tools/lldb/tools/lldb-server/lldb-gdbserver.cpp 233 std::unique_ptr<Connection> connection_up;
307 std::unique_ptr<Acceptor> acceptor_up(
tools/lldb/tools/lldb-server/lldb-platform.cpp 282 std::unique_ptr<Acceptor> acceptor_up(Acceptor::Create(
tools/lldb/tools/lldb-test/lldb-test.cpp 71 std::unique_ptr<MemoryBuffer> openFile(const std::string &Filename);
297 std::unique_ptr<MemoryBuffer> opts::openFile(const std::string &Filename) {
363 std::unique_ptr<MemoryBuffer> MB = opts::openFile(breakpoint::CommandFile);
1041 std::unique_ptr<MemoryBuffer> MB = opts::openFile(irmemorymap::CommandFile);
tools/lldb/tools/lldb-vscode/VSCode.h 79 std::unique_ptr<std::ofstream> log;
tools/lldb/unittests/Editline/EditlineTest.cpp 84 std::unique_ptr<lldb_private::Editline> _editline_sp;
90 std::unique_ptr<FilePointer> _el_slave_file;
tools/lldb/unittests/Expression/DWARFExpressionTest.cpp 53 llvm::StringMap<std::unique_ptr<llvm::MemoryBuffer>> &m_section_map;
60 llvm::StringMap<std::unique_ptr<llvm::MemoryBuffer>> &map)
122 llvm::StringMap<std::unique_ptr<llvm::MemoryBuffer>> m_sections_map;
126 std::unique_ptr<SymbolFileDWARF> m_symfile_dwarf;
tools/lldb/unittests/Host/ConnectionFileDescriptorTest.cpp 26 std::unique_ptr<TCPSocket> socket_a_up;
27 std::unique_ptr<TCPSocket> socket_b_up;
tools/lldb/unittests/Host/FileSystemTest.cpp 27 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
56 ErrorOr<std::unique_ptr<vfs::File>>
tools/lldb/unittests/Host/MainLoopTest.cpp 31 std::unique_ptr<TCPSocket> listen_socket_up(
42 std::unique_ptr<TCPSocket> connect_socket_up(
tools/lldb/unittests/Host/SocketTest.cpp 101 std::unique_ptr<DomainSocket> socket_a_up;
102 std::unique_ptr<DomainSocket> socket_b_up;
108 std::unique_ptr<TCPSocket> socket_a_up;
109 std::unique_ptr<TCPSocket> socket_b_up;
114 std::unique_ptr<TCPSocket> socket_a_up;
115 std::unique_ptr<TCPSocket> socket_b_up;
139 std::unique_ptr<Socket> socket_up(socket);
151 std::unique_ptr<TCPSocket> socket_up((TCPSocket*)server_socket);
157 std::unique_ptr<TCPSocket> socket_a_up;
158 std::unique_ptr<TCPSocket> socket_b_up;
206 std::unique_ptr<DomainSocket> socket_a_up;
207 std::unique_ptr<DomainSocket> socket_b_up;
tools/lldb/unittests/Host/SocketTestUtilities.cpp 30 std::unique_ptr<SocketType> *a_up, std::unique_ptr<SocketType> *b_up) {
30 std::unique_ptr<SocketType> *a_up, std::unique_ptr<SocketType> *b_up) {
33 std::unique_ptr<SocketType> listen_socket_up(
47 std::unique_ptr<SocketType> connect_socket_up(
69 std::string listen_remote_ip, std::unique_ptr<TCPSocket> *socket_a_up,
70 std::unique_ptr<TCPSocket> *socket_b_up) {
87 llvm::StringRef path, std::unique_ptr<DomainSocket> *socket_a_up,
88 std::unique_ptr<DomainSocket> *socket_b_up) {
tools/lldb/unittests/Host/SocketTestUtilities.h 33 std::unique_ptr<SocketType> *a_up, std::unique_ptr<SocketType> *b_up);
33 std::unique_ptr<SocketType> *a_up, std::unique_ptr<SocketType> *b_up);
35 std::unique_ptr<TCPSocket> *a_up,
36 std::unique_ptr<TCPSocket> *b_up);
39 std::unique_ptr<DomainSocket> *a_up,
40 std::unique_ptr<DomainSocket> *b_up);
tools/lldb/unittests/ObjectFile/PECOFF/TestPECallFrameInfo.cpp 207 std::unique_ptr<CallFrameInfo> cfi = object_file->CreateCallFrameInfo();
tools/lldb/unittests/Process/POSIX/NativeProcessELFTest.cpp 33 std::unique_ptr<llvm::MemoryBuffer> CreateAuxvData(
tools/lldb/unittests/Symbol/TestClangASTContext.cpp 45 std::unique_ptr<ClangASTContext> m_ast;
348 std::vector<std::unique_ptr<clang::CXXBaseSpecifier>> bases;
355 std::unique_ptr<clang::CXXBaseSpecifier> non_empty_base_spec =
378 std::unique_ptr<CXXBaseSpecifier> non_empty_vbase_spec =
tools/lldb/unittests/UnwindAssembly/ARM64/TestArm64InstEmulation.cpp 58 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
154 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
316 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
411 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
513 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
tools/lldb/unittests/UnwindAssembly/PPC64/TestPPC64InstEmulation.cpp 56 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
175 std::unique_ptr<UnwindAssemblyInstEmulation> engine(
tools/lldb/unittests/UnwindAssembly/x86/Testx86AssemblyInspectionEngine.cpp 96 std::unique_ptr<x86AssemblyInspectionEngine> Getx86_64Inspector() {
99 std::unique_ptr<x86AssemblyInspectionEngine> engine(
115 std::unique_ptr<x86AssemblyInspectionEngine> Geti386Inspector() {
118 std::unique_ptr<x86AssemblyInspectionEngine> engine(
144 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
220 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
296 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
462 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
759 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
856 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
977 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
992 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1021 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1037 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1069 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1078 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1102 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1113 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1148 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1176 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1204 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1232 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1260 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1284 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1313 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1342 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1368 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1396 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1431 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1452 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1480 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1515 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1580 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1620 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1660 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
1700 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
1742 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1768 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1794 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1820 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1846 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1872 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1898 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
1924 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
1950 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
1976 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
2002 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
2030 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
2068 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
2069 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2109 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2134 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
2173 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2207 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
2298 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
2376 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2458 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2459 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
2497 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
2531 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
2565 std::unique_ptr<x86AssemblyInspectionEngine> engine = Geti386Inspector();
2628 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2629 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
2648 std::unique_ptr<x86AssemblyInspectionEngine> engine = Getx86_64Inspector();
2825 std::unique_ptr<x86AssemblyInspectionEngine> engine32 = Geti386Inspector();
2826 std::unique_ptr<x86AssemblyInspectionEngine> engine64 = Getx86_64Inspector();
tools/lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp 227 Expected<std::unique_ptr<StopReply>>
266 Expected<std::unique_ptr<StopReplyStop>>
327 Expected<std::unique_ptr<StopReplyExit>>
tools/lldb/unittests/tools/lldb-server/tests/MessageObjects.h 91 class StopReply : public Parser<std::unique_ptr<StopReply>> {
96 static llvm::Expected<std::unique_ptr<StopReply>>
116 static llvm::Expected<std::unique_ptr<StopReplyStop>>
149 static llvm::Expected<std::unique_ptr<StopReplyExit>>
tools/lldb/unittests/tools/lldb-server/tests/TestBase.h 54 std::unique_ptr<TestClient> Client;
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp 32 TestClient::TestClient(std::unique_ptr<Connection> Conn) {
56 Expected<std::unique_ptr<TestClient>> TestClient::launch(StringRef Log) {
60 Expected<std::unique_ptr<TestClient>> TestClient::launch(StringRef Log, ArrayRef<StringRef> InferiorArgs) {
64 Expected<std::unique_ptr<TestClient>> TestClient::launchCustom(StringRef Log, ArrayRef<StringRef> ServerArgs, ArrayRef<StringRef> InferiorArgs) {
tools/lldb/unittests/tools/lldb-server/tests/TestClient.h 40 static llvm::Expected<std::unique_ptr<TestClient>> launch(llvm::StringRef Log);
44 static llvm::Expected<std::unique_ptr<TestClient>>
50 static llvm::Expected<std::unique_ptr<TestClient>>
83 TestClient(std::unique_ptr<lldb_private::Connection> Conn);
96 std::unique_ptr<StopReply> m_stop_reply;
tools/lli/RemoteJITUtils.h 74 std::unique_ptr<FDRawChannel> launchRemote();
82 void setMemMgr(std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr) {
146 std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr;
tools/lli/lli.cpp 259 std::unique_ptr<MemoryBuffer> getObject(const Module* M) override {
265 ErrorOr<std::unique_ptr<MemoryBuffer>> IRObjectBuffer =
311 std::unique_ptr<Module> M = std::make_unique<Module>("CygMingHelper", Context);
387 std::unique_ptr<Module> Owner = parseIRFile(InputFile, Err, Context);
452 std::unique_ptr<ExecutionEngine> EE(builder.create());
462 std::unique_ptr<LLIObjectCache> CacheManager;
470 std::unique_ptr<Module> XMod = parseIRFile(ExtraModules[i], Err, Context);
494 ErrorOr<std::unique_ptr<MemoryBuffer>> ArBufOrErr =
498 std::unique_ptr<MemoryBuffer> &ArBuf = ArBufOrErr.get();
500 Expected<std::unique_ptr<object::Archive>> ArOrErr =
510 std::unique_ptr<object::Archive> &Ar = ArOrErr.get();
644 std::unique_ptr<FDRawChannel> C = launchRemote();
915 std::unique_ptr<FDRawChannel> launchRemote() {
tools/llvm-ar/llvm-ar.cpp 219 static std::vector<std::unique_ptr<MemoryBuffer>> ArchiveBuffers;
220 static std::vector<std::unique_ptr<object::Archive>> Archives;
864 Expected<std::unique_ptr<object::ObjectFile>> OptionalObject =
879 std::unique_ptr<MemoryBuffer> OldArchiveBuf,
937 std::unique_ptr<MemoryBuffer> OldArchiveBuf,
963 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf =
998 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = MemoryBuffer::getSTDIN();
tools/llvm-as/llvm-as.cpp 84 std::unique_ptr<ToolOutputFile> Out(
124 std::unique_ptr<Module> M = std::move(ModuleAndIndex.Mod);
129 std::unique_ptr<ModuleSummaryIndex> Index = std::move(ModuleAndIndex.Index);
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp 71 static Expected<std::unique_ptr<MemoryBuffer>> openBitcodeFile(StringRef Path) {
73 Expected<std::unique_ptr<MemoryBuffer>> MemBufOrErr =
78 std::unique_ptr<MemoryBuffer> MemBuf = std::move(*MemBufOrErr);
91 std::unique_ptr<MemoryBuffer> MB = ExitOnErr(openBitcodeFile(InputFilename));
92 std::unique_ptr<MemoryBuffer> BlockInfoMB = nullptr;
tools/llvm-cat/llvm-cat.cpp 61 std::unique_ptr<MemoryBuffer> MB = ExitOnErr(
73 std::vector<std::unique_ptr<Module>> OwnedMods;
76 std::unique_ptr<Module> M = parseIRFile(InputFilename, Err, Context);
tools/llvm-cfi-verify/lib/FileAnalysis.cpp 427 std::unique_ptr<DWARFContext> DWARF = DWARFContext::create(*Object);
tools/llvm-cfi-verify/lib/FileAnalysis.h 206 std::unique_ptr<const MCRegisterInfo> RegisterInfo;
207 std::unique_ptr<const MCAsmInfo> AsmInfo;
208 std::unique_ptr<MCSubtargetInfo> SubtargetInfo;
209 std::unique_ptr<const MCInstrInfo> MII;
211 std::unique_ptr<MCContext> Context;
212 std::unique_ptr<const MCDisassembler> Disassembler;
213 std::unique_ptr<const MCInstrAnalysis> MIA;
214 std::unique_ptr<MCInstPrinter> Printer;
217 std::unique_ptr<symbolize::LLVMSymbolizer> Symbolizer;
tools/llvm-cfi-verify/llvm-cfi-verify.cpp 69 std::unique_ptr<MemoryBuffer> File = std::move(FileOrErr.get());
261 std::unique_ptr<SpecialCaseList> SpecialCaseList;
tools/llvm-cov/CodeCoverage.cpp 90 std::unique_ptr<SourceCoverageView>
95 std::unique_ptr<SourceCoverageView>
99 std::unique_ptr<CoverageMapping> load();
156 std::vector<std::pair<std::string, std::unique_ptr<MemoryBuffer>>>
160 std::unique_ptr<SpecialCaseList> NameWhitelist;
273 std::unique_ptr<SourceCoverageView>
292 std::unique_ptr<SourceCoverageView>
315 std::unique_ptr<SourceCoverageView> SubView{nullptr};
349 std::unique_ptr<CoverageMapping> CodeCoverageTool::load() {
496 std::unique_ptr<MemoryBuffer> DemanglerBuf = std::move(*BufOrError);
1039 std::unique_ptr<CoverageExporter> Exporter;
tools/llvm-cov/CoverageFilters.cpp 56 void CoverageFilters::push_back(std::unique_ptr<CoverageFilter> Filter) {
tools/llvm-cov/CoverageFilters.h 132 std::vector<std::unique_ptr<CoverageFilter>> Filters;
136 void push_back(std::unique_ptr<CoverageFilter> Filter);
tools/llvm-cov/SourceCoverageView.cpp 75 std::unique_ptr<CoveragePrinter>
138 std::unique_ptr<SourceCoverageView>
166 std::unique_ptr<SourceCoverageView> View) {
172 std::unique_ptr<SourceCoverageView> View) {
tools/llvm-cov/SourceCoverageView.h 32 std::unique_ptr<SourceCoverageView> View;
35 std::unique_ptr<SourceCoverageView> View)
58 std::unique_ptr<SourceCoverageView> View;
61 std::unique_ptr<SourceCoverageView> View)
77 using OwnedStream = std::unique_ptr<raw_ostream, StreamDestructor>;
99 static std::unique_ptr<CoveragePrinter>
239 static std::unique_ptr<SourceCoverageView>
252 std::unique_ptr<SourceCoverageView> View);
256 std::unique_ptr<SourceCoverageView> View);
tools/llvm-cov/gcov.cpp 46 ErrorOr<std::unique_ptr<MemoryBuffer>> GCNO_Buff =
58 ErrorOr<std::unique_ptr<MemoryBuffer>> GCDA_Buff =
tools/llvm-cvtres/llvm-cvtres.cpp 196 std::unique_ptr<MemoryBuffer> OutputBuffer =
203 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr);
tools/llvm-cxxdump/llvm-cxxdump.cpp 502 Expected<std::unique_ptr<Binary>> ChildOrErr = ArcC.getAsBinary();
tools/llvm-diff/llvm-diff.cpp 32 static std::unique_ptr<Module> readModule(LLVMContext &Context,
35 std::unique_ptr<Module> M = parseIRFile(Name, Diag, Context);
73 std::unique_ptr<Module> LModule = readModule(Context, LeftFilename);
74 std::unique_ptr<Module> RModule = readModule(Context, RightFilename);
tools/llvm-dis/llvm-dis.cpp 159 std::unique_ptr<MemoryBuffer> MB =
161 std::unique_ptr<Module> M = ExitOnErr(getLazyBitcodeModule(
169 std::unique_ptr<ModuleSummaryIndex> Index;
188 std::unique_ptr<ToolOutputFile> Out(
195 std::unique_ptr<AssemblyAnnotationWriter> Annotator;
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 487 Expected<std::unique_ptr<Binary>> BinOrErr = object::createBinary(Buffer);
493 std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*Obj);
504 std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(Obj);
524 ErrorOr<std::unique_ptr<MemoryBuffer>> BuffOrErr =
527 std::unique_ptr<MemoryBuffer> Buffer = std::move(BuffOrErr.get());
tools/llvm-dwp/llvm-dwp.cpp 483 std::unique_ptr<DWARFContext> DWARFCtx = DWARFContext::create(Obj);
675 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName));
680 std::unique_ptr<MCAsmInfo> MAI(
689 std::unique_ptr<MCSubtargetInfo> MSTI(
699 std::unique_ptr<MCInstrInfo> MII(TheTarget->createMCInstrInfo());
721 std::unique_ptr<MCStreamer> MS(TheTarget->createMCObjectStreamer(
tools/llvm-elfabi/ELFObjHandler.cpp 289 static Expected<std::unique_ptr<ELFStub>>
295 std::unique_ptr<ELFStub> DestStub = std::make_unique<ELFStub>();
370 Expected<std::unique_ptr<ELFStub>> readELFFile(MemoryBufferRef Buf) {
371 Expected<std::unique_ptr<Binary>> BinOrErr = createBinary(Buf);
tools/llvm-elfabi/ELFObjHandler.h 27 Expected<std::unique_ptr<ELFStub>> readELFFile(MemoryBufferRef Buf);
tools/llvm-elfabi/llvm-elfabi.cpp 73 static Expected<std::unique_ptr<ELFStub>> readInputFile(StringRef FilePath) {
75 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrError =
82 std::unique_ptr<MemoryBuffer> FileReadBuffer = std::move(*BufOrError);
88 Expected<std::unique_ptr<ELFStub>> StubFromELF =
99 Expected<std::unique_ptr<ELFStub>> StubFromTBE =
121 Expected<std::unique_ptr<ELFStub>> StubOrErr = readInputFile(InputFilePath);
128 std::unique_ptr<ELFStub> TargetStub = std::move(StubOrErr.get());
tools/llvm-exegesis/lib/Analysis.cpp 154 Analysis::Analysis(const Target &Target, std::unique_ptr<MCInstrInfo> InstrInfo,
tools/llvm-exegesis/lib/Analysis.h 39 Analysis(const Target &Target, std::unique_ptr<MCInstrInfo> InstrInfo,
115 std::unique_ptr<MCContext> Context_;
116 std::unique_ptr<MCSubtargetInfo> SubtargetInfo_;
117 std::unique_ptr<MCInstrInfo> InstrInfo_;
118 std::unique_ptr<MCRegisterInfo> RegInfo_;
119 std::unique_ptr<MCAsmInfo> AsmInfo_;
120 std::unique_ptr<MCInstPrinter> InstPrinter_;
121 std::unique_ptr<MCDisassembler> Disasm_;
tools/llvm-exegesis/lib/Assembler.cpp 150 static std::unique_ptr<Module>
151 createModule(const std::unique_ptr<LLVMContext> &Context, const DataLayout DL) {
158 std::unique_ptr<LLVMContext> Context = std::make_unique<LLVMContext>();
159 std::unique_ptr<Module> Module = createModule(Context, TM.createDataLayout());
162 std::unique_ptr<MachineModuleInfoWrapperPass> MMIWP =
171 std::unique_ptr<LLVMTargetMachine> TM,
176 std::unique_ptr<Module> Module =
251 std::unique_ptr<MemoryBuffer> Buffer =
254 std::unique_ptr<object::ObjectFile> Obj =
289 std::unique_ptr<LLVMTargetMachine> TM,
tools/llvm-exegesis/lib/Assembler.h 90 std::unique_ptr<LLVMTargetMachine> TM,
107 std::unique_ptr<LLVMTargetMachine> TM,
118 std::unique_ptr<LLVMContext> Context;
119 std::unique_ptr<ExecutionEngine> ExecEngine;
tools/llvm-exegesis/lib/BenchmarkRunner.h 82 const std::unique_ptr<ScratchSpace> Scratch;
tools/llvm-exegesis/lib/LlvmState.cpp 52 std::unique_ptr<LLVMTargetMachine> LLVMState::createTargetMachine() const {
65 std::unique_ptr<const MCCodeEmitter> CodeEmitter(
tools/llvm-exegesis/lib/LlvmState.h 46 std::unique_ptr<LLVMTargetMachine> createTargetMachine() const;
70 std::unique_ptr<const TargetMachine> TheTargetMachine;
71 std::unique_ptr<const RegisterAliasingTrackerCache> RATC;
72 std::unique_ptr<const InstructionsCache> IC;
tools/llvm-exegesis/lib/MCInstrDescView.h 158 mutable std::unordered_map<unsigned, std::unique_ptr<Instruction>>
tools/llvm-exegesis/lib/RegisterAliasing.h 100 mutable std::unordered_map<unsigned, std::unique_ptr<RegisterAliasingTracker>>
102 mutable std::unordered_map<unsigned, std::unique_ptr<RegisterAliasingTracker>>
tools/llvm-exegesis/lib/SnippetFile.cpp 121 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferPtr =
138 const std::unique_ptr<MCAsmParser> AsmParser(
144 const std::unique_ptr<MCTargetAsmParser> TargetAsmParser(
tools/llvm-exegesis/lib/SnippetRepetitor.cpp 105 std::unique_ptr<const SnippetRepetitor>
tools/llvm-exegesis/lib/SnippetRepetitor.h 31 static std::unique_ptr<const SnippetRepetitor>
tools/llvm-exegesis/lib/Target.cpp 39 std::unique_ptr<SnippetGenerator> ExegesisTarget::createSnippetGenerator(
54 std::unique_ptr<BenchmarkRunner>
69 std::unique_ptr<SnippetGenerator> ExegesisTarget::createLatencySnippetGenerator(
74 std::unique_ptr<SnippetGenerator> ExegesisTarget::createUopsSnippetGenerator(
79 std::unique_ptr<BenchmarkRunner> ExegesisTarget::createLatencyBenchmarkRunner(
84 std::unique_ptr<BenchmarkRunner>
tools/llvm-exegesis/lib/Target.h 119 std::unique_ptr<SnippetGenerator>
124 std::unique_ptr<BenchmarkRunner>
147 std::unique_ptr<SnippetGenerator> virtual createLatencySnippetGenerator(
149 std::unique_ptr<SnippetGenerator> virtual createUopsSnippetGenerator(
151 std::unique_ptr<BenchmarkRunner> virtual createLatencyBenchmarkRunner(
153 std::unique_ptr<BenchmarkRunner> virtual createUopsBenchmarkRunner(
tools/llvm-exegesis/lib/X86/Target.cpp 562 std::unique_ptr<SnippetGenerator> createLatencySnippetGenerator(
568 std::unique_ptr<SnippetGenerator> createUopsSnippetGenerator(
tools/llvm-exegesis/llvm-exegesis.cpp 222 const std::unique_ptr<SnippetGenerator> Generator =
275 const std::unique_ptr<BenchmarkRunner> Runner =
350 std::unique_ptr<MCInstrInfo> InstrInfo(TheTarget->createMCInstrInfo());
tools/llvm-extract/llvm-extract.cpp 143 std::unique_ptr<Module> M = getLazyIRFileModule(InputFilename, Err, Context);
tools/llvm-ifs/llvm-ifs.cpp 202 static Expected<std::unique_ptr<IFSStub>> readInputFile(StringRef FilePath) {
204 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrError =
210 std::unique_ptr<MemoryBuffer> FileReadBuffer = std::move(*BufOrError);
212 std::unique_ptr<IFSStub> Stub(new IFSStub());
410 Expected<std::unique_ptr<IFSStub>> StubOrErr = readInputFile(InputFilePath);
415 std::unique_ptr<IFSStub> TargetStub = std::move(StubOrErr.get());
tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp 49 static std::unique_ptr<TargetMachine> TM;
50 static std::unique_ptr<IRMutator> Mutator;
52 std::unique_ptr<IRMutator> createISelMutator() {
57 std::vector<std::unique_ptr<IRMutationStrategy>> Strategies;
68 std::unique_ptr<Module> M;
tools/llvm-jitlink/llvm-jitlink.cpp 231 static Expected<std::unique_ptr<JITLinkSlabAllocator>>
234 std::unique_ptr<JITLinkSlabAllocator> Allocator(
241 Expected<std::unique_ptr<JITLinkMemoryManager::Allocation>>
387 static std::unique_ptr<jitlink::JITLinkMemoryManager> createMemoryManager() {
683 std::unique_ptr<MCSubtargetInfo> STI(
690 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName));
698 std::unique_ptr<MCAsmInfo> MAI(
707 std::unique_ptr<MCDisassembler> Disassembler(
714 std::unique_ptr<MCInstrInfo> MII(TheTarget->createMCInstrInfo());
716 std::unique_ptr<MCInstPrinter> InstPrinter(
803 std::unique_ptr<JITLinkTimers> Timers =
tools/llvm-jitlink/llvm-jitlink.h 29 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr;
tools/llvm-link/llvm-link.cpp 116 static std::unique_ptr<Module> loadFile(const char *argv0,
123 std::unique_ptr<Module> Result;
148 StringMap<std::unique_ptr<Module>> ModuleMap;
151 std::function<std::unique_ptr<Module>(const char *argv0,
157 ModuleLazyLoaderCache(std::function<std::unique_ptr<Module>(
165 std::unique_ptr<Module> takeModule(const std::string &FileName) {
168 std::unique_ptr<Module> Ret = std::move(I->second);
214 std::unique_ptr<ModuleSummaryIndex> Index =
283 std::unique_ptr<Module> M = loadFile(argv0, File, Context);
302 std::unique_ptr<ModuleSummaryIndex> Index =
tools/llvm-lipo/llvm-lipo.cpp 177 std::unique_ptr<MachOObjectFile> FO = nullptr;
179 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary();
495 Expected<std::unique_ptr<MachOObjectFile>> MachOObjOrError =
501 Expected<std::unique_ptr<Archive>> ArchiveOrError = O.getAsArchive();
561 Expected<std::unique_ptr<MachOObjectFile>> Obj =
563 Expected<std::unique_ptr<Archive>> Ar = UO->getArchiveForArch(ThinArchType);
570 Expected<std::unique_ptr<FileOutputBuffer>> OutFileOrError =
633 Expected<std::unique_ptr<MachOObjectFile>> BinaryOrError =
693 Expected<std::unique_ptr<FileOutputBuffer>> OutFileOrError =
699 std::unique_ptr<FileOutputBuffer> OutFile = std::move(OutFileOrError.get());
732 SmallVector<std::unique_ptr<MachOObjectFile>, 1> ExtractedObjects;
786 SmallVector<std::unique_ptr<MachOObjectFile>, 2> ExtractedObjects;
tools/llvm-lto/llvm-lto.cpp 310 static std::unique_ptr<LTOModule>
311 getLocalLTOModule(StringRef Path, std::unique_ptr<MemoryBuffer> &Buffer,
313 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
318 std::unique_ptr<LLVMContext> Context = std::make_unique<LLVMContext>();
321 ErrorOr<std::unique_ptr<LTOModule>> Ret = LTOModule::createInLocalContext(
333 std::unique_ptr<ModuleSummaryIndex> Index =
368 std::unique_ptr<MemoryBuffer> Buffer;
369 std::unique_ptr<LTOModule> Module =
379 static std::unique_ptr<MemoryBuffer> loadFile(StringRef Filename) {
389 std::unique_ptr<lto::InputFile> Input(LTOModule::createInputFile(
416 std::unique_ptr<MemoryBuffer> MB =
462 std::vector<std::unique_ptr<MemoryBuffer>>
464 std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers;
476 std::unique_ptr<ModuleSummaryIndex> loadCombinedIndex() {
484 static std::unique_ptr<lto::InputFile> loadInputFile(MemoryBufferRef Buffer) {
490 static std::unique_ptr<Module> loadModuleFromInput(lto::InputFile &File,
570 std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers;
784 std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers;
822 std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers;
897 std::unique_ptr<MemoryBuffer> BufferOrErr =
947 ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr =
949 std::unique_ptr<LTOModule> &Module = *ModuleOrErr;
tools/llvm-lto2/llvm-lto2.cpp 209 std::vector<std::unique_ptr<MemoryBuffer>> MBs;
287 std::unique_ptr<MemoryBuffer> MB = check(MemoryBuffer::getFile(F), F);
288 std::unique_ptr<InputFile> Input =
355 std::unique_ptr<MemoryBuffer> MB = check(MemoryBuffer::getFile(F), F);
367 std::unique_ptr<InputFile> Input =
tools/llvm-mc/Disassembler.cpp 139 std::unique_ptr<const MCRegisterInfo> MRI(T.createMCRegInfo(Triple));
145 std::unique_ptr<const MCAsmInfo> MAI(
152 std::unique_ptr<const MCDisassembler> DisAsm(
tools/llvm-mc/llvm-mc.cpp 212 static std::unique_ptr<ToolOutputFile> GetOutputStream(StringRef Path,
284 std::unique_ptr<MCAsmParser> Parser(
286 std::unique_ptr<MCTargetAsmParser> TAP(
333 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferPtr =
351 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName));
354 std::unique_ptr<MCAsmInfo> MAI(
420 std::unique_ptr<ToolOutputFile> Out = GetOutputStream(OutputFilename, Flags);
424 std::unique_ptr<ToolOutputFile> DwoOut;
435 std::unique_ptr<buffer_ostream> BOS;
437 std::unique_ptr<MCStreamer> Str;
439 std::unique_ptr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo());
440 std::unique_ptr<MCSubtargetInfo> STI(
460 std::unique_ptr<MCCodeEmitter> CE;
464 std::unique_ptr<MCAsmBackend> MAB(
tools/llvm-mca/CodeRegion.h 88 using UniqueCodeRegion = std::unique_ptr<CodeRegion>;
tools/llvm-mca/CodeRegionGenerator.cpp 116 std::unique_ptr<MCAsmParser> Parser(
124 std::unique_ptr<MCTargetAsmParser> TAP(
tools/llvm-mca/PipelinePrinter.h 38 llvm::SmallVector<std::unique_ptr<View>, 8> Views;
43 void addView(std::unique_ptr<View> V) {
tools/llvm-mca/llvm-mca.cpp 236 ErrorOr<std::unique_ptr<ToolOutputFile>> getOutputStream() {
316 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferPtr =
329 std::unique_ptr<MCSubtargetInfo> STI(
353 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName));
357 std::unique_ptr<MCAsmInfo> MAI(
371 std::unique_ptr<buffer_ostream> BOS;
373 std::unique_ptr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo());
375 std::unique_ptr<MCInstrAnalysis> MCIA(
412 std::unique_ptr<MCInstPrinter> IP(TheTarget->createMCInstPrinter(
425 std::unique_ptr<ToolOutputFile> TOF = std::move(*OF);
442 std::unique_ptr<MCCodeEmitter> MCE(
445 std::unique_ptr<MCAsmBackend> MAB(TheTarget->createMCAsmBackend(
448 for (const std::unique_ptr<mca::CodeRegion> &Region : Regions) {
466 std::vector<std::unique_ptr<mca::Instruction>> LoweredSequence;
468 Expected<std::unique_ptr<mca::Instruction>> Inst =
tools/llvm-modextract/llvm-modextract.cpp 43 std::unique_ptr<MemoryBuffer> MB =
56 std::unique_ptr<ToolOutputFile> Out(
71 std::unique_ptr<Module> M = ExitOnErr(Ms[ModuleIndex].parseModule(Context));
tools/llvm-mt/llvm-mt.cpp 139 ErrorOr<std::unique_ptr<MemoryBuffer>> ManifestOrErr =
147 std::unique_ptr<MemoryBuffer> OutputBuffer = Merger.getMergedManifest();
150 Expected<std::unique_ptr<FileOutputBuffer>> FileOrErr =
154 std::unique_ptr<FileOutputBuffer> FileBuffer = std::move(*FileOrErr);
tools/llvm-nm/llvm-nm.cpp 1777 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
1784 Expected<std::unique_ptr<Binary>> BinaryOrErr =
1819 Expected<std::unique_ptr<Binary>> ChildOrErr =
1862 Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
1885 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
1887 std::unique_ptr<Archive> &A = *AOrErr;
1890 Expected<std::unique_ptr<Binary>> ChildOrErr =
1947 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile();
1956 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
1958 std::unique_ptr<Archive> &A = *AOrErr;
1961 Expected<std::unique_ptr<Binary>> ChildOrErr =
1997 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = O.getAsObjectFile();
2021 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
2023 std::unique_ptr<Archive> &A = *AOrErr;
2026 Expected<std::unique_ptr<Binary>> ChildOrErr =
tools/llvm-objcopy/Buffer.cpp 38 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
74 std::unique_ptr<WritableMemoryBuffer> MemBuffer::releaseMemoryBuffer() {
tools/llvm-objcopy/Buffer.h 39 std::unique_ptr<FileOutputBuffer> Buf;
53 std::unique_ptr<WritableMemoryBuffer> Buf;
62 std::unique_ptr<WritableMemoryBuffer> releaseMemoryBuffer();
tools/llvm-objcopy/COFF/COFFObjcopy.cpp 44 ErrorOr<std::unique_ptr<MemoryBuffer>> LinkTargetOrErr =
219 Expected<std::unique_ptr<Object>> ObjOrErr = Reader.create();
tools/llvm-objcopy/COFF/Reader.cpp 193 Expected<std::unique_ptr<Object>> COFFReader::create() const {
tools/llvm-objcopy/COFF/Reader.h 35 Expected<std::unique_ptr<Object>> create() const;
tools/llvm-objcopy/ELF/ELFObjcopy.cpp 133 static std::unique_ptr<Writer> createELFWriter(const CopyConfig &Config,
154 static std::unique_ptr<Writer> createWriter(const CopyConfig &Config,
292 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
296 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr);
695 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
699 std::unique_ptr<MemoryBuffer> Buf = std::move(*BufOrErr);
736 std::unique_ptr<Writer> Writer =
746 std::unique_ptr<Object> Obj = Reader.create(true);
759 std::unique_ptr<Object> Obj = Reader.create(true);
773 std::unique_ptr<Object> Obj = Reader.create(!Config.SymbolsToAdd.empty());
tools/llvm-objcopy/ELF/Object.cpp 712 for (std::unique_ptr<Symbol> &Sym : Symbols)
729 for (std::unique_ptr<Symbol> &Sym : Symbols) {
752 for (std::unique_ptr<Symbol> &Sym : Symbols)
761 for (const std::unique_ptr<Symbol> &Sym : Symbols) {
784 for (const std::unique_ptr<Symbol> &Symbol : Sec.Symbols) {
1171 std::unique_ptr<Object> BinaryELFBuilder::build() {
1227 std::unique_ptr<Object> IHexELFBuilder::build() {
1629 std::unique_ptr<Object> BinaryReader::create(bool /*EnsureSymtab*/) const {
1659 std::unique_ptr<Object> IHexReader::create(bool /*EnsureSymtab*/) const {
1664 std::unique_ptr<Object> ELFReader::create(bool EnsureSymtab) const {
tools/llvm-objcopy/ELF/Object.h 51 MutableArrayRef<std::unique_ptr<SectionBase>> Sections;
54 using iterator = pointee_iterator<std::unique_ptr<SectionBase> *>;
56 explicit SectionTableRef(MutableArrayRef<std::unique_ptr<SectionBase>> Secs)
337 std::unique_ptr<ELFSectionWriter<ELFT>> SecWriter;
352 std::unique_ptr<BinarySectionWriter> SecWriter;
662 std::vector<std::unique_ptr<Symbol>> Symbols;
666 using SymPtr = std::unique_ptr<Symbol>;
866 virtual std::unique_ptr<Object> create(bool EnsureSymtab) const = 0;
876 std::unique_ptr<Object> Obj;
898 std::unique_ptr<Object> build();
910 std::unique_ptr<Object> build();
949 std::unique_ptr<Object> create(bool EnsureSymtab) const override;
971 std::unique_ptr<Object> create(bool EnsureSymtab) const override;
979 std::unique_ptr<Object> create(bool EnsureSymtab) const override;
986 using SecPtr = std::unique_ptr<SectionBase>;
987 using SegPtr = std::unique_ptr<Segment>;
1000 pointee_iterator<typename std::vector<std::unique_ptr<T>>::iterator>>;
1004 typename std::vector<std::unique_ptr<T>>::const_iterator>>;
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp 48 for (std::unique_ptr<SymbolEntry> &Sym : O.SymTable.Symbols)
tools/llvm-objcopy/MachO/MachOObjcopy.cpp 65 std::unique_ptr<Object> O = Reader.create();
tools/llvm-objcopy/MachO/MachOReader.cpp 264 std::unique_ptr<Object> MachOReader::create() const {
tools/llvm-objcopy/MachO/MachOReader.h 24 virtual std::unique_ptr<Object> create() const = 0;
46 std::unique_ptr<Object> create() const override;
tools/llvm-objcopy/MachO/Object.h 110 std::vector<std::unique_ptr<SymbolEntry>> Symbols;
tools/llvm-objcopy/llvm-objcopy.cpp 188 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary();
tools/llvm-objdump/MachODump.cpp 2017 std::unique_ptr<DIContext> DICtx = DWARFContext::create(*MachOOF);
2345 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
2399 Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
2412 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
2414 std::unique_ptr<Archive> &A = *AOrErr;
2426 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
2466 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile();
2476 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
2478 std::unique_ptr<Archive> &A = *AOrErr;
2487 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
2516 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile();
2527 } else if (Expected<std::unique_ptr<Archive>> AOrErr = I->getAsArchive()) {
2528 std::unique_ptr<Archive> &A = *AOrErr;
2540 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
2581 std::unique_ptr<SymbolAddressMap> bindtable;
7198 std::unique_ptr<const MCInstrInfo> InstrInfo(TheTarget->createMCInstrInfo());
7199 std::unique_ptr<const MCInstrInfo> ThumbInstrInfo;
7214 std::unique_ptr<const MCRegisterInfo> MRI(
7216 std::unique_ptr<const MCAsmInfo> AsmInfo(
7218 std::unique_ptr<const MCSubtargetInfo> STI(
7221 std::unique_ptr<MCDisassembler> DisAsm(
7223 std::unique_ptr<MCSymbolizer> Symbolizer;
7225 std::unique_ptr<MCRelocationInfo> RelInfo(
7234 std::unique_ptr<MCInstPrinter> IP(TheTarget->createMCInstPrinter(
7255 std::unique_ptr<const MCRegisterInfo> ThumbMRI;
7256 std::unique_ptr<const MCAsmInfo> ThumbAsmInfo;
7257 std::unique_ptr<const MCSubtargetInfo> ThumbSTI;
7258 std::unique_ptr<MCDisassembler> ThumbDisAsm;
7259 std::unique_ptr<MCInstPrinter> ThumbIP;
7260 std::unique_ptr<MCContext> ThumbCtx;
7261 std::unique_ptr<MCSymbolizer> ThumbSymbolizer;
7263 std::unique_ptr<MCRelocationInfo> ThumbRelInfo;
7336 std::unique_ptr<DIContext> diContext;
7337 std::unique_ptr<Binary> DSYMBinary;
7338 std::unique_ptr<MemoryBuffer> DSYMBuf;
7359 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
7369 Expected<std::unique_ptr<Binary>> BinaryOrErr =
7404 Expected<std::unique_ptr<MachOObjectFile>> MachDSYM =
tools/llvm-objdump/llvm-objdump.cpp 545 std::unique_ptr<symbolize::LLVMSymbolizer> Symbolizer;
547 std::unordered_map<std::string, std::unique_ptr<MemoryBuffer>> SourceCache;
576 std::unique_ptr<MemoryBuffer> Buffer;
1236 std::unique_ptr<MCRelocationInfo> RelInfo(
1239 std::unique_ptr<MCSymbolizer> Symbolizer(
1536 std::unique_ptr<const MCRegisterInfo> MRI(
1544 std::unique_ptr<const MCAsmInfo> AsmInfo(
1549 std::unique_ptr<const MCSubtargetInfo> STI(
1554 std::unique_ptr<const MCInstrInfo> MII(TheTarget->createMCInstrInfo());
1563 std::unique_ptr<MCDisassembler> DisAsm(
1572 std::unique_ptr<MCDisassembler> SecondaryDisAsm;
1573 std::unique_ptr<const MCSubtargetInfo> SecondarySTI;
1584 std::unique_ptr<const MCInstrAnalysis> MIA(
1588 std::unique_ptr<MCInstPrinter> IP(TheTarget->createMCInstPrinter(
2156 std::unique_ptr<DIContext> DICtx = DWARFContext::create(*O);
2215 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp 34 static std::unique_ptr<IRMutator> Mutator;
35 static std::unique_ptr<TargetMachine> TM;
37 std::unique_ptr<IRMutator> createOptMutator() {
42 std::vector<std::unique_ptr<IRMutationStrategy>> Strategies;
tools/llvm-opt-report/OptReport.cpp 149 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf =
166 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
178 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
262 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf =
tools/llvm-pdbutil/BytesOutputStyle.h 57 std::unique_ptr<codeview::LazyRandomTypeCollection> TpiTypes;
58 std::unique_ptr<codeview::LazyRandomTypeCollection> IpiTypes;
tools/llvm-pdbutil/DumpOutputStyle.cpp 499 static Expected<std::pair<std::unique_ptr<MappedBlockStream>,
537 std::unique_ptr<MappedBlockStream> Stream;
1546 std::unique_ptr<llvm::Error> SymbolError;
1882 std::unique_ptr<MappedBlockStream> Stream;
tools/llvm-pdbutil/DumpOutputStyle.h 115 std::unique_ptr<TypeReferenceTracker> RefTracker;
tools/llvm-pdbutil/ExplainOutputStyle.cpp 66 std::unique_ptr<BinaryByteStream> Stream =
tools/llvm-pdbutil/InputFile.cpp 276 std::unique_ptr<IPDBSession> Session;
tools/llvm-pdbutil/InputFile.h 43 std::unique_ptr<NativeSession> PdbSession;
45 std::unique_ptr<MemoryBuffer> UnknownFile;
48 using TypeCollectionPtr = std::unique_ptr<codeview::LazyRandomTypeCollection>;
tools/llvm-pdbutil/PrettyTypeDumper.cpp 35 using LayoutPtr = std::unique_ptr<ClassLayout>;
88 static std::vector<std::unique_ptr<ClassLayout>>
91 std::vector<std::unique_ptr<ClassLayout>> Filtered;
313 std::unique_ptr<PDBSymbol> P = Symbol.getPointeeType();
tools/llvm-pdbutil/llvm-pdbutil.cpp 746 ErrorOr<std::unique_ptr<MemoryBuffer>> ErrorOrBuffer =
754 std::unique_ptr<MemoryBuffer> &Buffer = ErrorOrBuffer.get();
855 static PDBFile &loadPDB(StringRef Path, std::unique_ptr<IPDBSession> &Session) {
863 std::unique_ptr<IPDBSession> Session;
880 std::unique_ptr<IPDBSession> Session;
906 const std::unique_ptr<PDBSymbolFunc> &F1,
907 const std::unique_ptr<PDBSymbolFunc> &F2) {
919 const std::unique_ptr<PDBSymbolData> &F1,
920 const std::unique_ptr<PDBSymbolData> &F2) {
1007 std::unique_ptr<IPDBSession> Session;
1055 std::unique_ptr<IPDBSession> Session;
1127 std::unique_ptr<PDBSymbolTypeTypedef> T =
1134 std::unique_ptr<PDBSymbolTypeEnum> E =
1141 std::unique_ptr<PDBSymbolTypeUDT> C =
1154 std::unique_ptr<PDBSymbolFunc> F =
1161 std::unique_ptr<PDBSymbolData> D =
1168 std::unique_ptr<PDBSymbolPublicSymbol> PS =
1235 std::vector<std::unique_ptr<PDBSymbolFunc>> Funcs;
1253 std::vector<std::unique_ptr<PDBSymbolData>> Datas;
1300 std::unique_ptr<IPDBSession> Session;
1345 std::unique_ptr<IPDBSession> Session;
1357 std::unique_ptr<IPDBSession> Session;
1360 std::unique_ptr<MappedBlockStream> SourceStream;
tools/llvm-pdbutil/llvm-pdbutil.h 72 const std::unique_ptr<llvm::pdb::PDBSymbolFunc> &F1,
73 const std::unique_ptr<llvm::pdb::PDBSymbolFunc> &F2);
74 bool compareDataSymbols(const std::unique_ptr<llvm::pdb::PDBSymbolData> &F1,
75 const std::unique_ptr<llvm::pdb::PDBSymbolData> &F2);
tools/llvm-profdata/llvm-profdata.cpp 140 std::unique_ptr<MemoryBuffer> File;
145 static std::unique_ptr<SymbolRemapper> create(StringRef InputFile) {
314 SmallVector<std::unique_ptr<WriterContext>, 4> Contexts;
355 for (std::unique_ptr<WriterContext> &WC : Contexts) {
418 static std::unique_ptr<MemoryBuffer>
474 SmallVector<std::unique_ptr<sampleprof::SampleProfileReader>, 5> Readers;
513 std::unique_ptr<sampleprof::ProfileSymbolList> ReaderList =
680 std::unique_ptr<SymbolRemapper> Remapper;
953 std::unique_ptr<ProfileSummary> PS(Builder.getSummary());
1042 std::unique_ptr<sampleprof::ProfileSymbolList> ReaderList =
tools/llvm-rc/ResourceFileWriter.cpp 1177 const std::unique_ptr<MenuDefinition> &Def, uint16_t Flags) {
1348 for (const std::unique_ptr<VersionInfoStmt> &Item : Blk.Stmts) {
1505 Expected<std::unique_ptr<MemoryBuffer>>
1509 std::unique_ptr<MemoryBuffer> Result;
tools/llvm-rc/ResourceFileWriter.h 46 std::unique_ptr<raw_fd_ostream> Stream)
151 Error writeMenuDefinition(const std::unique_ptr<MenuDefinition> &,
173 std::unique_ptr<raw_fd_ostream> FS;
206 Expected<std::unique_ptr<MemoryBuffer>> loadFile(StringRef File) const;
tools/llvm-rc/ResourceScriptParser.cpp 392 Expected<std::unique_ptr<OptionalStmt>>
708 Expected<std::unique_ptr<VersionInfoBlock>>
724 Expected<std::unique_ptr<VersionInfoStmt>> RCParser::parseVersionInfoStmt() {
tools/llvm-rc/ResourceScriptParser.h 35 using ParseType = Expected<std::unique_ptr<RCResource>>;
36 using ParseOptionType = Expected<std::unique_ptr<OptionalStmt>>;
137 Expected<std::unique_ptr<OptionalStmt>>
161 Expected<std::unique_ptr<VersionInfoBlock>>
164 Expected<std::unique_ptr<VersionInfoStmt>> parseVersionInfoStmt();
tools/llvm-rc/ResourceScriptStmt.h 265 std::vector<std::unique_ptr<OptionalStmt>> Statements;
271 void addStmt(std::unique_ptr<OptionalStmt> Stmt) {
285 std::unique_ptr<OptionalStmtList> OptStatements;
495 std::vector<std::unique_ptr<MenuDefinition>> Definitions;
497 void addDefinition(std::unique_ptr<MenuDefinition> Def) {
750 std::vector<std::unique_ptr<VersionInfoStmt>> Stmts;
754 void addStmt(std::unique_ptr<VersionInfoStmt> Stmt) {
tools/llvm-rc/llvm-rc.cpp 110 ErrorOr<std::unique_ptr<MemoryBuffer>> File =
117 std::unique_ptr<MemoryBuffer> FileContents = std::move(*File);
163 std::unique_ptr<ResourceFileWriter> Visitor;
tools/llvm-readobj/COFFDumper.cpp 245 std::unique_ptr<ObjDumper> &Result) {
tools/llvm-readobj/ELFDumper.cpp 193 std::unique_ptr<DumpStyle<ELFT>> ELFDumperStyle;
614 std::unique_ptr<ObjDumper> &Result) {
621 std::unique_ptr<ObjDumper> &Result) {
tools/llvm-readobj/MachODumper.cpp 73 std::unique_ptr<ObjDumper> &Result) {
tools/llvm-readobj/ObjDumper.h 117 std::unique_ptr<ObjDumper> &Result);
121 std::unique_ptr<ObjDumper> &Result);
125 std::unique_ptr<ObjDumper> &Result);
129 std::unique_ptr<ObjDumper> &Result);
133 std::unique_ptr<ObjDumper> &Result);
tools/llvm-readobj/WasmDumper.cpp 248 std::unique_ptr<ObjDumper> &Result) {
tools/llvm-readobj/XCOFFDumper.cpp 536 std::unique_ptr<ObjDumper> &Result) {
tools/llvm-readobj/llvm-readobj.cpp 419 std::unique_ptr<ObjDumper> &Result) {
444 std::unique_ptr<ObjDumper> Dumper;
555 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary();
577 Expected<std::unique_ptr<MachOObjectFile>> ObjOrErr = Obj.getAsObjectFile();
582 else if (Expected<std::unique_ptr<Archive>> AOrErr = Obj.getAsArchive())
tools/llvm-reduce/TestRunner.h 36 void setProgram(std::unique_ptr<Module> P) { Program = std::move(P); }
41 std::unique_ptr<Module> Program;
tools/llvm-reduce/deltas/Delta.cpp 110 std::unique_ptr<Module> ReducedProgram;
130 std::unique_ptr<Module> Clone = CloneModule(*Test.getProgram());
tools/llvm-reduce/llvm-reduce.cpp 57 static std::unique_ptr<Module> parseInputFile(StringRef Filename,
60 std::unique_ptr<Module> Result = parseIRFile(Filename, Err, Ctxt);
80 std::unique_ptr<Module> OriginalProgram =
tools/llvm-rtdyld/llvm-rtdyld.cpp 156 std::unique_ptr<RTDyldTimers> Timers;
375 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer =
380 Expected<std::unique_ptr<ObjectFile>> MaybeObj(
394 std::unique_ptr<RuntimeDyld::LoadedObjectInfo> LoadedObjInfo = nullptr;
414 std::unique_ptr<DIContext> Context =
511 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer =
515 Expected<std::unique_ptr<ObjectFile>> MaybeObj(
584 ErrorOr<std::unique_ptr<MemoryBuffer>> CheckerFileBuf =
744 std::unique_ptr<MCSubtargetInfo> STI(
749 std::unique_ptr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TripleName));
754 std::unique_ptr<MCAsmInfo> MAI(
761 std::unique_ptr<MCDisassembler> Disassembler(
766 std::unique_ptr<MCInstrInfo> MII(TheTarget->createMCInstrInfo());
768 std::unique_ptr<MCInstPrinter> InstPrinter(
894 std::unique_ptr<RuntimeDyldChecker> Checker;
901 ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer =
907 Expected<std::unique_ptr<ObjectFile>> MaybeObj(
tools/llvm-size/llvm-size.cpp 553 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
591 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile();
615 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
617 std::unique_ptr<Archive> &UA = *AOrErr;
622 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
682 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile();
704 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
706 std::unique_ptr<Archive> &UA = *AOrErr;
711 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
757 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile();
781 } else if (Expected<std::unique_ptr<Archive>> AOrErr =
783 std::unique_ptr<Archive> &UA = *AOrErr;
787 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary();
tools/llvm-special-case-list-fuzzer/special-case-list-fuzzer.cpp 15 std::unique_ptr<llvm::MemoryBuffer> Buf = llvm::MemoryBuffer::getMemBuffer(
tools/llvm-split/llvm-split.cpp 47 std::unique_ptr<Module> M = parseIRFile(InputFilename, Err, Context);
57 std::unique_ptr<ToolOutputFile> Out(
tools/llvm-stress/llvm-stress.cpp 684 std::vector<std::unique_ptr<Modifier>> Modifiers;
749 std::unique_ptr<ToolOutputFile> Out;
tools/llvm-strings/llvm-strings.cpp 110 ErrorOr<std::unique_ptr<MemoryBuffer>> Buffer =
tools/llvm-undname/llvm-undname.cpp 83 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
tools/llvm-xray/xray-fdr-dump.cpp 77 std::vector<std::unique_ptr<Record>> Records;
tools/lto/lto.cpp 132 LibLTOCodeGenerator(std::unique_ptr<LLVMContext> Context)
143 std::unique_ptr<MemoryBuffer> NativeObjectFile;
144 std::unique_ptr<LLVMContext> OwnedContext;
187 ErrorOr<std::unique_ptr<MemoryBuffer>> Buffer = MemoryBuffer::getFile(path);
195 std::unique_ptr<MemoryBuffer> Buffer(LTOModule::makeBuffer(mem, length));
212 std::unique_ptr<MemoryBuffer> buffer(LTOModule::makeBuffer(mem, length));
222 ErrorOr<std::unique_ptr<LTOModule>> M =
232 ErrorOr<std::unique_ptr<LTOModule>> M = LTOModule::createFromOpenFile(
245 ErrorOr<std::unique_ptr<LTOModule>> M = LTOModule::createFromOpenFileSlice(
255 ErrorOr<std::unique_ptr<LTOModule>> M =
267 ErrorOr<std::unique_ptr<LTOModule>> M = LTOModule::createFromBuffer(
280 std::unique_ptr<LLVMContext> Context = std::make_unique<LLVMContext>();
284 ErrorOr<std::unique_ptr<LTOModule>> M = LTOModule::createInLocalContext(
297 ErrorOr<std::unique_ptr<LTOModule>> M = LTOModule::createFromBuffer(
tools/obj2yaml/elf2yaml.cpp 977 std::unique_ptr<ELFYAML::Object> YAML(YAMLOrErr.get());
tools/obj2yaml/macho2yaml.cpp 29 void dumpHeader(std::unique_ptr<MachOYAML::Object> &Y);
30 void dumpLoadCommands(std::unique_ptr<MachOYAML::Object> &Y);
31 void dumpLinkEdit(std::unique_ptr<MachOYAML::Object> &Y);
32 void dumpRebaseOpcodes(std::unique_ptr<MachOYAML::Object> &Y);
35 void dumpExportTrie(std::unique_ptr<MachOYAML::Object> &Y);
36 void dumpSymbols(std::unique_ptr<MachOYAML::Object> &Y);
38 std::unique_ptr<MachOYAML::Object> &Y);
40 std::unique_ptr<MachOYAML::Object> &Y);
53 Expected<std::unique_ptr<MachOYAML::Object>> dump();
192 Expected<std::unique_ptr<MachOYAML::Object>> MachODumper::dump() {
199 std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(Obj);
205 void MachODumper::dumpHeader(std::unique_ptr<MachOYAML::Object> &Y) {
216 void MachODumper::dumpLoadCommands(std::unique_ptr<MachOYAML::Object> &Y) {
242 void MachODumper::dumpLinkEdit(std::unique_ptr<MachOYAML::Object> &Y) {
253 void MachODumper::dumpRebaseOpcodes(std::unique_ptr<MachOYAML::Object> &Y) {
461 void MachODumper::dumpExportTrie(std::unique_ptr<MachOYAML::Object> &Y) {
478 void MachODumper::dumpSymbols(std::unique_ptr<MachOYAML::Object> &Y) {
501 Expected<std::unique_ptr<MachOYAML::Object>> YAML = Dumper.dump();
535 Expected<std::unique_ptr<MachOYAML::Object>> YAMLObj = Dumper.dump();
tools/obj2yaml/wasm2yaml.cpp 28 std::unique_ptr<WasmYAML::CustomSection>
51 std::unique_ptr<WasmYAML::CustomSection>
53 std::unique_ptr<WasmYAML::CustomSection> CustomSec;
55 std::unique_ptr<WasmYAML::DylinkSection> DylinkSec =
65 std::unique_ptr<WasmYAML::NameSection> NameSec =
75 std::unique_ptr<WasmYAML::LinkingSection> LinkingSec =
136 std::unique_ptr<WasmYAML::ProducersSection> ProducersSec =
159 std::unique_ptr<WasmYAML::TargetFeaturesSection> TargetFeaturesSec =
184 std::unique_ptr<WasmYAML::Section> S;
383 std::unique_ptr<WasmYAML::Object> YAML(YAMLOrErr.get());
tools/opt/opt.cpp 557 Expected<std::unique_ptr<ToolOutputFile>> RemarksFileOrErr =
565 std::unique_ptr<ToolOutputFile> RemarksFile = std::move(*RemarksFileOrErr);
568 std::unique_ptr<Module> M =
602 std::unique_ptr<ToolOutputFile> Out;
603 std::unique_ptr<ToolOutputFile> ThinLinkOut;
648 std::unique_ptr<TargetMachine> TM(Machine);
709 std::unique_ptr<legacy::FunctionPassManager> FPasses;
863 std::unique_ptr<raw_svector_ostream> BOS;
897 std::unique_ptr<Module> M2(CloneModule(*M));
tools/polly/include/polly/CodeGen/IslAst.h 184 std::unique_ptr<IslAstInfo> Ast;
tools/polly/include/polly/DependenceInfo.h 196 std::unique_ptr<Dependences> D[Dependences::NumAnalysisLevels];
260 std::unique_ptr<Dependences> D[Dependences::NumAnalysisLevels];
297 using ScopToDepsMapTy = DenseMap<Scop *, std::unique_ptr<Dependences>>;
tools/polly/include/polly/ScopBuilder.h 62 std::unique_ptr<Scop> scop;
827 std::unique_ptr<Scop> getScop() { return std::move(scop); }
tools/polly/include/polly/ScopDetection.h 626 std::unique_ptr<ScopDetection> Result;
tools/polly/include/polly/ScopInfo.h 205 using AccFuncVector = std::vector<std::unique_ptr<MemoryAccess>>;
1803 std::unique_ptr<ScopArrayInfo>>;
1805 using ArrayNameMapTy = StringMap<std::unique_ptr<ScopArrayInfo>>;
2768 std::unique_ptr<Scop> S;
2797 using RegionToScopMapTy = MapVector<Region *, std::unique_ptr<Scop>>;
2879 std::unique_ptr<ScopInfo> Result;
tools/polly/lib/Analysis/DependenceInfo.cpp 923 std::unique_ptr<Dependences> D(new Dependences(S->getSharedIslCtx(), Level));
tools/polly/lib/Analysis/ScopDetection.cpp 1390 std::unique_ptr<Region> LastValidRegion;
tools/polly/lib/Analysis/ScopInfo.cpp 2736 std::unique_ptr<Scop> S = SB.getScop();
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 681 std::unique_ptr<ParallelLoopGenerator> ParallelLoopGenPtr;
tools/polly/lib/Exchange/JSONExporter.cpp 701 ErrorOr<std::unique_ptr<MemoryBuffer>> result =
tools/polly/lib/Support/DumpModulePass.cpp 64 std::unique_ptr<ToolOutputFile> Out;
tools/polly/lib/Transform/DeLICM.cpp 1357 std::unique_ptr<DeLICMImpl> Impl;
tools/polly/lib/Transform/ForwardOpTree.cpp 894 std::unique_ptr<ForwardOpTreeImpl> Impl;
tools/polly/unittests/DeLICM/DeLICMTest.cpp 160 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
181 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
tools/polly/unittests/Isl/IslTest.cpp 289 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> IslCtx(isl_ctx_alloc(),
388 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
502 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
549 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
594 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
627 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
655 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
672 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
692 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
711 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
722 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
749 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
853 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
976 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
1055 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
1076 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
1097 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> Ctx(isl_ctx_alloc(),
tools/polly/unittests/Support/ISLTools.cpp 12 std::unique_ptr<isl_ctx, decltype(&isl_ctx_free)> RawCtx(isl_ctx_alloc(),
tools/sancov/sancov.cpp 136 explicit RawCoverage(std::unique_ptr<std::set<uint64_t>> Addrs)
140 static ErrorOr<std::unique_ptr<RawCoverage>>
143 std::unique_ptr<std::set<uint64_t>> Addrs;
158 static std::unique_ptr<SymbolizedCoverage> read(const std::string &InputFile);
213 static void failIfEmpty(const std::unique_ptr<T> &Ptr,
229 ErrorOr<std::unique_ptr<RawCoverage>>
231 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
235 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
363 std::unique_ptr<SymbolizedCoverage>
368 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
462 static std::unique_ptr<symbolize::LLVMSymbolizer> createSymbolizer() {
498 static std::unique_ptr<SpecialCaseList> createDefaultBlacklist() {
501 std::unique_ptr<MemoryBuffer> MB =
509 static std::unique_ptr<SpecialCaseList> createUserBlacklist() {
515 std::unique_ptr<SpecialCaseList> DefaultBlacklist;
516 std::unique_ptr<SpecialCaseList> UserBlacklist;
713 std::unique_ptr<const MCSubtargetInfo> STI(
717 std::unique_ptr<const MCRegisterInfo> MRI(
722 std::unique_ptr<const MCAsmInfo> AsmInfo(
726 std::unique_ptr<const MCObjectFileInfo> MOFI(new MCObjectFileInfo);
728 std::unique_ptr<MCDisassembler> DisAsm(
732 std::unique_ptr<const MCInstrInfo> MII(TheTarget->createMCInstrInfo());
735 std::unique_ptr<const MCInstrAnalysis> MIA(
781 Expected<std::unique_ptr<object::Binary>> ChildOrErr = C.getAsBinary();
842 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
850 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
864 static std::unique_ptr<SymbolizedCoverage>
868 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
1006 std::vector<std::unique_ptr<RawCoverage>> Covs;
1015 static std::unique_ptr<SymbolizedCoverage>
1016 merge(const std::vector<std::unique_ptr<SymbolizedCoverage>> &Coverages) {
1048 static std::unique_ptr<SymbolizedCoverage>
1050 std::vector<std::unique_ptr<SymbolizedCoverage>> Coverages;
tools/sanstats/sanstats.cpp 127 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr =
134 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get());
tools/verify-uselistorder/verify-uselistorder.cpp 77 std::unique_ptr<Module> readBitcode(LLVMContext &Context) const;
78 std::unique_ptr<Module> readAssembly(LLVMContext &Context) const;
149 std::unique_ptr<Module> TempFile::readBitcode(LLVMContext &Context) const {
151 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOr =
160 Expected<std::unique_ptr<Module>> ModuleOr =
170 std::unique_ptr<Module> TempFile::readAssembly(LLVMContext &Context) const {
173 std::unique_ptr<Module> M = parseAssemblyFile(Filename, Err, Context);
343 std::unique_ptr<Module> OtherM) {
540 std::unique_ptr<Module> M = parseIRFile(InputFilename, Err, Context);
tools/yaml2obj/yaml2obj.cpp 53 std::unique_ptr<ToolOutputFile> Out(
60 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf =
unittests/ADT/DenseMapTest.cpp 584 DenseMap<int, std::unique_ptr<int>> Map;
585 std::unique_ptr<int> P(new int(2));
unittests/ADT/FunctionExtrasTest.cpp 47 unique_function<int(std::unique_ptr<int> &&)> ReadAndDeallocByRef =
53 std::unique_ptr<int> Ptr{new int(13)};
61 unique_function<int(std::unique_ptr<int>)> ReadAndDeallocByVal =
107 std::unique_ptr<int> A{new int(1)};
117 std::unique_ptr<int> A{new int(1)};
118 std::unique_ptr<int> B{new int(2)};
119 std::unique_ptr<int> C{new int(3)};
120 std::unique_ptr<int> D{new int(4)};
121 std::unique_ptr<int> E{new int(5)};
unittests/ADT/IteratorTest.cpp 109 SmallVector<std::unique_ptr<int>, 4> V;
116 SmallVectorImpl<std::unique_ptr<int>>::const_iterator>
212 std::unique_ptr<int> A[] = {std::make_unique<int>(0), std::make_unique<int>(1),
216 using PointeeIterator = pointee_iterator<std::unique_ptr<int> *>;
unittests/ADT/MapVectorTest.cpp 151 MapVector<int, std::unique_ptr<int>> MV;
308 SmallMapVector<int, std::unique_ptr<int>, 8> MV;
unittests/ADT/STLExtrasTest.cpp 454 std::unique_ptr<int> V2 = std::make_unique<int>(0);
unittests/Analysis/AliasAnalysisTest.cpp 101 std::unique_ptr<TestCustomAAResult> Result;
147 std::unique_ptr<AssumptionCache> AC;
148 std::unique_ptr<BasicAAResult> BAR;
149 std::unique_ptr<AAResults> AAR;
212 std::unique_ptr<Module> M;
unittests/Analysis/BlockFrequencyInfoTest.cpp 29 std::unique_ptr<BranchProbabilityInfo> BPI;
30 std::unique_ptr<DominatorTree> DT;
31 std::unique_ptr<LoopInfo> LI;
40 std::unique_ptr<Module> makeLLVMModule() {
unittests/Analysis/BranchProbabilityInfoTest.cpp 28 std::unique_ptr<BranchProbabilityInfo> BPI;
29 std::unique_ptr<DominatorTree> DT;
30 std::unique_ptr<LoopInfo> LI;
40 std::unique_ptr<Module> makeLLVMModule() {
unittests/Analysis/CFGTest.cpp 128 std::unique_ptr<Module> M;
unittests/Analysis/CGSCCPassManagerTest.cpp 160 std::unique_ptr<Module> parseIR(const char *IR) {
176 std::unique_ptr<Module> M;
623 std::unique_ptr<Module> M = parseIR("declare void @g()\n"
668 std::unique_ptr<Module> M = parseIR("declare void @g()\n"
unittests/Analysis/DivergenceAnalysisTest.cpp 50 std::unique_ptr<DominatorTree> DT;
51 std::unique_ptr<PostDominatorTree> PDT;
52 std::unique_ptr<LoopInfo> LI;
53 std::unique_ptr<SyncDependenceAnalysis> SDA;
113 std::unique_ptr<Module> M = parseAssemblyString(
163 std::unique_ptr<Module> M = parseAssemblyString(
217 std::unique_ptr<Module> M = parseAssemblyString(
386 std::unique_ptr<Module> M = parseAssemblyString(
unittests/Analysis/DomTreeUpdaterTest.cpp 23 static std::unique_ptr<Module> makeLLVMModule(LLVMContext &Context,
26 std::unique_ptr<Module> M = parseAssemblyString(ModuleStr, Err, Context);
50 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
161 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
235 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
324 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
453 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
536 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
625 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
714 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
744 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
unittests/Analysis/IVDescriptorsTest.cpp 38 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
40 std::unique_ptr<Module> Mod = parseAssemblyString(IR, Err, C);
54 std::unique_ptr<Module> M = parseIR(
unittests/Analysis/LazyCallGraphTest.cpp 24 std::unique_ptr<Module> parseAssembly(LLVMContext &Context,
27 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
229 std::unique_ptr<Module> M = parseAssembly(Context, DiamondOfTriangles);
404 std::unique_ptr<Module> M = parseAssembly(Context, "define void @a() {\n"
455 std::unique_ptr<Module> M = parseAssembly(Context, DiamondOfTriangles);
527 std::unique_ptr<Module> M = parseAssembly(Context, "define void @f1() {\n"
584 std::unique_ptr<Module> M = parseAssembly(Context, "define void @a() {\n"
749 std::unique_ptr<Module> M = parseAssembly(Context, DiamondOfTriangles);
840 std::unique_ptr<Module> M =
930 std::unique_ptr<Module> M = parseAssembly(Context, "define void @a() {\n"
1003 std::unique_ptr<Module> M =
1087 std::unique_ptr<Module> M = parseAssembly(Context, DiamondOfTriangles);
1218 std::unique_ptr<Module> M = parseAssembly(Context, "define void @a() {\n"
1305 std::unique_ptr<Module> M = parseAssembly(
1383 std::unique_ptr<Module> M = parseAssembly(
1453 std::unique_ptr<Module> M = parseAssembly(
1528 std::unique_ptr<Module> M = parseAssembly(Context, "define void @a() {\n"
1617 std::unique_ptr<Module> M =
1706 std::unique_ptr<Module> M =
1843 std::unique_ptr<Module> M =
1955 std::unique_ptr<Module> M =
1986 std::unique_ptr<Module> M =
2015 std::unique_ptr<Module> M =
2095 std::unique_ptr<Module> M =
unittests/Analysis/LoopInfoTest.cpp 48 static std::unique_ptr<Module> makeLLVMModule(LLVMContext &Context,
77 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
127 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
183 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
257 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
315 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
373 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
431 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
489 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
548 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
606 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
661 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
719 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
777 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
837 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
897 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
959 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1012 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1066 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1135 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1227 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1296 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1338 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1386 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
1429 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
unittests/Analysis/MemoryBuiltinsTest.cpp 35 std::unique_ptr<CallInst> Caller(
unittests/Analysis/MemorySSATest.cpp 47 std::unique_ptr<MemorySSA> MSSA;
59 std::unique_ptr<TestAnalyses> Analyses;
1433 std::unique_ptr<MemorySSAUpdater> MSSAU =
1495 std::unique_ptr<MemorySSAUpdater> MSSAU =
1567 std::unique_ptr<MemorySSAUpdater> MSSAU =
unittests/Analysis/OrderedBasicBlockTest.cpp 26 std::unique_ptr<Module> makeLLVMModule() {
unittests/Analysis/OrderedInstructionsTest.cpp 55 std::unique_ptr<DominatorTree> DT(new DominatorTree(*F));
unittests/Analysis/ProfileSummaryInfoTest.cpp 33 std::unique_ptr<BranchProbabilityInfo> BPI;
34 std::unique_ptr<DominatorTree> DT;
35 std::unique_ptr<LoopInfo> LI;
46 std::unique_ptr<Module> makeLLVMModule(const char *ProfKind = nullptr) {
unittests/Analysis/ScalarEvolutionTest.cpp 39 std::unique_ptr<AssumptionCache> AC;
40 std::unique_ptr<DominatorTree> DT;
41 std::unique_ptr<LoopInfo> LI;
220 std::unique_ptr<Module> M = parseAssemblyString(
481 std::unique_ptr<Module> M = parseAssemblyString(
1460 std::unique_ptr<Module> M =
1501 std::unique_ptr<Module> M = parseAssemblyString(
1579 std::unique_ptr<Module> M = parseAssemblyString(
1650 std::unique_ptr<Module> M = parseAssemblyString(str, Err, C);
1689 std::unique_ptr<Module> M = parseAssemblyString(
1759 std::unique_ptr<Module> M =
1798 std::unique_ptr<Module> M = parseAssemblyString(
1849 std::unique_ptr<Module> M = parseAssemblyString(
unittests/Analysis/TargetLibraryInfoTest.cpp 27 std::unique_ptr<Module> M;
unittests/Analysis/UnrollAnalyzerTest.cpp 62 std::unique_ptr<Module> makeLLVMModule(LLVMContext &Context,
88 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
151 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
196 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
243 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
289 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleStr);
unittests/Analysis/ValueTrackingTest.cpp 26 std::unique_ptr<Module> parseModule(StringRef Assembly) {
28 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
58 std::unique_ptr<Module> M;
unittests/Analysis/VectorUtilsTest.cpp 57 std::unique_ptr<Module> M;
63 std::unique_ptr<Module> M;
unittests/AsmParser/AsmParserTest.cpp 39 std::unique_ptr<Module> Mod;
unittests/Bitcode/BitReaderTest.cpp 27 std::unique_ptr<Module> parseAssembly(LLVMContext &Context,
30 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
43 static void writeModuleToBuffer(std::unique_ptr<Module> Mod,
49 static std::unique_ptr<Module> getLazyModuleFromAssembly(LLVMContext &Context,
53 Expected<std::unique_ptr<Module>> ModuleOrErr =
64 std::unique_ptr<Module> M = getLazyModuleFromAssembly(
128 std::unique_ptr<Module> M = getLazyModuleFromAssembly(
143 std::unique_ptr<Module> M = getLazyModuleFromAssembly(
170 std::unique_ptr<Module> M = getLazyModuleFromAssembly(
unittests/CodeGen/AArch64SelectionDAGTest.cpp 73 std::unique_ptr<LLVMTargetMachine> TM;
74 std::unique_ptr<Module> M;
76 std::unique_ptr<MachineFunction> MF;
77 std::unique_ptr<SelectionDAG> DAG;
unittests/CodeGen/GlobalISel/GISelMITest.h 57 static std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
70 static std::unique_ptr<Module> parseMIR(LLVMContext &Context,
71 std::unique_ptr<MIRParser> &MIR,
76 std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
81 std::unique_ptr<Module> M = MIR->parseIRModule();
93 static std::pair<std::unique_ptr<Module>, std::unique_ptr<MachineModuleInfo>>
93 static std::pair<std::unique_ptr<Module>, std::unique_ptr<MachineModuleInfo>>
113 std::unique_ptr<MIRParser> MIR;
115 std::unique_ptr<Module> M =
152 std::unique_ptr<LLVMTargetMachine> TM;
154 std::pair<std::unique_ptr<Module>, std::unique_ptr<MachineModuleInfo>>
154 std::pair<std::unique_ptr<Module>, std::unique_ptr<MachineModuleInfo>>
unittests/CodeGen/MachineInstrTest.cpp 144 std::unique_ptr<MCContext> createMCContext() {
149 std::unique_ptr<BogusTargetMachine> createTargetMachine() {
153 std::unique_ptr<MachineFunction> createMachineFunction() {
unittests/CodeGen/TargetOptionsTest.cpp 31 std::unique_ptr<TargetMachine> createTargetMachine(bool EnableIPRA) {
47 std::unique_ptr<TargetMachine> TM = createTargetMachine(EnableIPRA);
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp 196 static std::unique_ptr<GlobalTestState> GlobalState;
197 std::unique_ptr<PerTestState> TestState;
200 std::unique_ptr<RandomAccessVisitorTest::GlobalTestState>
unittests/DebugInfo/CodeView/TypeIndexDiscoveryTest.cpp 78 std::unique_ptr<AppendingTypeTableBuilder> TTB;
167 std::unique_ptr<ContinuationRecordBuilder> CRB;
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp 230 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
494 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
671 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
881 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1044 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1097 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1150 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1322 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1384 std::unique_ptr<DWARFContext> DwarfContext =
1433 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1502 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1705 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1769 std::unique_ptr<DWARFContext> DwarfContext = DWARFContext::create(**Obj);
1923 std::unique_ptr<DWARFContext> DwarfContext =
1972 std::unique_ptr<DWARFContext> DwarfContext =
2009 std::unique_ptr<DWARFContext> DwarfContext =
2046 std::unique_ptr<DWARFContext> DwarfContext =
2079 std::unique_ptr<DWARFContext> DwarfContext =
2127 std::unique_ptr<DWARFContext> DwarfContext =
2198 std::unique_ptr<DWARFContext> DwarfContext =
2270 std::unique_ptr<DWARFContext> DwarfContext =
2342 std::unique_ptr<DWARFContext> DwarfContext =
2419 std::unique_ptr<DWARFContext> DwarfContext =
2501 std::unique_ptr<DWARFContext> DwarfContext =
2535 std::unique_ptr<DWARFContext> Ctx1 =
2545 std::unique_ptr<DWARFContext> Ctx2 =
2604 std::unique_ptr<DWARFContext> DwarfContext =
2669 std::unique_ptr<DWARFContext> DwarfContext =
2726 std::unique_ptr<DWARFContext> DwarfContext =
2800 std::unique_ptr<DWARFContext> DwarfContext =
2850 std::unique_ptr<DWARFContext> DwarfContext =
2914 std::unique_ptr<DWARFContext> DwarfContext =
2981 std::unique_ptr<DWARFContext> DwarfContext =
3169 StringMap<std::unique_ptr<MemoryBuffer>> Sections;
unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp 58 std::unique_ptr<DWARFContext> createContext() {
133 std::unique_ptr<Generator> Gen;
134 std::unique_ptr<DWARFContext> Context;
142 SmallVector<std::unique_ptr<DWARFUnit>, 2> CUs;
143 SmallVector<std::unique_ptr<DWARFUnit>, 2> TUs;
unittests/DebugInfo/DWARF/DwarfGenerator.cpp 383 llvm::Expected<std::unique_ptr<dwarfgen::Generator>>
385 std::unique_ptr<dwarfgen::Generator> GenUP(new dwarfgen::Generator());
unittests/DebugInfo/DWARF/DwarfGenerator.h 238 std::unique_ptr<MCRegisterInfo> MRI;
239 std::unique_ptr<MCAsmInfo> MAI;
240 std::unique_ptr<MCContext> MC;
242 std::unique_ptr<MCInstrInfo> MII;
243 std::unique_ptr<MCSubtargetInfo> MSTI;
246 std::unique_ptr<TargetMachine> TM;
248 std::unique_ptr<AsmPrinter> Asm;
250 std::unique_ptr<DwarfStringPool> StringPool; // Entries owned by Allocator.
251 std::vector<std::unique_ptr<CompileUnit>> CompileUnits;
252 std::vector<std::unique_ptr<LineTable>> LineTables;
259 std::unique_ptr<raw_svector_ostream> Stream;
279 static llvm::Expected<std::unique_ptr<Generator>>
unittests/DebugInfo/PDB/NativeSymbolReuseTest.cpp 31 std::unique_ptr<IPDBSession> S;
58 std::unique_ptr<IPDBSession> S;
100 std::unique_ptr<IPDBSession> S;
unittests/DebugInfo/PDB/PDBApiTest.cpp 69 std::unique_ptr<PDBSymbolExe> getGlobalScope() override { return nullptr; }
70 std::unique_ptr<PDBSymbol> getSymbolById(SymIndexId SymbolId) const override {
73 std::unique_ptr<IPDBSourceFile>
85 std::unique_ptr<PDBSymbol>
89 std::unique_ptr<PDBSymbol> findSymbolByRVA(uint32_t RVA,
93 std::unique_ptr<PDBSymbol>
98 std::unique_ptr<IPDBEnumLineNumbers>
103 std::unique_ptr<IPDBEnumLineNumbers>
107 std::unique_ptr<IPDBEnumLineNumbers>
111 std::unique_ptr<IPDBEnumLineNumbers>
116 std::unique_ptr<IPDBEnumSourceFiles>
121 std::unique_ptr<IPDBSourceFile>
127 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
132 std::unique_ptr<PDBSymbolCompiland>
138 std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles() const override {
141 std::unique_ptr<IPDBEnumSourceFiles> getSourceFilesForCompiland(
146 std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const override {
150 std::unique_ptr<IPDBEnumTables> getEnumTables() const override {
154 std::unique_ptr<IPDBEnumInjectedSources> getInjectedSources() const override {
158 std::unique_ptr<IPDBEnumSectionContribs> getSectionContribs() const override {
162 std::unique_ptr<IPDBEnumFrameData> getFrameData() const override {
175 std::unique_ptr<IPDBEnumSymbols>
179 std::unique_ptr<IPDBEnumSymbols>
184 std::unique_ptr<IPDBEnumSymbols>
189 std::unique_ptr<IPDBEnumSymbols>
194 std::unique_ptr<IPDBEnumSymbols>
199 std::unique_ptr<IPDBEnumSymbols>
203 std::unique_ptr<IPDBEnumSymbols>
207 std::unique_ptr<IPDBEnumSymbols>
211 std::unique_ptr<IPDBEnumLineNumbers> findInlineeLines() const override {
214 std::unique_ptr<IPDBEnumLineNumbers>
219 std::unique_ptr<IPDBEnumLineNumbers>
223 std::unique_ptr<IPDBEnumLineNumbers>
238 std::unique_ptr<IPDBLineNumber> getSrcLineOnTypeDefn() const override {
408 std::unordered_map<PDB_SymType, std::unique_ptr<PDBSymbol>> SymbolMap;
464 std::unique_ptr<IPDBSession> Session;
unittests/ExecutionEngine/ExecutionEngineTest.cpp 48 std::unique_ptr<ExecutionEngine> Engine;
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp 19 Expected<std::unique_ptr<JITLinkTestCommon::TestResources>>
91 std::unique_ptr<MCCodeEmitter> CE(
96 std::unique_ptr<MCAsmBackend> MAB(
101 std::unique_ptr<MCObjectWriter> MOW(MAB->createObjectWriter(ObjStream));
107 std::unique_ptr<MCAsmParser> MAP(
109 std::unique_ptr<MCTargetAsmParser> TAP(
127 std::unique_ptr<JITLinkMemoryManager> MM) {
150 std::unique_ptr<JITLinkAsyncLookupContinuation> LC) {
183 std::unique_ptr<JITLinkMemoryManager::Allocation> A) {
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.h 43 static Expected<std::unique_ptr<TestResources>>
65 std::unique_ptr<MCRegisterInfo> MRI;
66 std::unique_ptr<MCAsmInfo> MAI;
67 std::unique_ptr<MCInstrInfo> MCII;
68 std::unique_ptr<MCSubtargetInfo> STI;
71 std::unique_ptr<MCContext> AsCtx;
72 std::unique_ptr<MCStreamer> MOS;
74 std::unique_ptr<MCContext> DisCtx;
75 std::unique_ptr<const MCDisassembler> Dis;
85 std::unique_ptr<jitlink::JITLinkMemoryManager::Allocation>)>;
98 setMemoryManager(std::unique_ptr<jitlink::JITLinkMemoryManager> MM);
108 std::unique_ptr<jitlink::JITLinkAsyncLookupContinuation> LC) override;
113 std::unique_ptr<jitlink::JITLinkMemoryManager::Allocation> A) override;
123 std::unique_ptr<MemoryBuffer> ObjBuffer;
124 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr;
135 Expected<std::unique_ptr<TestResources>>
unittests/ExecutionEngine/MCJIT/MCJITMemoryManagerTest.cpp 17 std::unique_ptr<SectionMemoryManager> MemMgr(new SectionMemoryManager());
50 std::unique_ptr<SectionMemoryManager> MemMgr(new SectionMemoryManager());
83 std::unique_ptr<SectionMemoryManager> MemMgr(new SectionMemoryManager());
118 std::unique_ptr<SectionMemoryManager> MemMgr(new SectionMemoryManager());
unittests/ExecutionEngine/MCJIT/MCJITMultipleModuleTest.cpp 92 std::unique_ptr<Module> A, B;
112 std::unique_ptr<Module> A, B;
133 std::unique_ptr<Module> A, B;
154 std::unique_ptr<Module> A, B;
174 std::unique_ptr<Module> A, B;
202 std::unique_ptr<Module> A, B;
251 std::unique_ptr<Module> A, B, C;
276 std::unique_ptr<Module> A, B, C;
301 std::unique_ptr<Module> A, B, C;
326 std::unique_ptr<Module> A, B, C;
351 std::unique_ptr<Module> A, B;
372 std::unique_ptr<Module> A, B;
393 std::unique_ptr<Module> A, B;
414 std::unique_ptr<Module> A, B;
unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp 35 std::unique_ptr<MemoryBuffer> getObject(const Module *M) override {
65 std::unique_ptr<MemoryBuffer> NewBuffer =
74 SmallVector<std::unique_ptr<MemoryBuffer>, 2> AllocatedBuffers;
123 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache);
152 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache);
186 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache);
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h 191 void createCrossModuleRecursiveCase(std::unique_ptr<Module> &A, Function *&FA,
192 std::unique_ptr<Module> &B,
216 createThreeModuleChainedCallsCase(std::unique_ptr<Module> &A, Function *&FA,
217 std::unique_ptr<Module> &B, Function *&FB,
218 std::unique_ptr<Module> &C, Function *&FC) {
234 void createTwoModuleCase(std::unique_ptr<Module> &A, Function *&FA,
235 std::unique_ptr<Module> &B, Function *&FB) {
245 void createTwoModuleExternCase(std::unique_ptr<Module> &A, Function *&FA,
246 std::unique_ptr<Module> &B, Function *&FB) {
258 void createThreeModuleCase(std::unique_ptr<Module> &A, Function *&FA,
259 std::unique_ptr<Module> &B, Function *&FB,
260 std::unique_ptr<Module> &C, Function *&FC) {
301 void createJIT(std::unique_ptr<Module> M) {
325 std::unique_ptr<ExecutionEngine> TheJIT;
326 std::unique_ptr<RTDyldMemoryManager> MM;
328 std::unique_ptr<Module> M;
unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp 1206 std::unique_ptr<MaterializationResponsibility> FooResponsibility;
unittests/ExecutionEngine/Orc/LegacyRTDyldObjectLinkingLayerTest.cpp 91 std::unique_ptr<TargetMachine> TM(
unittests/ExecutionEngine/Orc/OrcCAPITest.cpp 27 std::unique_ptr<Module> createTestModule(const Triple &TT) {
47 std::unique_ptr<MemoryBuffer> createTestObject() {
72 std::unique_ptr<Module> M;
101 std::unique_ptr<Module> M = createTestModule(TM->getTargetTriple());
141 std::unique_ptr<Module> M = createTestModule(TM->getTargetTriple());
unittests/ExecutionEngine/Orc/OrcTestCommon.h 160 std::unique_ptr<TargetMachine> TM;
176 std::unique_ptr<Module> takeModule() { return std::move(M); }
179 std::unique_ptr<Module> M;
unittests/ExecutionEngine/Orc/QueueChannel.h 167 inline std::pair<std::unique_ptr<QueueChannel>, std::unique_ptr<QueueChannel>>
167 inline std::pair<std::unique_ptr<QueueChannel>, std::unique_ptr<QueueChannel>>
unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp 32 static bool testSetProcessAllSections(std::unique_ptr<MemoryBuffer> Obj,
86 std::unique_ptr<TargetMachine> TM(EngineBuilder().selectTarget(
104 std::unique_ptr<TargetMachine> TM(
172 std::unique_ptr<TargetMachine> TM(
unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp 26 using ObjectPtr = std::unique_ptr<MemoryBuffer>;
unittests/FuzzMutate/OperationsTest.cpp 57 std::unique_ptr<Module> parseAssembly(
61 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
unittests/FuzzMutate/RandomIRBuilderTest.cpp 31 std::unique_ptr<Module> parseAssembly(
35 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
unittests/FuzzMutate/StrategiesTest.cpp 28 std::unique_ptr<IRMutator> createInjectorMutator() {
33 std::vector<std::unique_ptr<IRMutationStrategy>> Strategies;
41 std::unique_ptr<IRMutator> createDeleterMutator() {
46 std::vector<std::unique_ptr<IRMutationStrategy>> Strategies;
52 std::unique_ptr<Module> parseAssembly(
56 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
unittests/IR/AsmWriterTest.cpp 28 std::unique_ptr<BinaryOperator> Add(BinaryOperator::CreateAdd(Undef, Undef));
unittests/IR/BasicBlockTest.cpp 27 std::unique_ptr<BasicBlock> BB(BasicBlock::Create(Context));
30 std::unique_ptr<BasicBlock> BB1(BasicBlock::Create(Context));
32 std::unique_ptr<BasicBlock> BB2(BasicBlock::Create(Context));
unittests/IR/CFGBuilder.h 37 std::unique_ptr<LLVMContext> Context;
38 std::unique_ptr<Module> M;
unittests/IR/ConstantsTest.cpp 193 std::unique_ptr<Module> M(new Module("MyModule", Context));
306 std::unique_ptr<Module> M(new Module("MyModule", Context));
326 std::unique_ptr<Module> M(new Module("MyModule", Context));
351 std::unique_ptr<Module> M(new Module("MyModule", Context));
374 std::unique_ptr<Module> M(new Module("MyModule", Context));
400 std::unique_ptr<Module> M =
420 std::unique_ptr<Module> M(new Module("MyModule", Context));
443 std::unique_ptr<Module> M(new Module("MyModule", Context));
464 std::unique_ptr<Module> M(new Module("MyModule", Context));
574 std::unique_ptr<GlobalVariable> Global(
unittests/IR/DominatorTreeTest.cpp 38 static std::unique_ptr<Module> makeLLVMModule(LLVMContext &Context,
41 std::unique_ptr<Module> M = parseAssemblyString(ModuleStr, Err, Context);
73 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
293 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
377 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
471 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
560 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
634 std::unique_ptr<Module> M = makeLLVMModule(Context, ModuleString);
unittests/IR/FunctionTest.cpp 23 std::unique_ptr<Function> F(
51 std::unique_ptr<Function> F1(
53 std::unique_ptr<Function> F2(
144 std::unique_ptr<Function> Func(Function::Create(
unittests/IR/IRBuilderTest.cpp 44 std::unique_ptr<Module> M;
357 std::unique_ptr<Module> M(new Module("test", Ctx));
unittests/IR/InstructionsTest.cpp 32 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
34 std::unique_ptr<Module> Mod = parseAssemblyString(IR, Err, C);
78 std::unique_ptr<Module> M;
87 std::unique_ptr<CallInst> Call(CallInst::Create(F, Args));
105 std::unique_ptr<InvokeInst> Invoke(InvokeInst::Create(F, BB1, BB2, Args));
514 std::unique_ptr<CallInst> Call(
522 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone()));
533 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone()));
545 std::unique_ptr<CallInst> Call(
554 std::unique_ptr<CallInst> Clone(CallInst::Create(Call.get(), NewBundle));
571 std::unique_ptr<BasicBlock> NormalDest(BasicBlock::Create(C));
572 std::unique_ptr<BasicBlock> UnwindDest(BasicBlock::Create(C));
574 std::unique_ptr<InvokeInst> Invoke(
584 std::unique_ptr<InvokeInst> Clone(
696 std::unique_ptr<BasicBlock> BB1, BB2, BB3;
703 std::unique_ptr<BasicBlock> BB0(BasicBlock::Create(C));
759 std::unique_ptr<BasicBlock> BB1, BB2, BB3;
766 std::unique_ptr<BasicBlock> BB0(BasicBlock::Create(C));
1000 std::unique_ptr<Module> M = parseIR(C,
1069 std::unique_ptr<Module> M = parseIR(Context, R"(
unittests/IR/LegacyPassManagerTest.cpp 339 std::unique_ptr<Module> M(makeLLVMModule(Context));
unittests/IR/MetadataTest.cpp 491 std::unique_ptr<GlobalVariable> GV(
730 std::unique_ptr<GlobalVariable> GV(
753 std::unique_ptr<GlobalVariable> GV(
766 std::unique_ptr<GlobalVariable> GV2(
2530 std::unique_ptr<GlobalVariable> GV0(
2536 std::unique_ptr<GlobalVariable> GV1(
2591 std::unique_ptr<GlobalVariable> GV0(
2597 std::unique_ptr<GlobalVariable> GV1(
2608 std::unique_ptr<GlobalVariable> GV(
unittests/IR/ModuleTest.cpp 66 std::unique_ptr<RandomNumberGenerator> RNG = M.createRNG(&DP);
unittests/IR/PassBuilderCallbacksTest.cpp 265 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
381 std::unique_ptr<Module> M;
unittests/IR/PassManagerTest.cpp 144 std::unique_ptr<Module> parseIR(LLVMContext &Context, const char *IR) {
152 std::unique_ptr<Module> M;
unittests/IR/PatternMatch.cpp 35 std::unique_ptr<Module> M;
unittests/IR/TimePassesTest.cpp 129 std::unique_ptr<TimePassesHandler> TimePasses =
unittests/IR/UseTest.cpp 39 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
84 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
unittests/IR/UserTest.cpp 67 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
unittests/IR/ValueHandleTest.cpp 24 std::unique_ptr<BitCastInst> BitcastV;
342 std::unique_ptr<BinaryOperator> BitcastUser(BinaryOperator::CreateAdd(
363 std::unique_ptr<WeakTrackingVH> ToClear[2];
unittests/IR/ValueMapTest.cpp 26 std::unique_ptr<BitCastInst> BitcastV;
27 std::unique_ptr<BinaryOperator> AddV;
unittests/IR/ValueTest.cpp 37 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
48 std::unique_ptr<Module> M(new Module("TestModule", Ctx));
96 std::unique_ptr<Module> M(new Module("TestModule", Ctx));
127 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
202 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
237 std::unique_ptr<Module> M = parseAssemblyString(ModuleString, Err, C);
unittests/IR/WaymarkTest.cpp 29 std::unique_ptr<Function> F(
unittests/Linker/LinkModulesTest.cpp 64 std::unique_ptr<Module> M;
172 std::unique_ptr<Module> InternalM(getInternal(Ctx));
173 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx));
179 std::unique_ptr<Module> InternalM(getInternal(Ctx));
180 std::unique_ptr<Module> EmptyM(new Module("EmptyModule1", Ctx));
191 std::unique_ptr<Module> M1 = parseAssemblyString(M1Str, Err, C);
195 std::unique_ptr<Module> M2 = parseAssemblyString(M2Str, Err, C);
205 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
206 std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar"));
227 std::unique_ptr<Module> DestM(getExternal(Ctx, "foo"));
228 std::unique_ptr<Module> SourceM(getExternal(Ctx, "foo"));
252 std::unique_ptr<Module> Src = parseAssemblyString(SrcStr, Err, C);
332 std::unique_ptr<Module> Foo = parseAssemblyString(FooStr, Err, C);
340 std::unique_ptr<Module> Bar = parseAssemblyString(BarStr, Err, C);
unittests/MC/DwarfLineTables.cpp 25 std::unique_ptr<MCRegisterInfo> MRI;
26 std::unique_ptr<MCAsmInfo> MAI;
27 std::unique_ptr<MCContext> Ctx;
unittests/MC/MCInstPrinter.cpp 24 std::unique_ptr<MCRegisterInfo> MRI;
25 std::unique_ptr<MCAsmInfo> MAI;
26 std::unique_ptr<const MCInstrInfo> MII;
27 std::unique_ptr<MCInstPrinter> Printer;
unittests/MI/LiveIntervalTest.cpp 38 std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
51 std::unique_ptr<Module> parseMIR(LLVMContext &Context,
52 legacy::PassManagerBase &PM, std::unique_ptr<MIRParser> &MIR,
55 std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
60 std::unique_ptr<Module> M = MIR->parseIRModule();
132 std::unique_ptr<LLVMTargetMachine> TM = createTargetMachine();
149 std::unique_ptr<MIRParser> MIR;
150 std::unique_ptr<Module> M = parseMIR(Context, PM, MIR, *TM, MIRString,
unittests/Object/MinidumpTest.cpp 18 static Expected<std::unique_ptr<MinidumpFile>> create(ArrayRef<uint8_t> Data) {
620 Expected<std::unique_ptr<MinidumpFile>> File = create(HeaderTooBig);
unittests/ObjectYAML/MinidumpYAMLTest.cpp 18 static Expected<std::unique_ptr<object::MinidumpFile>>
unittests/ObjectYAML/YAML2ObjTest.cpp 26 std::unique_ptr<ObjectFile> Obj = yaml2ObjectFile(Storage, R"(
62 std::unique_ptr<ObjectFile> Obj = yaml2ObjectFile(Storage, Yaml, ErrHandler);
unittests/ProfileData/CoverageMappingTest.cpp 136 std::unique_ptr<IndexedInstrProfReader> ProfileReader;
138 std::unique_ptr<CoverageMapping> LoadedCoverage;
231 Expected<std::unique_ptr<CoverageMapping>> readOutputFunctions() {
232 std::vector<std::unique_ptr<CoverageMappingReader>> CoverageReaders;
unittests/ProfileData/InstrProfTest.cpp 40 std::unique_ptr<IndexedInstrProfReader> Reader;
44 void readProfile(std::unique_ptr<MemoryBuffer> Profile,
45 std::unique_ptr<MemoryBuffer> Remapping = nullptr) {
288 std::unique_ptr<Module> M(new Module("MyModule", Ctx));
697 std::unique_ptr<ValueProfData> VPData =
763 std::unique_ptr<ValueProfData> VPData =
892 std::unique_ptr<Module> M = std::make_unique<Module>("MyModule.cpp", Ctx);
unittests/ProfileData/SampleProfTest.cpp 39 std::unique_ptr<SampleProfileWriter> Writer;
40 std::unique_ptr<SampleProfileReader> Reader;
46 std::unique_ptr<raw_ostream> OS(
67 std::unique_ptr<raw_fd_ostream> OS(
161 std::unique_ptr<ProfileSymbolList> ReaderList =
unittests/Remarks/BitstreamRemarksParsingTest.cpp 28 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
33 std::unique_ptr<remarks::Remark> FromYAMLRemark = nullptr;
35 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
50 Expected<std::unique_ptr<remarks::RemarkSerializer>> BSSerializer =
58 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeBSParser =
63 std::unique_ptr<remarks::Remark> FromBSRemark = nullptr;
65 Expected<std::unique_ptr<remarks::Remark>> BSRemark = BSParser.next();
159 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
165 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
258 Expected<std::unique_ptr<remarks::RemarkSerializer>> BSSerializer =
326 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeBSParser =
332 Expected<std::unique_ptr<remarks::Remark>> BSRemark = BSParser.next();
unittests/Remarks/BitstreamRemarksSerializerTest.cpp 41 Expected<std::unique_ptr<remarks::RemarkSerializer>> MaybeSerializer = [&] {
49 std::unique_ptr<remarks::RemarkSerializer> Serializer =
60 std::unique_ptr<remarks::MetaSerializer> MetaSerializer =
unittests/Remarks/YAMLRemarksParsingTest.cpp 17 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
23 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
33 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
39 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
50 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
56 Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
76 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
401 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
407 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
572 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
579 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
648 Expected<std::unique_ptr<remarks::RemarkParser>> MaybeParser =
655 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
unittests/Remarks/YAMLRemarksSerializerTest.cpp 31 Expected<std::unique_ptr<remarks::RemarkSerializer>> MaybeS = [&] {
39 std::unique_ptr<remarks::RemarkSerializer> S = std::move(*MaybeS);
47 std::unique_ptr<remarks::MetaSerializer> MS =
unittests/Support/BinaryStreamTest.cpp 127 std::unique_ptr<BinaryStream> Input;
128 std::unique_ptr<WritableBinaryStream> Output;
unittests/Support/Casting.cpp 144 std::unique_ptr<const bar> BP(B2);
146 static_assert(std::is_same<std::unique_ptr<const foo>, decltype(FP)>::value,
164 std::unique_ptr<const bar> BP(fub());
196 std::unique_ptr<derived> newd() { return std::make_unique<derived>(); }
197 std::unique_ptr<base> newb() { return std::make_unique<derived>(); }
unittests/Support/ErrnoTest.cpp 33 std::unique_ptr<int> P(RetryAfterSignal(nullptr, [] { return new int(47); }));
unittests/Support/ErrorOrTest.cpp 39 ErrorOr<std::unique_ptr<int> > t3() {
60 ErrorOr<std::unique_ptr<B> > b1(ErrorOr<std::unique_ptr<D> >(nullptr));
63 ErrorOr<std::unique_ptr<int>> b2(ErrorOr<int *>(nullptr));
65 ErrorOr<std::unique_ptr<int>> b4(b3);
117 ErrorOr<std::unique_ptr<int>>>::value,
124 ErrorOr<std::unique_ptr<int>>>::value,
130 static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>&,
136 static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>&,
unittests/Support/ErrorTest.cpp 94 static Error handleCustomErrorUP(std::unique_ptr<CustomError> CE) {
98 static void handleCustomErrorUPVoid(std::unique_ptr<CustomError> CE) {}
629 Expected<std::unique_ptr<B>> A2(Expected<std::unique_ptr<D>>(nullptr));
unittests/Support/FileCheckTest.cpp 95 std::unique_ptr<FileCheckNumericVariableUse> FooVarUse =
99 std::unique_ptr<FileCheckNumericVariableUse> BarVarUse =
136 std::unique_ptr<MemoryBuffer> Buffer =
519 Expected<std::unique_ptr<FileCheckExpressionAST>> ExpressionAST =
unittests/Support/FileOutputBufferTest.cpp 45 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
48 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr;
67 Expected<std::unique_ptr<FileOutputBuffer>> Buffer2OrErr =
70 std::unique_ptr<FileOutputBuffer> &Buffer2 = *Buffer2OrErr;
84 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
87 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr;
105 Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
108 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr;
unittests/Support/LineIteratorTest.cpp 19 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n"
43 std::unique_ptr<MemoryBuffer> Buffer(
72 std::unique_ptr<MemoryBuffer> Buffer(
109 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n"
132 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n"
169 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("");
unittests/Support/MemoryBufferTest.cpp 68 typedef std::unique_ptr<MemoryBuffer> OwningBuffer;
unittests/Support/SourceMgrTest.cpp 25 std::unique_ptr<MemoryBuffer> MainBuffer =
unittests/Support/SpecialCaseListTest.cpp 20 std::unique_ptr<SpecialCaseList> makeSpecialCaseList(StringRef List,
22 std::unique_ptr<MemoryBuffer> MB = MemoryBuffer::getMemBuffer(List);
26 std::unique_ptr<SpecialCaseList> makeSpecialCaseList(StringRef List) {
46 std::unique_ptr<SpecialCaseList> SCL =
99 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("src:global\n"
118 std::unique_ptr<SpecialCaseList> SCL =
139 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("src:hello\n"
169 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("");
192 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("fun:b.r\n"
201 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("fun:*bar*\n"
210 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("fun:*bar*bar*bar*bar*\n"
220 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("src:*c\\+\\+abi*\n");
226 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("fun:*aaaaaa*\n"
236 std::unique_ptr<SpecialCaseList> SCL = makeSpecialCaseList("src:*c\\+\\+abi*\n"
unittests/Support/SymbolRemappingReaderTest.cpp 18 std::unique_ptr<MemoryBuffer> Buffer;
unittests/Support/TarWriterTest.cpp 48 Expected<std::unique_ptr<TarWriter>> TarOrErr = TarWriter::create(Path, Base);
50 std::unique_ptr<TarWriter> Tar = std::move(*TarOrErr);
55 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path);
57 std::unique_ptr<MemoryBuffer> MB = std::move(*MBOrErr);
129 Expected<std::unique_ptr<TarWriter>> TarOrErr = TarWriter::create(Path, "");
131 std::unique_ptr<TarWriter> Tar = std::move(*TarOrErr);
147 Expected<std::unique_ptr<TarWriter>> TarOrErr = TarWriter::create(Path, "");
149 std::unique_ptr<TarWriter> Tar = std::move(*TarOrErr);
166 Expected<std::unique_ptr<TarWriter>> TarOrErr = TarWriter::create(Path, "");
168 std::unique_ptr<TarWriter> Tar = std::move(*TarOrErr);
unittests/Support/TrigramIndexTest.cpp 22 std::unique_ptr<TrigramIndex> makeTrigramIndex(
24 std::unique_ptr<TrigramIndex> TI =
33 std::unique_ptr<TrigramIndex> TI =
40 std::unique_ptr<TrigramIndex> TI =
47 std::unique_ptr<TrigramIndex> TI =
56 std::unique_ptr<TrigramIndex> TI =
63 std::unique_ptr<TrigramIndex> TI =
73 std::unique_ptr<TrigramIndex> TI =
79 std::unique_ptr<TrigramIndex> TI =
85 std::unique_ptr<TrigramIndex> TI =
91 std::unique_ptr<TrigramIndex> TI =
97 std::unique_ptr<TrigramIndex> TI =
111 std::unique_ptr<TrigramIndex> TI =
117 std::unique_ptr<TrigramIndex> TI =
123 std::unique_ptr<TrigramIndex> TI =
unittests/Support/VirtualFileSystemTest.cpp 33 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
62 ErrorOr<std::unique_ptr<vfs::File>>
514 std::unique_ptr<vfs::FileSystem> BFS = vfs::createPhysicalFileSystem(),
1348 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer(Content);
unittests/Support/YAMLIOTest.cpp 2816 struct Seq : Poly, std::vector<std::unique_ptr<Poly>> {
2822 struct Map : Poly, llvm::StringMap<std::unique_ptr<Poly>> {
2832 static NodeKind getKind(const std::unique_ptr<Poly> &N) {
2842 static Scalar &getAsScalar(std::unique_ptr<Poly> &N) {
2848 static Seq &getAsSequence(std::unique_ptr<Poly> &N) {
2854 static Map &getAsMap(std::unique_ptr<Poly> &N) {
2923 static std::unique_ptr<Poly> &element(IO &IO, Seq &A, size_t Index) {
2935 std::unique_ptr<Poly> node = std::make_unique<Scalar>(true);
2960 std::unique_ptr<Poly> node;
2984 std::unique_ptr<Poly> node = llvm::unique_dyn_cast<Poly>(map);
2992 std::unique_ptr<Poly> node;
unittests/Support/YAMLParserTest.cpp 255 std::unique_ptr<MemoryBuffer> Buffer =
unittests/TableGen/CodeExpanderTest.cpp 19 std::unique_ptr<MemoryBuffer> Buffer =
unittests/Target/AArch64/InstSizes.cpp 13 std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
30 std::unique_ptr<AArch64InstrInfo> createInstrInfo(TargetMachine *TM) {
57 std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRString);
58 std::unique_ptr<MIRParser> MParser =
62 std::unique_ptr<Module> M = MParser->parseIRModule();
82 std::unique_ptr<LLVMTargetMachine> TM = createTargetMachine();
84 std::unique_ptr<AArch64InstrInfo> II = createInstrInfo(TM.get());
97 std::unique_ptr<LLVMTargetMachine> TM = createTargetMachine();
98 std::unique_ptr<AArch64InstrInfo> II = createInstrInfo(TM.get());
112 std::unique_ptr<LLVMTargetMachine> TM = createTargetMachine();
113 std::unique_ptr<AArch64InstrInfo> II = createInstrInfo(TM.get());
unittests/Target/WebAssembly/WebAssemblyExceptionInfoTest.cpp 24 std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
42 std::unique_ptr<Module> parseMIR(LLVMContext &Context,
43 std::unique_ptr<MIRParser> &MIR,
47 std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
52 std::unique_ptr<Module> M = MIR->parseIRModule();
67 std::unique_ptr<LLVMTargetMachine> TM = createTargetMachine();
157 std::unique_ptr<MIRParser> MIR;
159 std::unique_ptr<Module> M =
230 std::unique_ptr<LLVMTargetMachine> TM = createTargetMachine();
332 std::unique_ptr<MIRParser> MIR;
334 std::unique_ptr<Module> M =
unittests/Target/X86/MachineSizeOptsTest.cpp 29 std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
42 std::unique_ptr<LLVMTargetMachine> TM;
43 std::unique_ptr<MachineModuleInfo> MMI;
44 std::unique_ptr<MIRParser> Parser;
45 std::unique_ptr<Module> M;
47 std::unique_ptr<MachineDominatorTree> MDT;
48 std::unique_ptr<MachineLoopInfo> MLI;
49 std::unique_ptr<MachineBranchProbabilityInfo> MBPI;
50 std::unique_ptr<MachineBlockFrequencyInfo> MBFI;
68 std::unique_ptr<MemoryBuffer> MBuffer =
unittests/TextAPI/ELFYAMLTest.cpp 44 Expected<std::unique_ptr<ELFStub>> StubOrErr = readTBEFromBuffer(Data);
46 std::unique_ptr<ELFStub> Stub = std::move(StubOrErr.get());
69 Expected<std::unique_ptr<ELFStub>> StubOrErr = readTBEFromBuffer(Data);
71 std::unique_ptr<ELFStub> Stub = std::move(StubOrErr.get());
128 Expected<std::unique_ptr<ELFStub>> StubOrErr = readTBEFromBuffer(Data);
130 std::unique_ptr<ELFStub> Stub = std::move(StubOrErr.get());
143 Expected<std::unique_ptr<ELFStub>> StubOrErr = readTBEFromBuffer(Data);
unittests/Transforms/Scalar/LoopPassManagerTest.cpp 225 std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
233 std::unique_ptr<Module> M;
unittests/Transforms/Utils/BasicBlockUtilsTest.cpp 20 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
22 std::unique_ptr<Module> Mod = parseAssemblyString(IR, Err, C);
31 std::unique_ptr<Module> M = parseIR(
61 std::unique_ptr<Module> M = parseIR(
89 std::unique_ptr<Module> M = parseIR(
115 std::unique_ptr<Module> M = parseIR(
unittests/Transforms/Utils/CloningTest.cpp 372 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
374 std::unique_ptr<Module> Mod = parseAssemblyString(IR, Err, C);
384 std::unique_ptr<Module> M = parseIR(
unittests/Transforms/Utils/CodeExtractorTest.cpp 35 std::unique_ptr<Module> M(parseAssemblyString(R"invalid(
83 std::unique_ptr<Module> M(parseAssemblyString(R"invalid(
134 std::unique_ptr<Module> M(parseAssemblyString(R"invalid(
201 std::unique_ptr<Module> M(parseAssemblyString(R"invalid(
236 std::unique_ptr<Module> M(parseAssemblyString(R"ir(
unittests/Transforms/Utils/LocalTest.cpp 72 std::unique_ptr<Function> F(
105 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
107 std::unique_ptr<Module> Mod = parseAssemblyString(IR, Err, C);
118 std::unique_ptr<Module> M = parseIR(C,
179 std::unique_ptr<Module> M;
337 std::unique_ptr<Module> M = parseIR(C,
488 std::unique_ptr<Module> M;
587 std::unique_ptr<Module> M = parseIR(Ctx,
638 std::unique_ptr<Module> M = parseIR(Ctx,
827 std::unique_ptr<Module> M = parseIR(C,
unittests/Transforms/Utils/SizeOptsTest.cpp 32 std::unique_ptr<Module> M;
34 std::unique_ptr<DominatorTree> DT;
35 std::unique_ptr<LoopInfo> LI;
36 std::unique_ptr<BranchProbabilityInfo> BPI;
37 std::unique_ptr<BlockFrequencyInfo> BFI;
unittests/Transforms/Utils/UnrollLoopTest.cpp 23 static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {
25 std::unique_ptr<Module> Mod = parseAssemblyString(IR, Err, C);
34 std::unique_ptr<Module> M = parseIR(
unittests/Transforms/Utils/ValueMapperTest.cpp 69 std::unique_ptr<GlobalVariable> G0 = std::make_unique<GlobalVariable>(
71 std::unique_ptr<GlobalVariable> G1 = std::make_unique<GlobalVariable>(
176 std::unique_ptr<Function> F(
235 std::unique_ptr<Function> F(
254 std::unique_ptr<Function> F2(
270 std::unique_ptr<Function> F(
289 std::unique_ptr<Function> F(
331 std::unique_ptr<Function> F(
unittests/Transforms/Vectorize/VPlanSlpTest.cpp 25 std::unique_ptr<AssumptionCache> AC;
26 std::unique_ptr<ScalarEvolution> SE;
27 std::unique_ptr<AAResults> AARes;
28 std::unique_ptr<BasicAAResult> BasicAA;
29 std::unique_ptr<LoopAccessInfo> LAI;
30 std::unique_ptr<PredicatedScalarEvolution> PSE;
31 std::unique_ptr<InterleavedAccessInfo> IAI;
unittests/Transforms/Vectorize/VPlanTestBase.h 29 std::unique_ptr<LLVMContext> Ctx;
30 std::unique_ptr<Module> M;
31 std::unique_ptr<LoopInfo> LI;
32 std::unique_ptr<DominatorTree> DT;
unittests/XRay/FDRProducerConsumerTest.cpp 34 template <class RecordType> std::unique_ptr<Record> MakeRecord();
36 template <> std::unique_ptr<Record> MakeRecord<NewBufferRecord>() {
40 template <> std::unique_ptr<Record> MakeRecord<NewCPUIDRecord>() {
44 template <> std::unique_ptr<Record> MakeRecord<TSCWrapRecord>() {
48 template <> std::unique_ptr<Record> MakeRecord<WallclockRecord>() {
52 template <> std::unique_ptr<Record> MakeRecord<CustomEventRecord>() {
56 template <> std::unique_ptr<Record> MakeRecord<CallArgRecord>() {
60 template <> std::unique_ptr<Record> MakeRecord<PIDRecord>() {
64 template <> std::unique_ptr<Record> MakeRecord<FunctionRecord>() {
68 template <> std::unique_ptr<Record> MakeRecord<CustomEventRecordV5>() {
72 template <> std::unique_ptr<Record> MakeRecord<TypedEventRecord>() {
93 std::unique_ptr<FDRTraceWriter> Writer;
94 std::unique_ptr<Record> Rec;
116 std::unique_ptr<FDRTraceWriter> Writer;
117 std::unique_ptr<Record> Rec;
140 std::vector<std::unique_ptr<Record>> Records;
181 std::vector<std::unique_ptr<Record>> Records;
unittests/XRay/FDRRecordPrinterTest.cpp 24 static std::unique_ptr<Record> construct() {
32 static std::unique_ptr<Record> construct() {
40 static std::unique_ptr<Record> construct() {
48 static std::unique_ptr<Record> construct() {
56 static std::unique_ptr<Record> construct() {
66 static std::unique_ptr<Record> construct() {
76 static std::unique_ptr<Record> construct() {
84 static std::unique_ptr<Record> construct() {
92 static std::unique_ptr<Record> construct() {
104 std::unique_ptr<Record> R;
unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp 59 std::unique_ptr<MCSubtargetInfo> STI_;
unittests/tools/llvm-exegesis/Common/AssemblerUtils.h 63 std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp 65 std::unique_ptr<const MCSubtargetInfo> STI;
unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp 54 const std::unique_ptr<MCSubtargetInfo> STI(
unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp 54 std::unique_ptr<LLVMTargetMachine> TM;
55 std::unique_ptr<LLVMContext> Context;
56 std::unique_ptr<Module> Mod;
57 std::unique_ptr<MachineModuleInfo> MMI;
usr/include/c++/7.4.0/bits/locale_conv.h 307 unique_ptr<_Codecvt> _M_cvt;
528 unique_ptr<_Codecvt> _M_cvt;
usr/include/c++/7.4.0/bits/ptr_traits.h 141 pointer_to(__make_not_void<element_type>& __r) noexcept
usr/include/c++/7.4.0/bits/shared_ptr.h 277 shared_ptr(unique_ptr<_Yp, _Del>&& __r)
286 shared_ptr(unique_ptr<_Yp, _Del>&& __r)
332 _Assignable<unique_ptr<_Yp, _Del>>
333 operator=(unique_ptr<_Yp, _Del>&& __r)
usr/include/c++/7.4.0/bits/shared_ptr_base.h 653 __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0)
660 using _Ptr = typename unique_ptr<_Tp, _Del>::pointer;
1157 __shared_ptr(unique_ptr<_Yp, _Del>&& __r)
1173 __shared_ptr(unique_ptr<_Tp1, _Del>&& __r, __sp_array_delete)
1227 operator=(unique_ptr<_Yp, _Del>&& __r)
usr/include/c++/7.4.0/bits/unique_ptr.h 174 is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
238 unique_ptr(unique_ptr&& __u) noexcept
252 unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
280 unique_ptr&
281 operator=(unique_ptr&& __u) noexcept
300 unique_ptr&>::type
301 operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
309 unique_ptr&
381 swap(unique_ptr& __u) noexcept
388 unique_ptr(const unique_ptr&) = delete;
389 unique_ptr& operator=(const unique_ptr&) = delete;
389 unique_ptr& operator=(const unique_ptr&) = delete;
518 unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
560 operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
669 swap(unique_ptr<_Tp, _Dp>& __x,
670 unique_ptr<_Tp, _Dp>& __y) noexcept
683 operator==(const unique_ptr<_Tp, _Dp>& __x,
684 const unique_ptr<_Up, _Ep>& __y)
689 operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
694 operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
700 operator!=(const unique_ptr<_Tp, _Dp>& __x,
701 const unique_ptr<_Up, _Ep>& __y)
706 operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
711 operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
717 operator<(const unique_ptr<_Tp, _Dp>& __x,
718 const unique_ptr<_Up, _Ep>& __y)
721 std::common_type<typename unique_ptr<_Tp, _Dp>::pointer,
722 typename unique_ptr<_Up, _Ep>::pointer>::type _CT;
728 operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
729 { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
734 operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
735 { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
741 operator<=(const unique_ptr<_Tp, _Dp>& __x,
742 const unique_ptr<_Up, _Ep>& __y)
747 operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
752 operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
758 operator>(const unique_ptr<_Tp, _Dp>& __x,
759 const unique_ptr<_Up, _Ep>& __y)
764 operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
765 { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
770 operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
771 { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
777 operator>=(const unique_ptr<_Tp, _Dp>& __x,
778 const unique_ptr<_Up, _Ep>& __y)
783 operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
788 operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
793 struct hash<unique_ptr<_Tp, _Dp>>
794 : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>,
795 private __poison_hash<typename unique_ptr<_Tp, _Dp>::pointer>
798 operator()(const unique_ptr<_Tp, _Dp>& __u) const noexcept
800 typedef unique_ptr<_Tp, _Dp> _UP;
811 { typedef unique_ptr<_Tp> __single_object; };
815 { typedef unique_ptr<_Tp[]> __array; };
825 { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
831 { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); }
usr/include/c++/7.4.0/future 223 using _Ptr = unique_ptr<_Res, _Result_base::_Deleter>;
287 static _Ptr<_Result_alloc<_Res, _Allocator>>
300 static _Ptr<_Result<_Res>>
311 typedef _Ptr<_Result_base> _Ptr_type;
419 unique_ptr<_Make_ready> __mr{new _Make_ready};
1047 typedef __future_base::_Ptr<_Res_type> _Ptr_type;
1248 typedef __future_base::_Ptr<_Res_type> _Ptr_type;
1401 typedef __future_base::_Ptr<_Result<_Res>> _Ptr_type;
1601 typedef __future_base::_Ptr<_Result<_Res>> _Ptr_type;
1685 typedef __future_base::_Ptr<_Result<_Res>> _Ptr_type;
1711 future<__async_result_of<_Fn, _Args...>>
usr/include/c++/7.4.0/thread 72 using _State_ptr = unique_ptr<_State>;
usr/include/c++/7.4.0/tuple 1313 constexpr __tuple_element_t<__i, tuple<_Elements...>>&
1319 constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
1325 constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
utils/FileCheck/FileCheck.cpp 589 ErrorOr<std::unique_ptr<MemoryBuffer>> CheckFileOrErr =
609 ErrorOr<std::unique_ptr<MemoryBuffer>> InputFileOrErr =
utils/TableGen/AsmMatcherEmitter.cpp 547 MatchableInfo(std::unique_ptr<const CodeGenInstAlias> Alias)
723 std::vector<std::unique_ptr<MatchableInfo>> Matchables;
1569 std::vector<std::unique_ptr<MatchableInfo>> NewMatchables;
1935 std::vector<std::unique_ptr<MatchableInfo>> &Infos,
utils/TableGen/CodeGenDAGPatterns.h 1153 std::map<Record *, std::unique_ptr<TreePattern>, LessRecordByID>
1253 typedef std::map<Record *, std::unique_ptr<TreePattern>,
utils/TableGen/CodeGenRegisters.cpp 613 std::vector<std::unique_ptr<Record>> &SynthDefs;
615 TupleExpander(std::vector<std::unique_ptr<Record>> &SynthDefs)
utils/TableGen/CodeGenRegisters.h 570 std::vector<std::unique_ptr<Record>> SynthDefs;
utils/TableGen/CodeGenTarget.cpp 412 std::unique_ptr<CodeGenInstruction>> &Insts,
utils/TableGen/CodeGenTarget.h 52 std::unique_ptr<CodeGenInstruction>> Instructions;
53 mutable std::unique_ptr<CodeGenRegBank> RegBank;
61 mutable std::unique_ptr<CodeGenSchedModels> SchedModels;
140 DenseMap<const Record*, std::unique_ptr<CodeGenInstruction>> &
utils/TableGen/DAGISelEmitter.cpp 175 std::unique_ptr<Matcher> TheMatcher =
utils/TableGen/DAGISelMatcher.h 32 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher,
43 std::unique_ptr<Matcher> Next;
104 std::unique_ptr<Matcher> &getNextPtr() { return Next; }
utils/TableGen/DAGISelMatcherOpt.cpp 24 static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,
33 std::unique_ptr<Matcher> Child(Scope->takeChild(i));
187 static void FactorNodes(std::unique_ptr<Matcher> &InputMatcherPtr) {
190 std::unique_ptr<Matcher> *RebindableMatcherPtr = &InputMatcherPtr;
201 std::unique_ptr<Matcher> &MatcherPtr = *RebindableMatcherPtr;
209 std::unique_ptr<Matcher> Child(Scope->takeChild(i));
442 std::unique_ptr<Matcher> Scope(SM);
467 llvm::OptimizeMatcher(std::unique_ptr<Matcher> &MatcherPtr,
utils/TableGen/FixedLenDecoderEmitter.cpp 282 std::map<unsigned, std::unique_ptr<const FilterChooser>> FilterChooserMap;
utils/TableGen/GICombinerEmitter.cpp 192 std::vector<std::unique_ptr<CombineRule>> Rules;
193 std::unique_ptr<CombineRule> makeCombineRule(const Record &R);
195 void gatherRules(std::vector<std::unique_ptr<CombineRule>> &ActiveRules,
246 std::unique_ptr<CombineRule>
248 std::unique_ptr<CombineRule> Rule =
266 std::vector<std::unique_ptr<CombineRule>> &ActiveRules,
270 std::unique_ptr<CombineRule> Rule = makeCombineRule(*R);
utils/TableGen/GlobalISelEmitter.cpp 662 virtual std::unique_ptr<PredicateMatcher> popFirstCondition() = 0;
676 SmallVector<std::unique_ptr<PredicateMatcher>, 1> Conditions;
683 std::vector<std::unique_ptr<Matcher>> MatcherStorage;
725 std::unique_ptr<PredicateMatcher> popFirstCondition() override {
728 std::unique_ptr<PredicateMatcher> P = std::move(Conditions.front());
755 std::unique_ptr<PredicateMatcher> Condition = nullptr;
763 std::vector<std::unique_ptr<Matcher>> MatcherStorage;
777 std::unique_ptr<PredicateMatcher> popFirstCondition() override {
802 using ActionList = std::list<std::unique_ptr<MatchAction>>;
810 using MatchersTy = std::vector<std::unique_ptr<InstructionMatcher>> ;
846 std::vector<std::unique_ptr<PredicateMatcher>> EpilogueMatchers;
957 std::unique_ptr<PredicateMatcher> popFirstCondition() override;
988 using PredicatesTy = std::deque<std::unique_ptr<PredicateTy>>;
1014 std::unique_ptr<PredicateTy> predicates_pop_front() {
1015 std::unique_ptr<PredicateTy> Front = std::move(Predicates.front());
1021 void prependPredicate(std::unique_ptr<PredicateTy> &&Predicate) {
1028 std::logical_not<std::unique_ptr<PredicateTy>>());
2034 typedef std::vector<std::unique_ptr<OperandMatcher>> OperandVec;
2225 std::unique_ptr<InstructionMatcher> InsnMatcher;
2271 SmallVector<std::unique_ptr<PredicateMatcher>, 8> Stash;
2763 std::vector<std::unique_ptr<OperandRenderer>> OperandRenderers;
3386 std::vector<std::unique_ptr<Matcher>> &MatcherStorage);
4878 std::vector<std::unique_ptr<Matcher>> &MatcherStorage) {
4881 std::unique_ptr<GroupT> CurrentGroup = std::make_unique<GroupT>();
4957 std::vector<std::unique_ptr<Matcher>> MatcherStorage;
5384 std::unique_ptr<PredicateMatcher> RuleMatcher::popFirstCondition() {
5396 std::unique_ptr<PredicateMatcher> Result = std::move(OP);
utils/TableGen/SearchableTableEmitter.cpp 49 std::vector<std::unique_ptr<Entry>> Entries;
76 std::unique_ptr<SearchIndex> PrimaryKey;
77 SmallVector<std::unique_ptr<SearchIndex>, 2> Indices;
90 DenseMap<Init *, std::unique_ptr<CodeGenIntrinsic>> Intrinsics;
91 std::vector<std::unique_ptr<GenericEnum>> Enums;
135 std::unique_ptr<CodeGenIntrinsic> &Intr = Intrinsics[I];
181 std::unique_ptr<SearchIndex>
540 std::unique_ptr<SearchIndex>
637 SmallVector<std::unique_ptr<GenericTable>, 4> Tables;
utils/TableGen/X86DisassemblerTables.h 44 std::unique_ptr<ContextDecision> Tables[8];
utils/TableGen/X86RecognizableInstr.cpp 739 std::unique_ptr<ModRMFilter> filter;
utils/benchmark/src/benchmark.cc 191 std::unique_ptr<internal::ThreadManager> manager;
443 std::unique_ptr<BenchmarkReporter> CreateReporter(
445 typedef std::unique_ptr<BenchmarkReporter> PtrType;
501 std::unique_ptr<BenchmarkReporter> default_console_reporter;
502 std::unique_ptr<BenchmarkReporter> default_file_reporter;
utils/benchmark/src/benchmark_register.cc 73 size_t AddBenchmark(std::unique_ptr<Benchmark> family);
87 std::vector<std::unique_ptr<Benchmark>> families_;
96 size_t BenchmarkFamilies::AddBenchmark(std::unique_ptr<Benchmark> family) {
131 for (std::unique_ptr<Benchmark>& family : families_) {
219 std::unique_ptr<Benchmark> bench_ptr(bench);
utils/yaml-bench/YAMLBench.cpp 202 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =