/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | OpenCLBuiltins.td | 307 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTDC.cpp | 128 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 …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Builtins.td | 130 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]; 226 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const]; 232 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr]; 238 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const]; 244 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr]; 262 let Attributes = [NoThrow, Const, Constexpr]; [all …]
|
H A D | BuiltinsRISCV.td | 21 let Attributes = [NoThrow, Const] in { 140 } // Attributes = [Const, NoThrow]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SDNodeDbgValue.h | 56 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVCallLowering.cpp | 74 FuncControl |= static_cast<uint32_t>(SPIRV::FunctionControl::Const); in getFunctionControl() 148 ConstantInt *Const = getConstInt(MD, 0); in getOriginalFunctionType() local 149 if (Const) { in getOriginalFunctionType() 152 assert(Const->getSExtValue() >= -1); in getOriginalFunctionType() 155 if (Const->getSExtValue() == -1) in getOriginalFunctionType() 158 ArgTypes[Const->getSExtValue()] = CMeta->getType(); in getOriginalFunctionType() 356 ConstantInt *Const = getConstInt(MD2, 0); in lowerFormalArguments() local 357 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments() 359 static_cast<SPIRV::Decoration::Decoration>(Const->getZExtValue()); in lowerFormalArguments() 362 ConstantInt *Const = getConstInt(MD2, j); in lowerFormalArguments() local [all …]
|
H A D | SPIRVPreLegalizer.cpp | 55 auto *Const = in addConstantsToTrack() local 59 if (auto *GV = dyn_cast<GlobalValue>(Const)) { in addConstantsToTrack() 66 Register Reg = GR->find(Const, &MF); in addConstantsToTrack() 68 if (auto *ConstVec = dyn_cast<ConstantDataVector>(Const)) { in addConstantsToTrack() 83 GR->add(Const, &MF, SrcReg); in addConstantsToTrack() 85 if (Const->getType()->isTargetExtTy()) { in addConstantsToTrack() 90 TargetExtConstTypes[SrcMI] = Const->getType(); in addConstantsToTrack() 91 if (Const->isNullValue()) { in addConstantsToTrack() 94 GR->getOrCreateSPIRVType(Const->getType(), MIB); in addConstantsToTrack()
|
H A D | SPIRVBuiltins.cpp | 1243 const MachineInstr *Const = getDefInstrMaybeConstant(ConstGroupOpReg, MRI); in generateGroupUniformInst() local 1244 if (!Const || Const->getOpcode() != TargetOpcode::G_CONSTANT) in generateGroupUniformInst() 1248 const MachineOperand &ConstOperand = Const->getOperand(1); in generateGroupUniformInst() 1935 const MachineInstr *Const = getDefInstrMaybeConstant(ConstRegister, MRI); in generateSpecConstantInst() local 1936 assert(Const && in generateSpecConstantInst() 1937 (Const->getOpcode() == TargetOpcode::G_CONSTANT || in generateSpecConstantInst() 1938 Const->getOpcode() == TargetOpcode::G_FCONSTANT) && in generateSpecConstantInst() 1941 const MachineOperand &ConstOperand = Const->getOperand(1); in generateSpecConstantInst() 1953 if (Const->getOpcode() == TargetOpcode::G_CONSTANT) in generateSpecConstantInst() 2000 Register Const; in buildNDRange() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | FunctionSpecialization.cpp | 273 Constant *Const, PHINode *Root, DenseSet<PHINode *> &TransitivePHIs) { in discoverTransitivelyIncomingValues() argument 299 if (C != Const) in discoverTransitivelyIncomingValues() 321 Constant *Const = nullptr; in visitPHINode() local 333 if (!Const) in visitPHINode() 334 Const = C; in visitPHINode() 336 if (C != Const) in visitPHINode() 358 if (!Const) in visitPHINode() 362 return Const; in visitPHINode() 365 if (!discoverTransitivelyIncomingValues(Const, &I, TransitivePHIs)) in visitPHINode() 368 return Const; in visitPHINode() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TypePromotion.cpp | 343 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->getContext(), NewConst)); in PromoteTree()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | RecordName.cpp | 201 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()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 328 auto Const = buildInstr(TargetOpcode::G_CONSTANT) in buildConstant() local 331 return buildSplatBuildVector(Res, Const); in buildConstant() 334 auto Const = buildInstr(TargetOpcode::G_CONSTANT); in buildConstant() local 335 Const->setDebugLoc(DebugLoc()); in buildConstant() 336 Res.addDefToMIB(*getMRI(), Const); in buildConstant() 337 Const.addCImm(&Val); in buildConstant() 338 return Const; in buildConstant() 364 auto Const = buildInstr(TargetOpcode::G_FCONSTANT) in buildFConstant() local 368 return buildSplatBuildVector(Res, Const); in buildFConstant() 371 auto Const = buildInstr(TargetOpcode::G_FCONSTANT); in buildFConstant() local [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 573 ConstantAggregateBuilder &Const, CharUnits Offset, 654 ConstantAggregateBuilder &Const, in EmitDesignatedInitUpdater() argument 658 return ConstStructBuilder::UpdateStruct(Emitter, Const, Offset, Updater); in EmitDesignatedInitUpdater() 684 if (!Const.add(FillC, Offset, true)) in EmitDesignatedInitUpdater() 689 if (!EmitDesignatedInitUpdater(Emitter, Const, Offset, ElemType, in EmitDesignatedInitUpdater() 693 Const.condense(Offset, ElemTy); in EmitDesignatedInitUpdater() 696 if (!Const.add(Val, Offset, true)) in EmitDesignatedInitUpdater() 903 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local 904 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct() 915 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local [all …]
|
H A D | CGHLSLRuntime.cpp | 80 for (auto &Const : Buf.Constants) { in layoutBuffer() local 81 GlobalVariable *GV = Const.first; in layoutBuffer() 82 Const.second = EltTys.size(); in layoutBuffer()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | NativeTypeBuiltin.cpp | 34 return (Mods & ModifierOptions::Const) != ModifierOptions::None; in isConstType()
|
H A D | NativeTypePointer.cpp | 135 return (Record->getOptions() & PointerOptions::Const) != PointerOptions::None; in isConstType()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
H A D | DWARFTypePrinter.h | 60 bool SkipFirstParamIfArtificial, bool Const,
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-function-mocker_test.cc | 60 using testing::Const; 385 EXPECT_CALL(Const(this->mock_foo_), OverloadedOnConstness()) in TYPED_TEST() 389 EXPECT_EQ('a', Const(*this->foo_).OverloadedOnConstness()); in TYPED_TEST() 440 EXPECT_CALL(Const(this->mock_foo_), CTConst(_)).WillOnce(Return('a')); in TYPED_TEST() 442 EXPECT_EQ('a', Const(*this->foo_).CTConst(0)); in TYPED_TEST()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SCCPSolver.cpp | 69 Constant *Const = getConstantOrNull(V); in tryToReplaceWithConstant() local 70 if (!Const) in tryToReplaceWithConstant() 91 LLVM_DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n'); in tryToReplaceWithConstant() 94 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant() 104 if (auto *Const = dyn_cast<Constant>(Op)) in refineInstruction() local 105 return Const->toConstantRange(); in refineInstruction() 961 Constant *Const = nullptr; in getConstantOrNull() local 974 Const = ConstantStruct::get(ST, ConstVals); in getConstantOrNull() 979 Const = SCCPSolver::isConstant(LV) ? getConstant(LV, V->getType()) in getConstantOrNull() 982 assert(Const && "Constant is nullptr here!"); in getConstantOrNull() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 384 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() 1119 ConstantInt *Const; in CheckAndCreateOffsetAdd() local 1120 if ((Const = dyn_cast<ConstantInt>(NonVectorVal)) && in CheckAndCreateOffsetAdd() 1123 uint64_t N = Const->getZExtValue(); in CheckAndCreateOffsetAdd()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFTypePrinter.cpp | 538 DWARFDie D, DWARFDie Inner, bool SkipFirstParamIfArtificial, bool Const, in appendSubroutineNameAfter() argument 571 Const |= U.getTag() == DW_TAG_const_type; in appendSubroutineNameAfter() 647 if (Const) in appendSubroutineNameAfter()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | CodeView.h | 313 Const = 0x0001, enumerator 376 Const = 0x00000400, enumerator
|
/freebsd/contrib/llvm-project/clang/lib/Support/ |
H A D | RISCVVIntrinsicUtils.cpp | 639 if ((TM & TypeModifier::Const) == TypeModifier::Const) in parsePrototypeDescriptor() 646 TM |= TypeModifier::Const; in parsePrototypeDescriptor() 844 case TypeModifier::Const: in applyModifier()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Delinearization.cpp | 497 if (auto *Const = dyn_cast<SCEVConstant>(Expr)) in getIndexExpressionsFromGEP() local 498 if (Const->getValue()->isZero()) { in getIndexExpressionsFromGEP()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | MveEmitter.cpp | 192 bool Const; member in __anon819a2c470111::PointerType 195 PointerType(const Type *Pointee, bool Const) in PointerType() argument 196 : Type(TypeKind::Pointer), Pointee(Pointee), Const(Const) {} in PointerType() 208 if (Const) in cName() 1017 const PointerType *getPointerType(const Type *T, bool Const) { in getPointerType() argument 1018 PointerType PT(T, Const); in getPointerType()
|