Home
last modified time | relevance | path

Searched refs:NewName (Results 1 – 25 of 200) sorted by relevance

12345678

/external/swiftshader/third_party/subzero/src/
DIceMangling.cpp41 ManglerVector NewName(OldName.size() * 2); in incrementSubstitutions() local
67 NewName[NewPos++] = OldName[OldPos++]; // 'S' in incrementSubstitutions()
70 assert(NewName[NewPos - 1] == 'S'); in incrementSubstitutions()
76 NewName[NewPos++] = (Length ? '1' : '0'); in incrementSubstitutions()
78 NewName[NewPos++] = '0'; in incrementSubstitutions()
101 NewName[NewPos + Offset] = Ch; in incrementSubstitutions()
109 NewName[NewPos] = OldName[OldPos]; in incrementSubstitutions()
111 assert(NewName[NewPos] == '\0'); in incrementSubstitutions()
112 OldName = NewName; in incrementSubstitutions()
136 ManglerVector NewName(BufLen); in mangleName() local
[all …]
DIceCfgNode.h45 void setName(const std::string &NewName) { in setName() argument
46 if (NewName.empty()) in setName()
48 Name = NodeString::createWithString(Func, NewName); in setName()
/external/tensorflow/tensorflow/core/graph/
Dtestlib.cc38 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "_Send") in Send()
55 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "_Recv") in Recv()
68 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Const") in Constant()
85 return HostConstant(g, tensor, g->NewName("n")); in HostConstant()
99 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Variable") in Var()
118 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Assign") in Assign()
128 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Cumsum") in Cumsum()
140 TF_CHECK_OK(NodeBuilder(g->NewName("n"), reduce, g->op_registry()) in Reduce()
150 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "Quantize") in QuantizeToUINT8()
162 TF_CHECK_OK(NodeBuilder(g->NewName("n"), "MatMul") in Matmul()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DFunctionNamingCheck.cpp58 std::string NewName = Decl->getName().str(); in generateFixItHint() local
62 while (Index < NewName.size()) { in generateFixItHint()
63 char ch = NewName[Index]; in generateFixItHint()
67 NewName[Index] = toupper(NewName[Index]); in generateFixItHint()
75 NewName.erase(Index, 1); in generateFixItHint()
81 if (NewName != Name) in generateFixItHint()
84 llvm::StringRef(NewName)); in generateFixItHint()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DRenameTests.cpp79 std::string expectedResult(Annotations Test, llvm::StringRef NewName) { in expectedResult() argument
86 Result += NewName; in expectedResult()
827 llvm::StringRef NewName = "NewName"; in TEST() local
837 rename({RenamePos, NewName, AST, testPath(TU.Filename)}); in TEST()
842 expectedResult(Code, NewName)); in TEST()
853 llvm::StringRef NewName = "DummyName"; in TEST() member
1042 llvm::StringRef NewName = Case.NewName; in TEST() local
1044 rename({T.point(), NewName, AST, testPath(TU.Filename), Case.Index}); in TEST()
1059 expectedResult(T, NewName)); in TEST()
1082 llvm::StringRef NewName = "abcde"; in TEST() local
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/objc/
DPropertyDeclarationCheck.cpp43 auto NewName = Decl->getName().str(); in generateFixItHint() local
47 NewName.replace(0, Index - 1, Name.substr(0, Index - 1).lower()); in generateFixItHint()
50 NewName[Index] = tolower(NewName[Index]); in generateFixItHint()
51 if (NewName != Name) { in generateFixItHint()
54 llvm::StringRef(NewName)); in generateFixItHint()
/external/tensorflow/tensorflow/core/common_runtime/
Dlower_if_op.cc63 string NewName(const string& infix);
122 then_call_builder_(NewName("then"), then_fn.name(), graph->op_registry(), in CondBuilder()
124 else_call_builder_(NewName("else"), else_fn.name(), graph->op_registry(), in CondBuilder()
153 SetColocationAndFinalize(NodeBuilder(NewName("switch_pred"), "Switch", in CreatePivotNodes()
161 SetColocationAndFinalize(NodeBuilder(NewName("pivot_f"), "Identity", in CreatePivotNodes()
167 SetColocationAndFinalize(NodeBuilder(NewName("pivot_t"), "Identity", in CreatePivotNodes()
175 string CondBuilder::NewName(const string& infix) { in NewName() function in tensorflow::__anon5deaa8580111::CondBuilder
176 return graph_->NewName(strings::StrCat(name_, "/", infix)); in NewName()
195 NodeBuilder(NewName(src->name()), "Switch", graph_->op_registry(), in AddInput()
240 NodeBuilder(NewName("output"), "Merge", graph_->op_registry(), in AddOutputs()
[all …]
Dlower_while_op.cc127 string NewName(const string& infix);
187 cond_call_builder_(NewName("cond"), cond_fn.name(), graph->op_registry(), in LowerWhileHelper()
189 body_call_builder_(NewName("body"), body_fn.name(), graph->op_registry(), in LowerWhileHelper()
242 NodeBuilder(NewName("enter"), "Enter", graph_->op_registry(), in CreateEnterNodes()
265 TF_RETURN_IF_ERROR(NodeBuilder(NewName("LoopControlInputs"), "NoOp", in CreateEnterNodes()
284 NodeBuilder(NewName("merge"), "Merge", graph_->op_registry(), in CreateMergeNodes()
310 TF_RETURN_IF_ERROR(NodeBuilder(NewName("LoopCond"), "LoopCond", in CreateCondFuncCallNode()
335 TF_RETURN_IF_ERROR(NodeBuilder(NewName(op_name), op_type, in CreateSwitchNodes()
370 TF_RETURN_IF_ERROR(NodeBuilder(NewName("loop_body_control"), op_type, in CreateBodyFuncCallNode()
392 NodeBuilder(NewName("exit"), "Exit", graph_->op_registry(), in CreateExitNodes()
[all …]
Dlower_case_op.cc61 string NewName(const string& infix);
109 branch_call_builders_.emplace_back(NewName(strings::StrCat("branch", b)), in CaseBuilder()
122 TF_RETURN_IF_ERROR(NodeBuilder(NewName("branch_index"), "_SwitchN", in CreatePivotNodes()
132 TF_RETURN_IF_ERROR(NodeBuilder(NewName(strings::StrCat("pivot_", b)), in CreatePivotNodes()
142 string CaseBuilder::NewName(const string& infix) { in NewName() function in tensorflow::__anon74dd97450111::CaseBuilder
143 return graph_->NewName(strings::StrCat(name_, "/", infix)); in NewName()
158 TF_RETURN_IF_ERROR(NodeBuilder(NewName(src->name()), "_SwitchN", in AddInput()
209 TF_RETURN_IF_ERROR(NodeBuilder(NewName("merge"), "Merge", in AddOutputs()
231 TF_RETURN_IF_ERROR(NodeBuilder(NewName("branch_executed"), "Merge", in AddOutputs()
/external/clang/lib/Tooling/Core/
DLookup.cpp50 StringRef NewName, in getBestNamespaceSubstr() argument
58 return HadLeadingColonColon ? NewName : NewName.substr(2); in getBestNamespaceSubstr()
65 if (NewName.startswith(NS)) in getBestNamespaceSubstr()
66 return NewName.substr(NS.size()); in getBestNamespaceSubstr()
/external/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/
DRenamingAction.h53 std::string NewName);
60 RenameOccurrences(const NamedDecl *ND, std::string NewName) in RenameOccurrences() argument
61 : ND(ND), NewName(std::move(NewName)) {} in RenameOccurrences()
67 std::string NewName; variable
96 const SourceManager &SM, const SymbolName &NewName);
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DOverlappingReplacementsTest.cpp77 std::string NewName = newName(VD->getName()); in check() local
80 << VD->getName() << NewName in check()
84 NewName); in check()
88 UsageVisitor(const ValueDecl *VD, StringRef NewName, in check() argument
90 : VD(VD), NewName(NewName), Diag(Diag) {} in check()
95 CharSourceRange::getTokenRange(E->getSourceRange()), NewName); in check()
103 StringRef NewName; in check() member in clang::tidy::test::__anon87b7b5e10111::RefactorCheck::check::UsageVisitor
107 UsageVisitor(VD, NewName, Diag) in check()
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRLocFinder.cpp511 llvm::StringRef NewName, Decl *TranslationUnitDecl) { in createRenameAtomicChanges() argument
533 std::string ReplacedName = NewName.str(); in createRenameAtomicChanges()
536 size_t LastColonPos = NewName.find_last_of(':'); in createRenameAtomicChanges()
538 ReplacedName = std::string(NewName.substr(LastColonPos + 1)); in createRenameAtomicChanges()
546 NewName.startswith("::") ? NewName.str() in createRenameAtomicChanges()
547 : ("::" + NewName).str()); in createRenameAtomicChanges()
562 if (ActualName.startswith("::") && !NewName.startswith("::")) { in createRenameAtomicChanges()
563 ReplacedName = "::" + NewName.str(); in createRenameAtomicChanges()
568 if (NewName.startswith("::") && NewName.substr(2) == ReplacedName) in createRenameAtomicChanges()
569 ReplacedName = NewName.str(); in createRenameAtomicChanges()
[all …]
DRenamingAction.cpp67 SourceRange SelectionRange, std::string NewName) { in initiate() argument
74 std::move(NewName)); in initiate()
85 SymbolName Name(NewName); in createSourceReplacements()
146 const SourceManager &SM, const SymbolName &NewName) { in createRenameReplacements() argument
151 assert(NewName.getNamePieces().size() == Ranges.size() && in createRenameReplacements()
157 NewName.getNamePieces()[Range.index()]); in createRenameReplacements()
204 void HandleOneRename(ASTContext &Context, const std::string &NewName, in HandleOneRename() argument
222 SymbolName NewNameRef(NewName); in HandleOneRename()
/external/swiftshader/third_party/subzero/unittest/AssemblerX8664/
DTestUtil.h54 #define LegacyRegAliases(NewName, Name64, Name32, Name16, Name8) \ argument
55 static constexpr GPRRegister Encoded_GPR_##NewName() { \
58 static constexpr GPRRegister Encoded_GPR_##NewName##q() { \
61 static constexpr GPRRegister Encoded_GPR_##NewName##d() { \
64 static constexpr GPRRegister Encoded_GPR_##NewName##w() { \
67 static constexpr GPRRegister Encoded_GPR_##NewName##l() { \
70 static constexpr ByteRegister Encoded_Bytereg_##NewName() { \
760 #define LegacyRegAccessors(NewName, Name64, Name32, Name16, Name8) \ argument
761 static_assert(Encoded_GPR_##NewName() == Encoded_GPR_##Name64(), \
763 uint64_t NewName() const { \
[all …]
/external/llvm-project/clang/unittests/Rename/
DRenameClassTest.cpp197 std::string NewName = Param.NewName.empty() ? "b::Bar" : Param.NewName; in TEST_P() local
198 std::string Actual = runClangRenameOnCode(Param.Before, OldName, NewName); in TEST_P()
306 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
402 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
DClangRenameTest.h41 std::string NewName; member
51 llvm::StringRef NewName) { in runClangRenameOnCode() argument
73 std::vector<std::string> NewNames = {std::string(NewName)}; in runClangRenameOnCode()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DReplaceRandomShuffleCheck.cpp85 std::string NewName = "shuffle"; in check() local
90 NewName = "std::" + NewName; in check()
93 Diag << FixItHint::CreateInsertion(MatchedDecl->getBeginLoc(), NewName); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DNamedParameterCheck.cpp93 StringRef NewName = "unused"; in check() local
103 NewName = Name; in check()
111 NewName = Name; in check()
119 " /*" + NewName.str() + "*/"); in check()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DLookup.cpp86 StringRef NewName, in getBestNamespaceSubstr() argument
94 return HadLeadingColonColon ? NewName : NewName.substr(2); in getBestNamespaceSubstr()
101 if (NewName.startswith(NS)) in getBestNamespaceSubstr()
102 return NewName.substr(NS.size()); in getBestNamespaceSubstr()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_relu_op_test.cc62 TF_CHECK_OK(NodeBuilder(graph->NewName(node_name), op_name) in Activation()
69 TF_CHECK_OK(NodeBuilder(graph->NewName(node_name), "_Mkl" + op_name) in Activation()
83 TF_CHECK_OK(NodeBuilder(graph->NewName(node_name), op_name) in Activation()
92 TF_CHECK_OK(NodeBuilder(graph->NewName(node_name), "_Mkl" + op_name) in Activation()
/external/llvm-project/clang/tools/clang-rename/
DClangRename.cpp45 std::string NewName; member
59 IO.mapRequired("NewName", Info.NewName); in mapping()
121 NewNames.push_back(Info.NewName); in main()
142 for (const auto &NewName : NewNames) { in main() local
143 auto NewNameTokKind = Table.get(NewName).getTokenID(); in main()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.cpp394 llvm::StringRef NewName) { in checkName() argument
400 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName()
401 Result = InvalidName{InvalidName::Keywords, NewName.str()}; in checkName()
406 if (auto *Conflict = lookupSiblingWithName(ASTCtx, RenameDecl, NewName)) in checkName()
420 llvm::StringRef NewName) { in renameWithinFile() argument
444 SM, CharSourceRange::getTokenRange(RenameLoc), NewName))) in renameWithinFile()
514 llvm::StringRef NewName, const SymbolIndex &Index, size_t MaxLimitFiles, in renameOutsideFile() argument
543 buildRenameEdit(FilePath, *AffectedFileCode, *RenameRanges, NewName); in renameOutsideFile()
643 if (ID->getName() == RInputs.NewName) in rename()
645 auto Invalid = checkName(RenameDecl, RInputs.NewName); in rename()
[all …]
/external/llvm/lib/IR/
DGlobals.cpp112 std::string NewName = Name; in getGlobalIdentifier() local
119 NewName = NewName.insert(0, "<unknown>:"); in getGlobalIdentifier()
121 NewName = NewName.insert(0, FileName.str() + ":"); in getGlobalIdentifier()
123 return NewName; in getGlobalIdentifier()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineInline.cpp241 std::string NewName; in renameParameters() local
248 NewName = " "; in renameParameters()
250 NewName.append(std::string(SourceParam->getName())); in renameParameters()
251 ParamToNewName[DestParam->getCanonicalDecl()] = std::move(NewName); in renameParameters()
296 llvm::StringRef NewName = ParamToNewName[OldDecl]; in renameParameters() local
318 tooling::Replacement(SM, ReplaceRange, NewName))) { in renameParameters()
321 OldName, NewName, Err); in renameParameters()

12345678