Home
last modified time | relevance | path

Searched refs:substring (Results 1 – 25 of 71) sorted by relevance

123

/llvm-project/flang/test/Semantics/
H A Dintrinsics03.f906 pure integer function index1(string, substring)
7 character(*), intent(in) :: string, substring ! ok local
12 pure integer function index3(string, substring)
13 character, intent(in) :: string, substring ! not assumed length local
15 pure integer function index4(string, substring, back)
16 character(*), intent(in) :: string, substring local
/llvm-project/lld/MachO/
H A DExportTrie.cpp53 Edge(StringRef s, TrieNode *node) : substring(s), child(node) {} in Edge()
55 StringRef substring; member
153 nodeSize += edge.substring.size() + 1 // String length. in updateOffset()
185 memcpy(buf, edge.substring.data(), edge.substring.size()); in writeTo()
186 buf += edge.substring.size(); in writeTo()
331 StringRef substring = StringRef(cbuf, strnlen(cbuf, end - buf)); in parse() local
332 buf += substring.size() + 1; in parse()
335 parse(start + offset, cumulativeString + substring); in parse()
/llvm-project/clang-tools-extra/clang-doc/assets/
H A Dindex.js
/llvm-project/flang/test/Fir/
H A Drebox-susbtring.fir1 // Test translation to llvm IR of fir.rebox with substring array sections.
6 // Test a fir.rebox with a substring on a character array with constant
19 // Only test the computation of the base address offset computation accounting for the substring
35 …ay section like x(3:60:9)%c(2:8) with both a triplet, a component and a substring where x is a fir…
49 // Only test the computation of the base address offset computation accounting for the substring of…
65 // Test that a rebox with `index` substring parameter is converted
H A Dembox-substring.fir17 // Test that the resulting stride is based on the input length, not the substring one.
/llvm-project/clang/test/Analysis/Checkers/WebKit/
H A Dcall-args-wtf-containers.cpp32 Ref<StringImpl> substring(unsigned position, unsigned length) const;
80 String substring(unsigned position, unsigned length) const in substring() function in WTF::String
86 return m_impl->substring(position, length); in substring()
202 strImpl()->substring(2, 4); in test()
215 str()->substring(2, 4); in test()
/llvm-project/flang/test/Lower/Intrinsics/
H A Dindex.f9057 subroutine test_optional(string, substring, back) argument
58 character (*) :: string(:), substring local
60 print *, index(string, substring, back)
/llvm-project/flang/include/flang/Runtime/
H A Dcharacter.h101 std::size_t RTDECL(Index1)(const char *, std::size_t, const char *substring,
104 const char16_t *substring, std::size_t, bool back = false);
106 const char32_t *substring, std::size_t, bool back = false);
108 const Descriptor &substring, const Descriptor *back /*can be null*/,
/llvm-project/flang/lib/Semantics/
H A Dcheck-data.cpp137 bool operator()(const evaluate::Substring &substring) { in operator ()()
139 return (*this)(substring.parent()) && (*this)(substring.lower()) && in operator ()() argument
140 (*this)(substring.upper()); in operator ()()
/llvm-project/flang/include/flang/Lower/
H A DComponentPath.h44 : substring(ss) { in ComponentPath()
59 const evaluate::Substring *substring = nullptr; variable
/llvm-project/flang/lib/Evaluate/
H A Dfold.cpp195 Substring FoldOperation(FoldingContext &context, Substring &&substring) { in FoldOperation() argument
196 auto lower{Fold(context, substring.lower())}; in FoldOperation()
197 auto upper{Fold(context, substring.upper())}; in FoldOperation()
198 if (const DataRef * dataRef{substring.GetParentIf<DataRef>()}) { in FoldOperation()
202 auto p{*substring.GetParentIf<StaticDataObject::Pointer>()}; in FoldOperation()
/llvm-project/flang/lib/Optimizer/HLFIR/Transforms/
H A DConvertToFIR.cpp461 // - scalar%scalar_component [substring|complex_part] or in matchAndRewrite()
463 // - scalar%array(indices) [substring| complex part] in matchAndRewrite()
483 // array%component[(indices) substring|complex part] cases. in matchAndRewrite()
543 llvm::SmallVector<mlir::Value, 2> substring; in matchAndRewrite()
545 substring.push_back(designate.getSubstring()[0]); in matchAndRewrite()
547 // fir.slice op substring expects the zero based lower bound. in matchAndRewrite()
549 substring[0] = builder.createConvert(loc, idxTy, substring[0]); in matchAndRewrite()
550 substring[0] = in matchAndRewrite()
551 builder.create<mlir::arith::SubIOp>(loc, substring[ in matchAndRewrite()
542 llvm::SmallVector<mlir::Value, 2> substring; matchAndRewrite() local
[all...]
/llvm-project/mlir/lib/IR/
H A DDiagnostics.cpp593 StringRef substring) in emitError()
594 : kind(kind), lineNo(lineNo), fileLoc(fileLoc), substring(substring) {} in emitError()
600 substring.size()));
611 return str.contains(substring);
619 StringRef strToProcess = substring; in computeRegex()
656 /// The substring that is expected to be within the diagnostic.
657 StringRef substring;
838 err.substring + "\" was not produced"); in verify()
653 StringRef substring; global() member
/llvm-project/flang/include/flang/Optimizer/CodeGen/
H A DCGOps.td48 - substring: A substring operator (offset, length) for CHARACTER.
122 - substring: A substring operator (offset, length) for CHARACTER.
/llvm-project/llvm/utils/lit/tests/Inputs/shtest-define/
H A Dlit.cfg37 # pattern because it is a substring of one of the following substitution's
50 # because that string is a substring of another substitution's pattern.
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/readability/
H A Dsuspicious-call-argument.rst84 The substring heuristic combines the prefix and the suffix heuristic, and tries
85 to find the *longest common substring* in the two strings provided.
86 The similarity percentage is the ratio of the found longest common substring
135 This metric is applied to strings by creating bigrams (substring sequences of
/llvm-project/flang/lib/Lower/
H A DConvertExprToHLFIR.cpp190 llvm::SmallVector<mlir::Value, 2> substring; member
269 partInfo.substring, partInfo.complexPart, partInfo.resultShape, in genDesignate()
365 gen(const Fortran::evaluate::Substring &substring) { in gen() argument
368 [&](const auto &x) { return visit(x, partInfo); }, substring.parent()); in gen()
370 // Compute the substring lower and upper bound. in gen()
371 partInfo.substring.push_back(genSubscript(substring.lower())); in gen()
372 if (Fortran::evaluate::MaybeExtentExpr upperBound = substring.upper()) in gen()
373 partInfo.substring.push_back(genSubscript(*upperBound)); in gen()
375 partInfo.substring in gen()
[all...]
H A DVectorSubscripts.cpp81 mlir::Type gen(const Fortran::evaluate::Substring &substring) { in gen() argument
85 gen(std::get<Fortran::evaluate::DataRef>(substring.parent())); in gen()
88 mlir::Value lb = genScalarValue(substring.lower()); in gen()
90 if (const auto &ubExpr = substring.upper()) { in gen()
H A DComponentPath.cpp29 substring = nullptr; in clear()
/llvm-project/llvm/test/tools/llvm-ar/
H A Dtool-name.test13 ## Ensure that the "lib" substring does not result in misidentification as the
/llvm-project/clang-tools-extra/clang-include-fixer/tool/
H A Dclang-include-fixer.el281 (substring .Header 1 -1)
282 (string= (substring .Header 0 1) "<")))))))
/llvm-project/llvm/test/Other/
H A Dcfg-printer-filter.ll3 ;; Both f and func are dumped because their names contain the pattern 'f' as a substring.
/llvm-project/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp1493 llvm::ArrayRef<mlir::Value> path, llvm::ArrayRef<mlir::Value> substring) { in createZeroValue()
1497 arrLoad.getMemref(), typeParams, path, substring); in getExtentFromTriplet()
1503 llvm::ArrayRef<mlir::Value> path, llvm::ArrayRef<mlir::Value> substring) { in getExtentFromTriplet()
1514 if (substring.size() == 2) { in getExtentFromTriplet()
1515 auto upper = builder.createConvert(loc, idxTy, substring.back()); in getExtentFromTriplet()
1516 auto lower = builder.createConvert(loc, idxTy, substring.front()); in getExtentFromTriplet()
1520 if (substring.size() == 1) in getExtentFromTriplet()
1521 lower = builder.createConvert(loc, idxTy, substring.front()); in getExtentFromTriplet()
1421 genLenOfCharacter(fir::FirOpBuilder & builder,mlir::Location loc,fir::ArrayLoadOp arrLoad,llvm::ArrayRef<mlir::Value> path,llvm::ArrayRef<mlir::Value> substring) genLenOfCharacter() argument
1431 genLenOfCharacter(fir::FirOpBuilder & builder,mlir::Location loc,fir::SequenceType seqTy,mlir::Value memref,llvm::ArrayRef<mlir::Value> typeParams,llvm::ArrayRef<mlir::Value> path,llvm::ArrayRef<mlir::Value> substring) genLenOfCharacter() argument
/llvm-project/flang/test/HLFIR/
H A Ddesignate.fir64 func.func @substring(%arg0 : !fir.boxchar<1>) {
71 // CHECK-LABEL: func.func @substring(
/llvm-project/flang/runtime/
H A Dcharacter.cpp718 const Descriptor &substring, const Descriptor *back, int kind, in RTDEF()
724 result, string, substring, back, kind, terminator); in RTDEF()
728 result, string, substring, back, kind, terminator); in RTDEF()
732 result, string, substring, back, kind, terminator); in RTDEF()

123