/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>; 806 def : Builtin<name, [Int, Double], Attr.Const>; 808 def : Builtin<name, [Int, Half], Attr.Const>; 812 def : Builtin<name, [Int, SGenTypeN], Attr.Const>; 822 def : Builtin<name, [Int, Half, Half], Attr.Const>; 1224 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/llvm/lib/Target/SPIRV/ |
H A D | SPIRVCallLowering.cpp | 65 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() 331 ConstantInt *Const = getConstInt(MD2, 0); in lowerFormalArguments() local 332 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments() 337 ConstantInt *Const = getConstInt(MD2, j); in lowerFormalArguments() local 338 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments() [all …]
|
H A D | SPIRVPreLegalizer.cpp | 50 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 D | SPIRVBuiltins.cpp | 1430 const MachineInstr *Const = getDefInstrMaybeConstant(ConstRegister, MRI); in generateSpecConstantInst() local 1431 assert(Const && in generateSpecConstantInst() 1432 (Const->getOpcode() == TargetOpcode::G_CONSTANT || in generateSpecConstantInst() 1433 Const->getOpcode() == TargetOpcode::G_FCONSTANT) && in generateSpecConstantInst() 1436 const MachineOperand &ConstOperand = Const->getOperand(1); in generateSpecConstantInst() 1448 if (Const->getOpcode() == TargetOpcode::G_CONSTANT) in generateSpecConstantInst() 1495 Register Const; in buildNDRange() local 1516 Const = GR->getOrCreateConsIntArray(0, MIRBuilder, SpvFieldTy); in buildNDRange() 1518 Const = GR->buildConstantInt(0, MIRBuilder, SpvTy); in buildNDRange() 1521 LocalWorkSize = Const; in buildNDRange() [all …]
|
H A D | SPIRVEmitIntrinsics.cpp | 514 Constant *Const = isAggrToReplace(Init) ? IRB->getInt32(1) : Init; in processGlobalValue() local 516 {GV.getType(), Ty}, {&GV, Const}); in processGlobalValue() 559 Constant *Const = UndefValue::get(TypeToAssign); in insertAssignTypeIntrs() local 560 buildIntrWithMD(Intrinsic::spv_assign_type, {Ty}, Const, I, {}); in insertAssignTypeIntrs()
|
/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/Transforms/IPO/ |
H A D | FunctionSpecialization.cpp | 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() 449 Constant *Const = LastVisited->second; in visitCmpInst() local [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | WithCache.h | 33 template <typename T, bool Const> 34 using conditionally_const_t = std::conditional_t<Const, const T, T>;
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TypePromotion.cpp | 348 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeWrap() local 349 ICmpConstant = Const; in isSafeWrap() 350 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeWrap() local 351 ICmpConstant = Const; in isSafeWrap() 490 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local 496 ConstantInt::get(Const->getContext(), in PromoteTree() 500 ? Const->getValue().sext(PromotedWidth) in PromoteTree() 501 : Const->getValue().zext(PromotedWidth)); 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 | 324 return buildSplatVector(Res, Const); in buildConstant() 327 auto Const = buildInstr(TargetOpcode::G_CONSTANT); in buildConstant() local 328 Const->setDebugLoc(DebugLoc()); in buildConstant() 329 Res.addDefToMIB(*getMRI(), Const); in buildConstant() 330 Const.addCImm(&Val); in buildConstant() 331 return Const; in buildConstant() 361 return buildSplatVector(Res, Const); in buildFConstant() 365 Const->setDebugLoc(DebugLoc()); in buildFConstant() 366 Res.addDefToMIB(*getMRI(), Const); in buildFConstant() 367 Const.addFPImm(&Val); in buildFConstant() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 666 if (!Const.add(FillC, Offset, true)) in EmitDesignatedInitUpdater() 675 Const.condense(Offset, ElemTy); in EmitDesignatedInitUpdater() 678 if (!Const.add(Val, Offset, true)) in EmitDesignatedInitUpdater() 884 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local 885 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct() 896 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local 897 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct() 910 return ConstStructBuilder(Emitter, Const, Offset) in UpdateStruct() 1321 ConstantAggregateBuilder Const(CGM); in VisitDesignatedInitUpdateExpr() local 1322 Const.add(C, CharUnits::Zero(), false); in VisitDesignatedInitUpdateExpr() [all …]
|
H A D | CGHLSLRuntime.cpp | 81 for (auto &Const : Buf.Constants) { in layoutBuffer() local 82 GlobalVariable *GV = Const.first; in layoutBuffer() 83 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()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | ClangSyntaxEmitter.cpp | 222 for (const char *Const : {"", "const "}) in EmitClangSyntaxNodeClasses() 227 Role, Constraint.NodeType, Const); in EmitClangSyntaxNodeClasses()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
H A D | DWARFTypePrinter.h | 60 bool SkipFirstParamIfArtificial, bool Const,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SCCPSolver.cpp | 77 Constant *Const = getConstantOrNull(V); in tryToReplaceWithConstant() local 78 if (!Const) in tryToReplaceWithConstant() 99 LLVM_DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n'); in tryToReplaceWithConstant() 102 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant() 112 if (auto *Const = dyn_cast<ConstantInt>(Op)) in refineInstruction() local 113 return ConstantRange(Const->getValue()); in refineInstruction() 917 Constant *Const = nullptr; in getConstantOrNull() local 930 Const = ConstantStruct::get(ST, ConstVals); in getConstantOrNull() 935 Const = SCCPSolver::isConstant(LV) ? getConstant(LV, V->getType()) in getConstantOrNull() 938 assert(Const && "Constant is nullptr here!"); in getConstantOrNull() [all …]
|
/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/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() 1113 ConstantInt *Const; in CheckAndCreateOffsetAdd() local 1114 if ((Const = dyn_cast<ConstantInt>(NonVectorVal)) && in CheckAndCreateOffsetAdd() 1117 uint64_t N = Const->getZExtValue(); in CheckAndCreateOffsetAdd()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFTypePrinter.cpp | 522 DWARFDie D, DWARFDie Inner, bool SkipFirstParamIfArtificial, bool Const, in appendSubroutineNameAfter() argument 555 Const |= U.getTag() == DW_TAG_const_type; in appendSubroutineNameAfter() 628 if (Const) in appendSubroutineNameAfter()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | CodeView.h | 306 Const = 0x0001, enumerator 369 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/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerCombiner.cpp | 146 auto Const = getIConstantVRegValWithLookThrough(RHS, MRI); in matchAArch64MulConstCombine() local 147 if (!Const) in matchAArch64MulConstCombine() 150 APInt ConstValue = Const->Value.sext(Ty.getSizeInBits()); in matchAArch64MulConstCombine()
|
/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()
|