Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp1008 if (I != Repl) { in rauw()
1010 updateAlignment(I, Repl); in rauw()
1018 Repl->andIRFlags(I); in rauw()
1020 I->replaceAllUsesWith(Repl); in rauw()
1104 Instruction *Repl = nullptr; in hoist() local
1110 if (!Repl || firstInBB(I, Repl)) in hoist()
1111 Repl = I; in hoist()
1116 if (Repl) { in hoist()
1143 Repl->moveBefore(Last); in hoist()
1150 if (isa<LoadInst>(Repl)) in hoist()
[all …]
H A DGVN.cpp1878 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument
1879 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith()
1880 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith()
2415 Value *Repl = findLeader(I->getParent(), Num); in processInstruction() local
2416 if (!Repl) { in processInstruction()
2420 } else if (Repl == I) { in processInstruction()
2427 patchAndReplaceAllUsesWith(I, Repl); in processInstruction()
2428 if (MD && Repl->getType()->isPtrOrPtrVectorTy()) in processInstruction()
2429 MD->invalidateCachedPointerInfo(Repl); in processInstruction()
H A DNewGVN.cpp3657 static void patchAndReplaceAllUsesWith(Instruction *I, Value *Repl) { in patchAndReplaceAllUsesWith() argument
3658 patchReplacementInstruction(I, Repl); in patchAndReplaceAllUsesWith()
3659 I->replaceAllUsesWith(Repl); in patchAndReplaceAllUsesWith()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DRegex.h97 std::string sub(StringRef Repl, StringRef String,
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DInlineAsmLowering.cpp228 if (const char *Repl = TLI->LowerXConstraint(OpInfo.ConstraintVT)) { in computeConstraintToUse() local
229 OpInfo.ConstraintCode = Repl; in computeConstraintToUse()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h381 void patchReplacementInstruction(Instruction *I, Value *Repl);
/freebsd-13.1/contrib/llvm-project/lldb/tools/driver/
H A DOptions.td60 // Repl options.
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp3409 const char *Repl = StringSwitch<const char *>(Name) in ParseInstruction() local
3414 static_cast<X86Operand &>(*Operands[0]).setTokenValue(Repl); in ParseInstruction()
4031 const char *Repl = StringSwitch<const char *>(Op.getToken()) in MatchFPUWaitAlias() local
4041 if (Repl) { in MatchFPUWaitAlias()
4047 Operands[0] = X86Operand::CreateToken(Repl, IDLoc); in MatchFPUWaitAlias()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.cpp5104 llvm::Metadata *Repl; in finalize() local
5111 Repl = P.second; in finalize()
5113 Repl = It->second; in finalize()
5115 if (auto *GVE = dyn_cast_or_null<llvm::DIGlobalVariableExpression>(Repl)) in finalize()
5116 Repl = GVE->getVariable(); in finalize()
5117 DBuilder.replaceTemporary(std::move(FwdDecl), cast<llvm::MDNode>(Repl)); in finalize()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2633 void llvm::patchReplacementInstruction(Instruction *I, Value *Repl) { in patchReplacementInstruction() argument
2634 auto *ReplInst = dyn_cast<Instruction>(Repl); in patchReplacementInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp5108 Value *Repl = Addr; in optimizeMemoryInst() local
5457 MemoryInst->replaceUsesOfWith(Repl, SunkAddr); in optimizeMemoryInst()
5464 if (Repl->use_empty()) { in optimizeMemoryInst()
5467 Repl, TLInfo, nullptr, in optimizeMemoryInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp5030 if (const char *Repl = LowerXConstraint(OpInfo.ConstraintVT)) { in ComputeConstraintToUse() local
5031 OpInfo.ConstraintCode = Repl; in ComputeConstraintToUse()