Home
last modified time | relevance | path

Searched refs:Repl (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Support/
H A DRegex.cpp136 std::string Regex::sub(StringRef Repl, StringRef String, in sub() argument
149 while (!Repl.empty()) { 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()
189 StringRef Ref = Repl.slice(0, Repl.find_first_not_of("0123456789")); in sub()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp1012 if (I != Repl) { in rauw()
1014 updateAlignment(I, Repl); in rauw()
1022 Repl->andIRFlags(I); in rauw()
1108 Instruction *Repl = nullptr; in hoist() local
1114 if (!Repl || firstInBB(I, Repl)) in hoist()
1115 Repl = I; in hoist()
1120 if (Repl) { in hoist()
1147 Repl->moveBefore(Last); in hoist()
1153 Repl->dropLocation(); in hoist()
1156 if (isa<LoadInst>(Repl)) in hoist()
[all …]
H A DGVN.cpp2018 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument
2019 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith()
2020 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith()
2558 Value *Repl = findLeader(I->getParent(), Num); in processInstruction() local
2559 if (!Repl) { in processInstruction()
2563 } else if (Repl == I) { in processInstruction()
2570 patchAndReplaceAllUsesWith(I, Repl); in processInstruction()
2571 if (MD && Repl->getType()->isPtrOrPtrVectorTy()) in processInstruction()
2572 MD->invalidateCachedPointerInfo(Repl); in processInstruction()
H A DNewGVN.cpp3689 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument
3690 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith()
3691 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidy.cpp142 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()
263 FBR.FilePath = Repl.getFilePath().str(); in reportFix()
264 FBR.FileOffset = Repl.getOffset(); in reportFix()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DElseAfterReturnCheck.cpp135 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()
281 std::string Repl = in check() local
287 Repl) in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DTextDiagnostics.cpp80 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl() local
82 if (llvm::Error Err = Repls.add(Repl)) { in FlushDiagnosticsImpl()
83 llvm::errs() << "Error applying replacement " << Repl.toString() in FlushDiagnosticsImpl()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64SIMDInstrOpt.cpp300 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()
/llvm-project-15.0.7/clang/tools/driver/
H A Ddriver.cpp132 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestIndex.cpp31 llvm::StringRef Repl) { in replace() argument
34 return llvm::join(Parts, Repl); in replace()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DRegex.h97 std::string sub(StringRef Repl, StringRef String,
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DInlineAsmLowering.cpp224 if (const char *Repl = TLI->LowerXConstraint(OpInfo.ConstraintVT)) { in computeConstraintToUse() local
225 OpInfo.ConstraintCode = Repl; in computeConstraintToUse()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DLocal.h396 void patchReplacementInstruction(Instruction *I, Value *Repl);
/llvm-project-15.0.7/lldb/tools/driver/
H A DOptions.td64 // Repl options.
/llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp3476 const char *Repl = StringSwitch<const char *>(Name) in ParseInstruction() local
3481 static_cast<X86Operand &>(*Operands[0]).setTokenValue(Repl); in ParseInstruction()
4059 const char *Repl = StringSwitch<const char *>(Op.getToken()) in MatchFPUWaitAlias() local
4069 if (Repl) { in MatchFPUWaitAlias()
4075 Operands[0] = X86Operand::CreateToken(Repl, IDLoc); in MatchFPUWaitAlias()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.cpp5659 llvm::Metadata *Repl; in finalize() local
5666 Repl = P.second; in finalize()
5668 Repl = It->second; in finalize()
5670 if (auto *GVE = dyn_cast_or_null<llvm::DIGlobalVariableExpression>(Repl)) in finalize()
5671 Repl = GVE->getVariable(); in finalize()
5672 DBuilder.replaceTemporary(std::move(FwdDecl), cast<llvm::MDNode>(Repl)); in finalize()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLocal.cpp2668 void llvm::patchReplacementInstruction(Instruction *I, Value *Repl) { in patchReplacementInstruction() argument
2669 auto *ReplInst = dyn_cast<Instruction>(Repl); in patchReplacementInstruction()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp5113 Value *Repl = Addr; in optimizeMemoryInst() local
5480 MemoryInst->replaceUsesOfWith(Repl, SunkAddr); in optimizeMemoryInst()
5487 if (Repl->use_empty()) { in optimizeMemoryInst()
5490 Repl, TLInfo, nullptr, in optimizeMemoryInst()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp5670 if (const char *Repl = LowerXConstraint(OpInfo.ConstraintVT)) { in ComputeConstraintToUse() local
5671 OpInfo.ConstraintCode = Repl; in ComputeConstraintToUse()