Home
last modified time | relevance | path

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

1234567

/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dintrinsics.cpp163 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
169 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
176 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
177 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
180 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
185 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
188 .Push(Const(Scalar<Int1>{})) in TestIntrinsics()
191 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
194 .Push(Const(Scalar<Int8>{})) in TestIntrinsics()
248 .Push(Const(Scalar<Int4>{})) in TestIntrinsics()
[all …]
/llvm-project-15.0.7/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-15.0.7/clang/lib/Sema/
H A DOpenCLBuiltins.td306 list<bit> Const = [0, 1, 0];
520 Attr.Const>;
524 Attr.Const>;
534 def : Builtin<"get_work_dim", [UInt], Attr.Const>;
538 def : Builtin<name, [Size, UInt], Attr.Const>;
805 def : Builtin<name, [Int, Double], Attr.Const>;
807 def : Builtin<name, [Int, Half], Attr.Const>;
811 def : Builtin<name, [Int, SGenTypeN], Attr.Const>;
821 def : Builtin<name, [Int, Half, Half], Attr.Const>;
1223 Attr.Const>;
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp128 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp() local
131 if (!Const) in convertFCmp()
140 if (Const->isZero()) { in convertFCmp()
143 } else if (Const->isInfinity()) { in convertFCmp()
145 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp()
146 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
152 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
238 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp() local
241 if (!Const) in convertICmp()
251 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp59 FuncControl |= static_cast<uint32_t>(SPIRV::FunctionControl::Const); in getFunctionControl()
100 ConstantInt *Const = getConstInt(MD, 0); in getOriginalFunctionType() local
101 if (Const) { in getOriginalFunctionType()
104 assert(Const->getSExtValue() >= -1); in getOriginalFunctionType()
107 if (Const->getSExtValue() == -1) in getOriginalFunctionType()
110 ArgTypes[Const->getSExtValue()] = CMeta->getType(); in getOriginalFunctionType()
193 ConstantInt *Const = getConstInt(MD2, 0); in lowerFormalArguments() local
194 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments()
195 auto Dec = static_cast<SPIRV::Decoration>(Const->getZExtValue()); in lowerFormalArguments()
198 ConstantInt *Const = getConstInt(MD2, j); in lowerFormalArguments() local
[all …]
/llvm-project-15.0.7/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-15.0.7/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>
235 %op1 = pdl.operation "tf.Const" -> (%mean_const_type : !pdl.type)
241 %op4 = pdl.operation "tf.Const" -> (%mul_const_type : !pdl.type)
250 pdl.erase %op4 // tf.Const
[all …]
/llvm-project-15.0.7/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-15.0.7/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
84 COFF-I386: __TI3?AUM@@[Flags.Const]: false
90 COFF-I386: __TI3?AUS@@[Flags.Const]: false
96 COFF-I386: __TI4CPAUS@@[Flags.Const]: true
102 COFF-I386: __TI4CVPAUS@@[Flags.Const]: true
[all …]
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dinitial-image.cpp89 using Const = Constant<T>; in Test() typedef
90 using Scalar = typename Const::Element; in Test()
132 Const{derived, std::move(typedValue), std::move(extents_)}); in Test()
156 Const{length, std::move(typedValue), std::move(extents_)}); in Test()
176 return AsGenericExpr(Const{std::move(typedValue), std::move(extents_)}); in Test()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DQualifiedAutoCheck.cpp29 enum class Qualifier { Const, Volatile, Restrict }; enumerator
37 assert((Qual == Qualifier::Const || Qual == Qualifier::Volatile || in findQualToken()
54 Qual == Qualifier::Const in findQualToken()
187 if (CheckQualifier(IsLocalConst, Qualifier::Const) || in check()
238 findQualToken(Var, Qualifier::Const, Result); in check()
H A DMakeMemberFunctionConstCheck.cpp52 enum UsageKind { Unused, Const, NonConst }; enumerator
175 Usage = Const; in VisitCXXThisExpr()
216 return UsageOfThis.Usage == Const; in AST_MATCHER()
/llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/
H A Dopaque_pointers.ll8 ; CHECK: %[[#Const:]] = OpConstant %[[#Int32Ty]] 0
11 ; CHECK: OpStore %[[#Parm]] %[[#Const]] Aligned 4
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Inputs/
H A Devery-type.yaml13 Modifiers: [ Const ]
249 Modifiers: [ Const, Volatile ]
254 Modifiers: [ Const, Volatile ]
259 Modifiers: [ Const, Volatile ]
264 Modifiers: [ Const, Volatile ]
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Darc-constexpr.mm32 constexpr NSString *Const = @"abc";
33 // In IR RefConst should be initialized with Const initializer instead of
35 NSString* RefConst = Const;
/llvm-project-15.0.7/clang/tools/clang-fuzzer/
H A Dcxx_proto.proto25 message Const { message
54 Const cons = 2;
H A Dcxx_loop_proto.proto21 message Const { message
57 Const cons = 1;
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp107 Constant *Const = nullptr; in tryToReplaceWithConstant() local
120 Const = ConstantStruct::get(ST, ConstVals); in tryToReplaceWithConstant()
126 Const = in tryToReplaceWithConstant()
129 assert(Const && "Constant is nullptr here!"); in tryToReplaceWithConstant()
150 LLVM_DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n'); in tryToReplaceWithConstant()
153 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.join.view/sentinel/
H A Deq.pass.cpp29 template <bool Const>
32 using Iter = std::conditional_t<Const, ConstIterator, Iterator>;
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTypePromotion.cpp339 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeWrap() local
340 ICmpConstant = Const; in isSafeWrap()
341 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeWrap() local
342 ICmpConstant = Const; in isSafeWrap()
481 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local
489 ? ConstantExpr::getSExt(Const, ExtTy) in PromoteTree()
490 : ConstantExpr::getZExt(Const, ExtTy); in PromoteTree()
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DRecordName.cpp201 if (Mods & uint16_t(ModifierOptions::Const)) in visitKnownRecord()
330 ConstantSym Const(SymbolKind::S_CONSTANT); in getSymbolName() local
332 cantFail(Mapping.visitKnownRecord(Sym, Const)); in getSymbolName()
334 return Const.Name; in getSymbolName()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp294 return buildSplatVector(Res, Const); in buildConstant()
297 auto Const = buildInstr(TargetOpcode::G_CONSTANT); in buildConstant() local
298 Const->setDebugLoc(DebugLoc()); in buildConstant()
299 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
300 Const.addCImm(&Val); in buildConstant()
301 return Const; in buildConstant()
328 return buildSplatVector(Res, Const); in buildFConstant()
332 Const->setDebugLoc(DebugLoc()); in buildFConstant()
333 Res.addDefToMIB(*getMRI(), Const); in buildFConstant()
334 Const.addFPImm(&Val); in buildFConstant()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-ml/
H A Dincluded.inc1 Const equ 00008H
/llvm-project-15.0.7/llvm/test/Transforms/Coroutines/
H A Dcoro-early.ll6 ; CHECK: @NoopCoro.Frame.Const = private constant %NoopCoro.Frame { void (%NoopCoro.Frame*)* @NoopC…
48 ; CHECK-NEXT: ret i8* bitcast (%NoopCoro.Frame* @NoopCoro.Frame.Const to i8*)
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/NativePDB/Inputs/
H A Ds_constant.s485 # Const (0x1)
569 # Const (0x1)
648 # Const (0x1)
728 # Const (0x1)
809 # Const (0x1)
891 # Const (0x1)

1234567