Home
last modified time | relevance | path

Searched refs:NewVar (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DUnnecessaryCopyInitialization.cpp97 const auto *NewVar = Result.Nodes.getNodeAs<VarDecl>("newVarDecl"); in check() local
111 !NewVar->getLocation().isMacroID(); in check()
126 handleCopyFromMethodReturn(*NewVar, *BlockStmt, IssueFix, ObjectArg, in check()
129 handleCopyFromLocalVar(*NewVar, *OldVar, *BlockStmt, IssueFix, in check()
158 const VarDecl &NewVar, const VarDecl &OldVar, const Stmt &BlockStmt, in handleCopyFromLocalVar() argument
160 if (!isOnlyUsedAsConst(NewVar, BlockStmt, Context) || in handleCopyFromLocalVar()
164 auto Diagnostic = diag(NewVar.getLocation(), in handleCopyFromLocalVar()
167 << &NewVar << &OldVar; in handleCopyFromLocalVar()
169 recordFixes(NewVar, Context, Diagnostic); in handleCopyFromLocalVar()
DUnnecessaryCopyInitialization.h40 void handleCopyFromLocalVar(const VarDecl &NewVar, const VarDecl &OldVar,
/external/swiftshader/third_party/subzero/src/
DIceVariableSplitting.cpp105 Variable *NewVar = Func->makeVariable(Var->getType()); in makeLinked() local
106 NewVar->setRegClass(Var->getRegClass()); in makeLinked()
107 NewVar->setLinkedTo(get(Var)); in makeLinked()
109 Map[VarNum].MappedVar = NewVar; in makeLinked()
111 return NewVar; in makeLinked()
DIceCfg.cpp780 auto *NewVar = makeVariable(Pair.first->getType()); in floatConstantCSE() local
783 auto *Assign = InstAssign::create(Node->getCfg(), NewVar, Pair.first); in floatConstantCSE()
785 ConstCache[Pair.first] = NewVar; in floatConstantCSE()
788 auto *NewVar = makeVariable(Pair.first->getType()); in floatConstantCSE() local
789 NewVar->setLinkedTo(ConstCache[Pair.first]); in floatConstantCSE()
791 InstAssign::create(Node->getCfg(), NewVar, ConstCache[Pair.first]); in floatConstantCSE()
798 InstUse->replaceSource(i, NewVar); in floatConstantCSE()
DIceTargetLowering.cpp631 Variable *NewVar = Func->makeVariable(Var->getType()); in postRegallocSplitting() local
633 NewVar->setLiveRange(LR); in postRegallocSplitting()
635 VarInfo[NewVar] = Info; in postRegallocSplitting()
637 ExtraVars.insert(NewVar); in postRegallocSplitting()
DIceTargetLoweringX86BaseImpl.h7997 Variable *NewVar = makeReg(Ty, RegNum);
8001 _lea(NewVar, _sandbox_mem_reference(Mem));
8002 From = NewVar;
8048 Variable *NewVar = makeReg(Ty, RegNum);
8053 _lea(NewVar, Mem);
8054 From = NewVar;
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp3785 VarDecl *NewVar, VarDecl *OldVar, in BuildVariableInstantiation() argument
3797 NewVar->setLocalExternDecl(); in BuildVariableInstantiation()
3798 NewVar->setLexicalDeclContext(Owner); in BuildVariableInstantiation()
3800 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation()
3801 NewVar->setTSCSpec(OldVar->getTSCSpec()); in BuildVariableInstantiation()
3802 NewVar->setInitStyle(OldVar->getInitStyle()); in BuildVariableInstantiation()
3803 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); in BuildVariableInstantiation()
3804 NewVar->setConstexpr(OldVar->isConstexpr()); in BuildVariableInstantiation()
3805 NewVar->setInitCapture(OldVar->isInitCapture()); in BuildVariableInstantiation()
3806 NewVar->setPreviousDeclInSameBlockScope( in BuildVariableInstantiation()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp4962 VarDecl *NewVar, VarDecl *OldVar, in BuildVariableInstantiation() argument
4972 isa<VarTemplatePartialSpecializationDecl>(NewVar); in BuildVariableInstantiation()
4976 isa<VarTemplateSpecializationDecl>(NewVar) && in BuildVariableInstantiation()
4986 NewVar->setLocalExternDecl(); in BuildVariableInstantiation()
4987 NewVar->setLexicalDeclContext(Owner); in BuildVariableInstantiation()
4989 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation()
4990 NewVar->setTSCSpec(OldVar->getTSCSpec()); in BuildVariableInstantiation()
4991 NewVar->setInitStyle(OldVar->getInitStyle()); in BuildVariableInstantiation()
4992 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); in BuildVariableInstantiation()
4993 NewVar->setObjCForDecl(OldVar->isObjCForDecl()); in BuildVariableInstantiation()
[all …]
/external/llvm-project/llvm/test/CodeGen/ARM/
Dregcoal-invalid-subrange-update.mir13 # NewVar: <5 x s64> dsub_0 dsub_1 dsub_2 dsub_3 dsub_4
17 # In other %5.dsub_0 needs to be mapped to NewVar.dsub_2, %5.dsub_1
18 # to NewVar.dsub_3 and so on. So essentially we are offseting %5 by
/external/llvm-project/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp1534 DINode *&NewVar = RemappedMetadata[OldVar]; in fixupDebugInfoPostExtraction() local
1535 if (!NewVar) in fixupDebugInfoPostExtraction()
1536 NewVar = DIB.createAutoVariable( in fixupDebugInfoPostExtraction()
1540 DVI->setArgOperand(1, MetadataAsValue::get(Ctx, NewVar)); in fixupDebugInfoPostExtraction()
/external/clang/include/clang/Sema/
DSema.h7277 BuildVariableInstantiation(VarDecl *NewVar, VarDecl *OldVar,
/external/llvm-project/clang/include/clang/Sema/
DSema.h9265 BuildVariableInstantiation(VarDecl *NewVar, VarDecl *OldVar,