Home
last modified time | relevance | path

Searched refs:folded (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold-reduction.h41 Constant<T> *folded{Folder<T>{context}.Folding(arg[arrayIndex])};
42 if (!folded || folded->Rank() < 1) {
53 std::size_t n{folded->size()};
57 return Constant<T>{*folded};
63 ConstantSubscripts at{folded->lbounds()};
66 elements[j] = folded->At(at);
72 std::move(elements), ConstantSubscripts{folded->shape()}};
81 return Constant<T>{*folded};
138 auto folded{GetScalarConstantValue<LogicalResult>( in FoldMaxvalMinval()
140 CHECK(folded.has_value()); in FoldMaxvalMinval()
[all …]
H A Dfold-character.cpp115 if (auto folded{OperandsAreConstants(x)}) { in FoldOperation() local
116 return Expr<Result>{Constant<Result>{folded->first + folded->second}}; in FoldOperation()
128 if (auto folded{OperandsAreConstants(x)}) { in FoldOperation() local
129 auto oldLength{static_cast<ConstantSubscript>(folded->first.size())}; in FoldOperation()
130 auto newLength{folded->second.ToInt64()}; in FoldOperation()
132 folded->first.erase(newLength); in FoldOperation()
134 folded->first.append(newLength - oldLength, ' '); in FoldOperation()
136 CHECK(static_cast<ConstantSubscript>(folded->first.size()) == newLength); in FoldOperation()
137 return Expr<Result>{Constant<Result>{std::move(folded->first)}}; in FoldOperation()
H A Dfold-logical.cpp248 if (auto folded{OperandsAreConstants(relation)}) { in FoldOperation() local
252 Satisfies(relation.opr, folded->first.CompareSigned(folded->second)); in FoldOperation()
254 result = Satisfies(relation.opr, folded->first.Compare(folded->second)); in FoldOperation()
257 folded->first.Equals(folded->second); in FoldOperation()
259 result = Satisfies(relation.opr, Compare(folded->first, folded->second)); in FoldOperation()
303 if (auto folded{OperandsAreConstants(operation)}) { in FoldOperation() local
304 bool xt{folded->first.IsTrue()}, yt{folded->second.IsTrue()}, result{}; in FoldOperation()
H A Dcheck-expression.cpp417 if (IsActuallyConstant(folded)) { in NonPointerInitializationExpr()
420 if (folded.Rank() == symRank) { in NonPointerInitializationExpr()
424 .ChangeLbounds(std::move(folded)); in NonPointerInitializationExpr()
433 return {std::move(folded)}; in NonPointerInitializationExpr()
439 .Expand(std::move(folded)); in NonPointerInitializationExpr()
465 } else if (IsErrorExpr(folded)) { in NonPointerInitializationExpr()
467 return {std::move(folded)}; in NonPointerInitializationExpr()
472 symbol.name(), folded.AsFortran()); in NonPointerInitializationExpr()
474 return {std::move(folded)}; in NonPointerInitializationExpr()
479 symbol.name(), folded.AsFortran()); in NonPointerInitializationExpr()
[all …]
H A Dfold-designator.cpp76 auto folded{ in FoldDesignator() local
79 folded)}) { in FoldDesignator()
378 auto folded{designatorFolder.FoldDesignator(expr)}; in From() local
379 CHECK(folded); in From()
381 symbol = &folded->symbol(); in From()
382 baseOffset = folded->offset(); in From()
383 elementSize = folded->size(); in From()
385 CHECK(symbol == &folded->symbol()); in From()
386 CHECK(elementSize == folded->size()); in From()
398 dimensions[twoDim].byteStride = folded->offset() - baseOffset; in From()
[all …]
H A Dfold-implementation.h1758 auto sum{folded->first.AddSigned(folded->second)}; in FoldOperation()
1784 auto difference{folded->first.SubtractSigned(folded->second)}; in FoldOperation()
1810 auto product{folded->first.MultiplySigned(folded->second)}; in FoldOperation()
1850 auto quotAndRem{folded->first.DivideSigned(folded->second)}; in FoldOperation()
1896 auto power{folded->first.Power(folded->second)}; in FoldOperation()
1911 Constant<T>{(*callable)(context, folded->first, folded->second)}}; in FoldOperation()
1930 auto power{evaluate::IntPower(folded->first, folded->second)}; in FoldOperation()
1954 if (folded->first.CompareSigned(folded->second) == x.ordering) { in FoldOperation()
1959 (folded->first.Compare(folded->second) == Relation::Less) == in FoldOperation()
1967 auto maxLen{std::max(folded->first.length(), folded->second.length())}; in FoldOperation()
[all …]
H A Dfold-complex.cpp84 if (auto folded{OperandsAreConstants(x)}) { in FoldOperation() local
86 Constant<Result>{Scalar<Result>{folded->first, folded->second}}}; in FoldOperation()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dstrlen-9.ll4 ; just past-the-end pointers to strings are not folded.
16 ; Verify that all the invalid calls below are folded. This is safer than
43 ; Verify that strlen(a5) is folded to 5.
49 ; Verify that strlen(a5 + 5) is folded to 0.
55 ; Verify that strlen(s5 + 6) is folded to 0.
61 ; TODO: Verify that strlen(a5 + i) is folded to 5 - i? It's currently
62 ; not folded because the variable offset makes getConstantDataArrayInfo
69 ; Verify that strlen(z0) is folded to 0.
75 ; TODO: Verify that strlen(z0 + i) is folded to 0. As the case above,
76 ; this one is not folded either because the variable offset makes
[all …]
H A Dconstrained.ll64 ; If operation does not raise exceptions, it may be folded even in strict mode.
75 ; If operation raises exceptions, it cannot be folded in strict mode.
87 ; If operation raises exceptions, it can be folded in non-strict mode.
98 ; if result is imprecise, it cannot be folded if rounding mode is dynamic.
110 ; If result is imprecise and rounding mode is not dynamic, operation can be folded in "maytrap" mod…
H A Dconstant-fold-alias.ll13 ; This cannot be constant folded because G1 is underaligned.
27 ; This cannot be constant folded because A1 aliases G3 which is underalaigned.
H A Dcast_ptr.ll26 ; These casts should be folded away.
39 ; These casts should be folded away.
52 ; These casts should be folded away.
65 ; These casts should not be folded away.
80 ; These casts should not be folded away.
94 ; These casts should also be folded away.
/llvm-project-15.0.7/lld/test/ELF/
H A Ddebug-dead-reloc-icf.s3 ## value if the referenced section symbol is folded into another section by ICF.
21 ## .text.1 will be folded by ICF.
29 ## .debug_line contributions associated with folded-in functions will describe
31 ## prevent users from setting breakpoints on the folded-in functions.
32 ## Instead resolve the relocation to the folded .text.1 to .text
H A Dicf-preemptible.s20 ## Definitions are preemptible in a DSO. Only leaf functions can be folded.
33 ## In -shared mode, .text.g1 and .text.g2 cannot be folded because f1 and f2 are
42 ## In -shared mode, the sections below cannot be folded because g1, g2 and g3
H A Dbasic-block-sections-and-icf.s3 ## This simple test checks foo is folded into bar with bb sections
16 ## Explicity check that bar is folded and not emitted.
/llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/
H A Dconstfold-constrained.ll5 ; Verify that floor(10.1) is folded to 10.0 when the exception behavior is 'ignore'.
16 ; Verify that floor(-10.1) is folded to -11.0 when the exception behavior is not 'ignore'.
28 ; Verify that ceil(10.1) is folded to 11.0 when the exception behavior is 'ignore'.
51 ; Verify that trunc(10.1) is folded to 10.0 when the exception behavior is 'ignore'.
74 ; Verify that round(10.5) is folded to 11.0 when the exception behavior is 'ignore'.
97 ; Verify that nearbyint(10.5) is folded to 11.0 when the rounding mode is 'upward'.
108 ; Verify that nearbyint(10.5) is folded to 10.0 when the rounding mode is 'downward'.
143 ; Verify that nearbyint(10.5) is NOT folded if the rounding mode is 'dynamic'.
202 ; Verify that rint(10) is folded to 10.0 when the rounding mode is 'tonearest'.
491 ; Compare with SNAN is NOT folded if the exception behavior mode is not 'ignore'.
[all …]
/llvm-project-15.0.7/llvm/test/YAMLParser/
H A Dspec-09-29.test3 > # Simple folded scalar
4 folded
H A Dspec-09-19.test3 # CHECK: !!str "folded\n"
8 folded
H A Dspec-09-18.test3 # CHECK: !!str " folded\n"
10 folded
/llvm-project-15.0.7/flang/test/Fir/
H A Dconvert-fold.fir5 // this pair of converts should be folded and DCEd
14 // this pair of converts should be folded and DCEd
23 // these converts are NOPs and should be folded away
/llvm-project-15.0.7/llvm/test/CodeGen/Thumb/
H A Daddr-modes.ll16 ; Expected: GEP cannot be folded into LOAD.
26 ; Expected: GEP can be folded into LOAD.
36 ; Expected: GEP can be folded into LOAD.
/llvm-project-15.0.7/bolt/test/X86/
H A Dicf-jump-tables.test9 ## Check that BOLT successfully folded a function with jump table:
10 # CHECK: ICF folded {{.*}}. {{[^0]}} functions had jump tables.
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dicf-output-sections.s5 ## Sections within the same output section can be freely folded.
16 ## Sections with different output sections cannot be folded. Without the
18 ## .text and they will be folded.
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-case.cpp86 auto folded{evaluate::Fold(foldingContext, SomeExpr{*x->v})}; in GetValue() local
88 evaluate::ConvertToType(T::GetType(), SomeExpr{folded}))}) { in GetValue()
92 if (back == folded) { in GetValue()
98 folded.AsFortran(), caseExprType_.AsFortran()); in GetValue()
/llvm-project-15.0.7/llvm/test/CodeGen/Generic/
H A DbadFoldGEP.ll3 ;; GetMemInstArgs() folded the two getElementPtr instructions together,
7 ;; The code is legal but not type-safe and the two GEPs should not be folded.
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Dfold-remove-li.ll1 ; NOTE: This test verifies that a redundant load immediate of zero is folded
14 ; verify that the load immediate has been folded into the isel and deleted

12345678910>>...21