Home
last modified time | relevance | path

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

123456

/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp65 FuncControl |= static_cast<uint32_t>(SPIRV::FunctionControl::Const); in getFunctionControl()
103 ConstantInt *Const = getConstInt(MD, 0); in getOriginalFunctionType() local
104 if (Const) { in getOriginalFunctionType()
107 assert(Const->getSExtValue() >= -1); in getOriginalFunctionType()
110 if (Const->getSExtValue() == -1) in getOriginalFunctionType()
113 ArgTypes[Const->getSExtValue()] = CMeta->getType(); in getOriginalFunctionType()
286 ConstantInt *Const = getConstInt(MD2, 0); in lowerFormalArguments() local
287 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments()
289 static_cast<SPIRV::Decoration::Decoration>(Const->getZExtValue()); in lowerFormalArguments()
292 ConstantInt *Const = getConstInt(MD2, j); in lowerFormalArguments() local
[all …]
H A DSPIRVPreLegalizer.cpp50 auto *Const = in addConstantsToTrack() local
54 if (auto *GV = dyn_cast<GlobalValue>(Const)) { in addConstantsToTrack()
61 Register Reg = GR->find(Const, &MF); in addConstantsToTrack()
63 if (auto *ConstVec = dyn_cast<ConstantDataVector>(Const)) { in addConstantsToTrack()
71 GR->add(Const, &MF, MI.getOperand(2).getReg()); in addConstantsToTrack()
H A DSPIRVEmitIntrinsics.cpp356 Constant *Const = isAggrToReplace(Init) ? IRB->getInt32(1) : Init; in processGlobalValue() local
358 {GV.getType(), Ty}, {&GV, Const}); in processGlobalValue()
378 Constant *Const = Constant::getNullValue(TypeToAssign); in insertAssignTypeIntrs() local
379 buildIntrWithMD(Intrinsic::spv_assign_type, {Ty}, Const, I); in insertAssignTypeIntrs()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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;
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp301 auto Const = buildInstr(TargetOpcode::G_CONSTANT) in buildConstant() local
304 return buildSplatVector(Res, Const); in buildConstant()
307 auto Const = buildInstr(TargetOpcode::G_CONSTANT); in buildConstant() local
308 Const->setDebugLoc(DebugLoc()); in buildConstant()
309 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
310 Const.addCImm(&Val); in buildConstant()
311 return Const; in buildConstant()
334 auto Const = buildInstr(TargetOpcode::G_FCONSTANT) in buildFConstant() local
338 return buildSplatVector(Res, Const); in buildFConstant()
341 auto Const = buildInstr(TargetOpcode::G_FCONSTANT); in buildFConstant() local
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/f/
H A Dinfo-w.def35 FFEINFO_WHERE (FFEINFO_whereFLEETING_CADDR, "Fleet-Const", "fp") /* "A(3)", "CHARS(4:5)". */
40 FFEINFO_WHERE (FFEINFO_whereCONSTANT_SUBOBJECT, "Const-subobj", "q") /* As in "'FOO'(I:J)". */
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DTypePromotion.cpp350 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeWrap() local
351 ICmpConstant = Const; in isSafeWrap()
352 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeWrap() local
353 ICmpConstant = Const; in isSafeWrap()
492 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local
500 ? ConstantExpr::getSExt(Const, ExtTy) in PromoteTree()
501 : ConstantExpr::getZExt(Const, ExtTy); in PromoteTree()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGExprConstant.cpp570 ConstantAggregateBuilder &Const, CharUnits Offset,
635 ConstantAggregateBuilder &Const, in EmitDesignatedInitUpdater() argument
639 return ConstStructBuilder::UpdateStruct(Emitter, Const, Offset, Updater); in EmitDesignatedInitUpdater()
665 if (!Const.add(FillC, Offset, true)) in EmitDesignatedInitUpdater()
670 if (!EmitDesignatedInitUpdater(Emitter, Const, Offset, ElemType, in EmitDesignatedInitUpdater()
674 Const.condense(Offset, ElemTy); in EmitDesignatedInitUpdater()
677 if (!Const.add(Val, Offset, true)) in EmitDesignatedInitUpdater()
883 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local
884 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct()
895 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local
[all …]
H A DCGHLSLRuntime.cpp81 for (auto &Const : Buf.Constants) { in layoutBuffer() local
82 GlobalVariable *GV = Const.first; in layoutBuffer()
83 Const.second = EltTys.size(); in layoutBuffer()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/
H A DNativeTypeBuiltin.cpp34 return (Mods & ModifierOptions::Const) != ModifierOptions::None; in isConstType()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.h30 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V); in isNullConstantOrUndef() local
31 return Const != nullptr && Const->isZero(); in isNullConstantOrUndef()
/openbsd-src/gnu/llvm/clang/utils/TableGen/
H A DClangSyntaxEmitter.cpp222 for (const char *Const : {"", "const "}) in EmitClangSyntaxNodeClasses()
227 Role, Constraint.NodeType, Const); in EmitClangSyntaxNodeClasses()
/openbsd-src/gnu/llvm/llvm/bindings/ocaml/llvm/
H A Dllvm_ocaml.c879 value llvm_int64_of_const(LLVMValueRef Const) { in llvm_int64_of_const() argument
880 if (!(LLVMIsAConstantInt(Const)) || in llvm_int64_of_const()
881 !(LLVMGetIntTypeWidth(LLVMTypeOf(Const)) <= 64)) in llvm_int64_of_const()
883 return caml_alloc_some(caml_copy_int64(LLVMConstIntGetSExtValue(Const))); in llvm_int64_of_const()
898 value llvm_float_of_const(LLVMValueRef Const) { in llvm_float_of_const() argument
901 if (!LLVMIsAConstantFP(Const)) in llvm_float_of_const()
903 Result = LLVMConstRealGetDouble(Const, &LosesInfo); in llvm_float_of_const()
962 value llvm_string_of_const(LLVMValueRef Const) { in llvm_string_of_const() argument
965 if (!LLVMIsAConstantDataSequential(Const) || !LLVMIsConstantString(Const)) in llvm_string_of_const()
967 CStr = LLVMGetAsString(Const, &Len); in llvm_string_of_const()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFTypePrinter.h60 bool SkipFirstParamIfArtificial, bool Const,
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/
H A DHashBase.t68 main::Const::Test;
79 my $pkg = 'main::Const::Test';
83 *main::Const::Test::FOO = sub { 0 };
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerCombiner.cpp134 auto Const = getIConstantVRegValWithLookThrough(RHS, MRI); in matchAArch64MulConstCombine() local
135 if (!Const) in matchAArch64MulConstCombine()
138 APInt ConstValue = Const->Value.sext(Ty.getSizeInBits()); in matchAArch64MulConstCombine()
/openbsd-src/gnu/usr.bin/perl/os2/OS2/OS2-Process/
H A DProcess.pm236 require OS2::Process::Const;
238 my ($err, $val) = OS2::Process::Const::constant($sym);
244 require OS2::Process::Const;
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp384 std::optional<int64_t> Const; in getVarAndConst() local
386 if ((Const = getIfConst(Add->getOperand(0)))) in getVarAndConst()
388 else if ((Const = getIfConst(Add->getOperand(1)))) in getVarAndConst()
394 int64_t Immediate = *Const << TypeScale; in getVarAndConst()
1113 ConstantInt *Const; in CheckAndCreateOffsetAdd() local
1114 if ((Const = dyn_cast<ConstantInt>(NonVectorVal)) && in CheckAndCreateOffsetAdd()
1117 uint64_t N = Const->getZExtValue(); in CheckAndCreateOffsetAdd()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFTypePrinter.cpp523 DWARFDie D, DWARFDie Inner, bool SkipFirstParamIfArtificial, bool Const, in appendSubroutineNameAfter() argument
556 Const |= U.getTag() == DW_TAG_const_type; in appendSubroutineNameAfter()
626 if (Const) in appendSubroutineNameAfter()
/openbsd-src/gnu/llvm/clang/lib/Support/
H A DRISCVVIntrinsicUtils.cpp556 if ((TM & TypeModifier::Const) == TypeModifier::Const) in parsePrototypeDescriptor()
563 TM |= TypeModifier::Const; in parsePrototypeDescriptor()
720 case TypeModifier::Const: in applyModifier()

123456