/external/llvm/lib/Support/ |
D | Regex.cpp | 98 std::string Regex::sub(StringRef Repl, StringRef String, in sub() argument 114 while (!Repl.empty()) { in sub() 116 std::pair<StringRef, StringRef> Split = Repl.split('\\'); in sub() 123 if (Repl.size() != Split.first.size() && in sub() 130 Repl = Split.second; in sub() 133 switch (Repl[0]) { in sub() 136 Res += Repl[0]; in sub() 137 Repl = Repl.substr(1); in sub() 143 Repl = Repl.substr(1); in sub() 147 Repl = Repl.substr(1); in sub() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Regex.cpp | 110 std::string Regex::sub(StringRef Repl, StringRef String, in sub() argument 126 while (!Repl.empty()) { in sub() 128 std::pair<StringRef, StringRef> Split = Repl.split('\\'); in sub() 135 if (Repl.size() != Split.first.size() && in sub() 142 Repl = Split.second; in sub() 145 switch (Repl[0]) { in sub() 148 Res += Repl[0]; in sub() 149 Repl = Repl.substr(1); in sub() 155 Repl = Repl.substr(1); in sub() 159 Repl = Repl.substr(1); in sub() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Regex.cpp | 132 std::string Regex::sub(StringRef Repl, StringRef String, in sub() argument 145 while (!Repl.empty()) { in sub() 147 std::pair<StringRef, StringRef> Split = Repl.split('\\'); in sub() 154 if (Repl.size() != Split.first.size() && in sub() 161 Repl = Split.second; in sub() 164 switch (Repl[0]) { in sub() 167 Res += Repl[0]; in sub() 168 Repl = Repl.substr(1); in sub() 174 Repl = Repl.substr(1); in sub() 178 Repl = Repl.substr(1); in sub() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | Regex.cpp | 136 std::string Regex::sub(StringRef Repl, StringRef String, in sub() argument 149 while (!Repl.empty()) { in sub() 151 std::pair<StringRef, StringRef> Split = Repl.split('\\'); in sub() 158 if (Repl.size() != Split.first.size() && in sub() 165 Repl = Split.second; in sub() 168 switch (Repl[0]) { in sub() 171 Res += Repl[0]; in sub() 172 Repl = Repl.substr(1); in sub() 178 Repl = Repl.substr(1); in sub() 182 Repl = Repl.substr(1); in sub() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | GVNHoist.cpp | 498 void makeGepsAvailable(Instruction *Repl, BasicBlock *HoistPt, 502 void updateAlignment(Instruction *I, Instruction *Repl); 506 unsigned rauw(const SmallVecInsn &Candidates, Instruction *Repl, 513 unsigned removeAndReplace(const SmallVecInsn &Candidates, Instruction *Repl, 519 bool makeGepOperandsAvailable(Instruction *Repl, BasicBlock *HoistPt, 957 void GVNHoist::makeGepsAvailable(Instruction *Repl, BasicBlock *HoistPt, in makeGepsAvailable() argument 995 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable() 998 void GVNHoist::updateAlignment(Instruction *I, Instruction *Repl) { in updateAlignment() argument 999 if (auto *ReplacementLoad = dyn_cast<LoadInst>(Repl)) { in updateAlignment() 1003 } else if (auto *ReplacementStore = dyn_cast<StoreInst>(Repl)) { in updateAlignment() [all …]
|
D | GVN.cpp | 1732 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument 1733 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith() 1734 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith() 2270 Value *Repl = findLeader(I->getParent(), Num); in processInstruction() local 2271 if (!Repl) { in processInstruction() 2275 } else if (Repl == I) { in processInstruction() 2282 patchAndReplaceAllUsesWith(I, Repl); in processInstruction() 2283 if (MD && Repl->getType()->isPtrOrPtrVectorTy()) in processInstruction() 2284 MD->invalidateCachedPointerInfo(Repl); in processInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | GVNHoist.cpp | 849 void makeGepsAvailable(Instruction *Repl, BasicBlock *HoistPt, in makeGepsAvailable() argument 888 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable() 891 void updateAlignment(Instruction *I, Instruction *Repl) { in updateAlignment() argument 892 if (auto *ReplacementLoad = dyn_cast<LoadInst>(Repl)) { in updateAlignment() 896 } else if (auto *ReplacementStore = dyn_cast<StoreInst>(Repl)) { in updateAlignment() 901 } else if (auto *ReplacementAlloca = dyn_cast<AllocaInst>(Repl)) { in updateAlignment() 905 } else if (isa<CallInst>(Repl)) { in updateAlignment() 912 unsigned rauw(const SmallVecInsn &Candidates, Instruction *Repl, in rauw() argument 916 if (I != Repl) { in rauw() 918 updateAlignment(I, Repl); in rauw() [all …]
|
D | GVN.cpp | 1555 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument 1556 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith() 1557 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith() 2090 Value *Repl = findLeader(I->getParent(), Num); in processInstruction() local 2091 if (!Repl) { in processInstruction() 2095 } else if (Repl == I) { in processInstruction() 2102 patchAndReplaceAllUsesWith(I, Repl); in processInstruction() 2103 if (MD && Repl->getType()->isPtrOrPtrVectorTy()) in processInstruction() 2104 MD->invalidateCachedPointerInfo(Repl); in processInstruction()
|
/external/llvm-project/clang-tools-extra/clang-tidy/ |
D | ClangTidy.cpp | 142 for (const auto &Repl : FileAndReplacements.second) { in reportDiagnostic() local 145 if (!Repl.isApplicable()) in reportDiagnostic() 148 SmallString<128> FixAbsoluteFilePath = Repl.getFilePath(); in reportDiagnostic() 150 tooling::Replacement R(FixAbsoluteFilePath, Repl.getOffset(), in reportDiagnostic() 151 Repl.getLength(), Repl.getReplacementText()); in reportDiagnostic() 177 FixLoc = getLocation(FixAbsoluteFilePath, Repl.getOffset()); in reportDiagnostic() 259 for (const auto &Repl : FileAndReplacements.second) { in reportFix() local 260 if (!Repl.isApplicable()) in reportFix() 262 SmallString<128> FixAbsoluteFilePath = Repl.getFilePath(); in reportFix() 265 getLocation(FixAbsoluteFilePath, Repl.getOffset()); in reportFix() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | ElseAfterReturnCheck.cpp | 135 llvm::StringRef Repl = Lexer::getSourceText( in removeElseAndBrackets() local 138 Diag << tooling::fixit::createReplacement(CS->getSourceRange(), Repl); in removeElseAndBrackets() 143 llvm::StringRef Repl = Lexer::getSourceText( in removeElseAndBrackets() local 148 SourceRange(ElseExpandedLoc, EndLoc), Repl); in removeElseAndBrackets() 282 std::string Repl = in check() local 288 Repl) in check()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | TextDiagnostics.cpp | 79 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl() local 81 if (llvm::Error Err = Repls.add(Repl)) { in FlushDiagnosticsImpl() 82 llvm::errs() << "Error applying replacement " << Repl.toString() in FlushDiagnosticsImpl()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | TestIndex.cpp | 31 llvm::StringRef Repl) { in replace() argument 34 return llvm::join(Parts, Repl); in replace()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64SIMDInstrOpt.cpp | 297 for (auto &Repl : I.ReplOpc) in shouldExitEarly() local 298 ReplInstrMCID.push_back(&TII->get(Repl)); in shouldExitEarly() 524 for (auto &Repl : I.ReplOpc) { in optimizeLdStInterleave() local 525 ReplInstrMCID.push_back(&TII->get(Repl)); in optimizeLdStInterleave() 527 if (Repl != AArch64::STPQi && Repl != AArch64::STPDi) in optimizeLdStInterleave()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64SIMDInstrOpt.cpp | 300 for (auto &Repl : I.ReplOpc) in shouldExitEarly() local 301 ReplInstrMCID.push_back(&TII->get(Repl)); in shouldExitEarly() 527 for (auto &Repl : I.ReplOpc) { in optimizeLdStInterleave() local 528 ReplInstrMCID.push_back(&TII->get(Repl)); in optimizeLdStInterleave() 530 if (Repl != AArch64::STPQi && Repl != AArch64::STPDi) in optimizeLdStInterleave()
|
/external/llvm-project/clang/tools/driver/ |
D | driver.cpp | 132 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]); in ApplyOneQAOverride() local 134 if (Repl != Args[i]) { in ApplyOneQAOverride() 135 OS << "### Replacing '" << Args[i] << "' with '" << Repl << "'\n"; in ApplyOneQAOverride() 136 Args[i] = GetStableCStr(SavedStrings, Repl); in ApplyOneQAOverride()
|
/external/clang/tools/driver/ |
D | driver.cpp | 125 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]); in ApplyOneQAOverride() local 127 if (Repl != Args[i]) { in ApplyOneQAOverride() 128 OS << "### Replacing '" << Args[i] << "' with '" << Repl << "'\n"; in ApplyOneQAOverride() 129 Args[i] = GetStableCStr(SavedStrings, Repl); in ApplyOneQAOverride()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Regex.h | 86 std::string sub(StringRef Repl, StringRef String,
|
/external/llvm/include/llvm/Support/ |
D | Regex.h | 89 std::string sub(StringRef Repl, StringRef String,
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | Regex.h | 93 std::string sub(StringRef Repl, StringRef String,
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | Regex.h | 97 std::string sub(StringRef Repl, StringRef String,
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 1739 static void patchReplacementInstruction(Instruction *I, Value *Repl) { in patchReplacementInstruction() argument 1740 auto *ReplInst = dyn_cast<Instruction>(Repl); in patchReplacementInstruction() 1765 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument 1766 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith() 1767 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith() 2167 Value *Repl = findLeader(I->getParent(), Num); in processInstruction() local 2168 if (!Repl) { in processInstruction() 2172 } else if (Repl == I) { in processInstruction() 2179 patchAndReplaceAllUsesWith(I, Repl); in processInstruction() 2180 if (MD && Repl->getType()->getScalarType()->isPointerTy()) in processInstruction() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | InlineAsmLowering.cpp | 228 if (const char *Repl = TLI->LowerXConstraint(OpInfo.ConstraintVT)) { in computeConstraintToUse() local 229 OpInfo.ConstraintCode = Repl; in computeConstraintToUse()
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 406 void patchReplacementInstruction(Instruction *I, Value *Repl);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 446 void patchReplacementInstruction(Instruction *I, Value *Repl);
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 2362 const char *Repl = StringSwitch<const char *>(Name) in ParseInstruction() local 2367 static_cast<X86Operand &>(*Operands[0]).setTokenValue(Repl); in ParseInstruction() 2563 const char *Repl = StringSwitch<const char *>(Op.getToken()) in MatchFPUWaitAlias() local 2573 if (Repl) { in MatchFPUWaitAlias() 2579 Operands[0] = X86Operand::CreateToken(Repl, IDLoc); in MatchFPUWaitAlias()
|