Home
last modified time | relevance | path

Searched refs:Const (Results 1 – 25 of 185) sorted by relevance

12345678

/llvm-project/flang/unittests/Evaluate/
H A Dintrinsics.cpp46 template <typename A> auto Const(A &&x) -> Constant<TypeOf<A>> { in Const() function
166 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
169 .Push(Named("a", Const(Scalar<Int4>{}))) in TestIntrinsics()
172 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
175 .Push(Named("bad", Const(Scalar<Int4>{}))) in TestIntrinsics()
179 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
180 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
183 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
184 .Push(Named("a", Const(Scalar<Int4>{}))) in TestIntrinsics()
187 .Push(Named("a", Const(Scalar<Int4>{}))) in TestIntrinsics()
[all …]
/llvm-project/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/
H A Dp2.cpp6 struct Const { struct
7Const(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move…
8Const& operator=(const Const&&) = default; // expected-error {{the parameter for an explicitly-def…
35 struct Const { struct
36 Const(const Const&) = default;
37 Const& operator=(const Const&) = default;
/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td307 list<bit> Const = [0, 1, 0];
521 Attr.Const>;
525 Attr.Const>;
535 def : Builtin<"get_work_dim", [UInt], Attr.Const>;
539 def : Builtin<name, [Size, UInt], Attr.Const>;
570 def : Builtin<name, [FGenTypeN, FGenTypeN], Attr.Const>;
573 def : Builtin<name, [GenTypeFloatVecAndScalar, GenTypeUIntVecAndScalar], Attr.Const>;
574 def : Builtin<name, [GenTypeDoubleVecAndScalar, GenTypeULongVecAndScalar], Attr.Const>;
575 def : Builtin<name, [GenTypeHalfVecAndScalar, GenTypeUShortVecAndScalar], Attr.Const>;
582 def : Builtin<name, [FGenTypeN, FGenTypeN, FGenTypeN], Attr.Const>;
[all …]
/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp126 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp()
129 if (!Const) in convertFCmp()
136 // Check if Const is one of our recognized consts. in convertFCmp()
138 if (Const->isZero()) { in convertFCmp()
141 } else if (Const->isInfinity()) { in convertFCmp()
143 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp()
144 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
150 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
236 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp()
239 if (!Const) in convertICmp()
128 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); convertFCmp() local
238 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); convertICmp() local
[all...]
/llvm-project/clang/include/clang/Basic/
H A DBuiltins.td130 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
136 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
196 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
208 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
214 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
220 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
226 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
238 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
244 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
250 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
[all...]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.elements/sentinel/
H A Dminus.pass.cpp30 template <bool Const>
46 template <bool Const>
50 constexpr bool operator==(const Iter<Const>& i) const { return i.it_ == end_; } in operator ==()
53 template <bool Const>
57 constexpr bool operator==(const Iter<Const>& i) const { return i.it_ == end_; } in operator ==()
59 …friend constexpr auto operator-(const SizedSent& st, const Iter<Const>& it) { return st.end_ - it.… in operator -()
61 …friend constexpr auto operator-(const Iter<Const>& it, const SizedSent& st) { return it.it_ - st.e… in operator -()
64 template <bool Const>
H A Dequality.pass.cpp22 template <bool Const>
38 template <bool Const>
42 constexpr bool operator==(const Iter<Const>& i) const { return i.it_ == end_; } in operator ==()
45 template <bool Const>
/llvm-project/clang/test/SemaTemplate/
H A Dalias-church-numerals.cpp29 template<typename T, T N> struct Const { static const T value = N; }; argument
31 template<typename T, T N> struct IncrementHelper<Const<T, N>> { using Result = Const<T, N+1>; };
34 using Arr = int[TwoHundredAndFiftySix<Increment, Const<int, 0>>::value];
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.take/range.take.sentinel/
H A Deq.pass.cpp26 template <bool Const>
27 using MaybeConstIterator = cpp20_input_iterator<std::conditional_t<Const, const int*, int*>>;
29 template <bool Const>
31 using Base = std::conditional_t<Const, const int*, int*>;
38 …friend constexpr bool operator==(const MaybeConstIterator<Const>& it, const CrossConstComparableSe… in operator ==()
42 …friend constexpr bool operator==(const MaybeConstIterator<!Const>& it, const CrossConstComparableS… in operator ==()
/llvm-project/mlir/test/Integration/Dialect/PDL/CPU/
H A Dmultiroot.mlir42 %op1 = pdl.operation "tf.Const" -> (%const_type : !pdl.type)
53 pdl.erase %op1 // tf.Const
72 %op1 = pdl.operation "tf.Const" -> (%mean_const_type : !pdl.type)
78 %op4 = pdl.operation "tf.Const" -> (%mul_const_type : !pdl.type)
87 pdl.erase %op4 // tf.Const
90 pdl.erase %op1 // tf.Const
103 %0 = "tf.Const"() {value = dense<0> : tensor<1xi32>} : () -> tensor<1xi32>
104 %1 = "tf.Const"() {value = dense<1.000000e-01> : tensor<f32>} : () -> tensor<f32>
105 %2 = "tf.Const"() {value = dense<5.000000e-01> : tensor<2x1xf32>} : () -> tensor<2x1xf32>
134 %op0 = pdl.operation "tf.Const" {"value" = %attr0} -> (%const_type : !pdl.type)
[all …]
/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h56 return u.Const; in getConst()
80 static SDDbgOperand fromConst(const Value *Const) { in fromConst() argument
81 return SDDbgOperand(Const); in fromConst()
108 const Value *Const; ///< Valid for constants. member
119 SDDbgOperand(const Value *C) : kind(CONST) { u.Const = C; } in SDDbgOperand()
/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp82 FuncControl |= static_cast<uint32_t>(SPIRV::FunctionControl::Const); in getConstInt()
158 ConstantInt *Const = getConstInt(MD, 0); in getOriginalFunctionType()
159 if (Const) { in getOriginalFunctionType()
162 assert(Const->getSExtValue() >= -1); in getOriginalFunctionType()
165 if (Const->getSExtValue() == -1)
168 ArgTypes[Const->getSExtValue()] = CMeta->getType(); in getArgAccessQual()
376 ConstantInt *Const = getConstInt(MD2, 0); in lowerFormalArguments()
377 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments()
379 static_cast<SPIRV::Decoration::Decoration>(Const->getZExtValue()); in lowerFormalArguments()
382 ConstantInt *Const in lowerFormalArguments()
148 ConstantInt *Const = getConstInt(MD, 0); getOriginalFunctionType() local
356 ConstantInt *Const = getConstInt(MD2, 0); lowerFormalArguments() local
362 ConstantInt *Const = getConstInt(MD2, j); lowerFormalArguments() local
[all...]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/
H A Dctor.other.pass.cpp20 template <bool Const>
21 struct ConvertibleIter : IterBase<ConvertibleIter<Const>> {
32 requires(Const != otherConst)
/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp294 Constant *Const, PHINode *Root, DenseSet<PHINode *> &TransitivePHIs) { in discoverTransitivelyIncomingValues()
320 if (C != Const) in visitPHINode()
342 Constant *Const = nullptr; in visitPHINode()
354 if (!Const) in visitPHINode()
355 Const = C; in visitPHINode()
357 if (C != Const) in visitPHINode()
379 if (!Const) in visitCallBase()
383 return Const; in visitCallBase()
386 if (!discoverTransitivelyIncomingValues(Const, &I, TransitivePHIs)) in visitCallBase()
389 return Const; in visitCallBase()
273 discoverTransitivelyIncomingValues(Constant * Const,PHINode * Root,DenseSet<PHINode * > & TransitivePHIs) discoverTransitivelyIncomingValues() argument
321 Constant *Const = nullptr; visitPHINode() local
449 Constant *Const = LastVisited->second; visitCmpInst() local
470 Constant *Const = LastVisited->second; visitBinaryOperator() local
[all...]
/llvm-project/llvm/test/tools/llvm-cxxdump/
H A Deh.test42 COFF-I386: __TI1?AW4E@@[Flags.Const]: false
48 COFF-I386: __TI1PQS@@H[Flags.Const]: false
54 COFF-I386: __TI2CPAW4E@@[Flags.Const]: true
60 COFF-I386: __TI2CVPAW4E@@[Flags.Const]: true
66 COFF-I386: __TI2PAW4E@@[Flags.Const]: false
72 COFF-I386: __TI2PAX[Flags.Const]: false
78 COFF-I386: __TI2VPAW4E@@[Flags.Const]: false
84 COFF-I386: __TI3?AUM@@[Flags.Const]: false
90 COFF-I386: __TI3?AUS@@[Flags.Const]: false
96 COFF-I386: __TI4CPAUS@@[Flags.Const]: true
[all …]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.take.while/sentinel/
H A Dequality.pass.cpp24 template <bool Const>
40 template <bool Const>
44 constexpr bool operator==(const Iter<Const>& i) const { return i.it_ == end_; } in operator ==()
47 template <bool Const>
/llvm-project/flang/lib/Evaluate/
H A Dinitial-image.cpp94 using Const = Constant<T>; in Test() typedef
95 using Scalar = typename Const::Element; in Test()
146 Const{derived, std::move(typedValue), std::move(extents_)}); in Test()
170 Const{length, std::move(typedValue), std::move(extents_)}); in Test()
190 return AsGenericExpr(Const{std::move(typedValue), std::move(extents_)}); in Test()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DQualifiedAutoCheck.cpp27 enum class Qualifier { Const, Volatile, Restrict }; enumerator
35 assert((Qual == Qualifier::Const || Qual == Qualifier::Volatile || in findQualToken()
52 Qual == Qualifier::Const in findQualToken()
185 if (CheckQualifier(IsLocalConst, Qualifier::Const) || in check()
235 std::optional<Token> Token = findQualToken(Var, Qualifier::Const, Result); in check()
H A DMakeMemberFunctionConstCheck.cpp50 enum UsageKind { Unused, Const, NonConst }; enumerator
173 Usage = Const; in VisitCXXThisExpr()
214 return UsageOfThis.Usage == Const; in AST_MATCHER()
/llvm-project/clang/test/CodeGenObjCXX/
H A Darc-constexpr.mm25 constexpr NSString *Const = @"abc";
26 // In IR RefConst should be initialized with Const initializer instead of
28 NSString* RefConst = Const;
/llvm-project/llvm/lib/CodeGen/
H A DTypePromotion.cpp343 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeWrap() local
344 ICmpConstant = Const; in isSafeWrap()
345 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeWrap() local
346 ICmpConstant = Const; in isSafeWrap()
492 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local
502 NewConst = -((-Const->getValue()).zext(PromotedWidth)); in PromoteTree()
504 NewConst = -((-Const->getValue()).zext(PromotedWidth)); in PromoteTree()
506 NewConst = Const->getValue().zext(PromotedWidth); in PromoteTree()
508 NewConst = Const->getValue().zext(PromotedWidth); in PromoteTree()
510 I->setOperand(i, ConstantInt::get(Const in PromoteTree()
[all...]
/llvm-project/llvm/test/CodeGen/SPIRV/
H A Dopaque_pointers.ll8 ; CHECK-DAG: %[[#Const:]] = OpConstant %[[#Int32Ty]] 0
11 ; CHECK: OpStore %[[#Param]] %[[#Const]] Aligned 4
/llvm-project/llvm/include/llvm/Analysis/
H A DWithCache.h33 template <typename T, bool Const>
34 using conditionally_const_t = std::conditional_t<Const, const T, T>;
/llvm-project/llvm/test/Transforms/Coroutines/
H A Dcoro-noop.ll5 ; CHECK: @NoopCoro.Frame.Const = private constant %NoopCoro.Frame { ptr @__NoopCoro_ResumeDestroy, …
12 ; CHECK-NEXT: ret ptr @NoopCoro.Frame.Const
/llvm-project/llvm/test/CodeGen/SPIRV/pointers/
H A Dtype-deduce-by-call-complex.ll9 ; CHECK-SPIRV-DAG: %[[Const:.*]] = OpConstantNull %[[Struct]]
11 ; CHECK-SPIRV-DAG: %[[Var:.*]] = OpVariable %[[CrossStructPtr]] CrossWorkgroup %[[Const]]

12345678