| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Regex.cpp | 136 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 D | GVNHoist.cpp | 1012 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 D | GVN.cpp | 2018 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 D | NewGVN.cpp | 3689 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 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() 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 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() 281 std::string Repl = in check() local 287 Repl) in check()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | TextDiagnostics.cpp | 80 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 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()
|
| /llvm-project-15.0.7/clang/tools/driver/ |
| H A 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | TestIndex.cpp | 31 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 D | Regex.h | 97 std::string sub(StringRef Repl, StringRef String,
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | InlineAsmLowering.cpp | 224 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 D | Local.h | 396 void patchReplacementInstruction(Instruction *I, Value *Repl);
|
| /llvm-project-15.0.7/lldb/tools/driver/ |
| H A D | Options.td | 64 // Repl options.
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 3476 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 D | CGDebugInfo.cpp | 5659 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 D | Local.cpp | 2668 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 D | CodeGenPrepare.cpp | 5113 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 D | TargetLowering.cpp | 5670 if (const char *Repl = LowerXConstraint(OpInfo.ConstraintVT)) { in ComputeConstraintToUse() local 5671 OpInfo.ConstraintCode = Repl; in ComputeConstraintToUse()
|