| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | OpenCLBuiltins.td | 257 list<bit> Const = [0, 1, 0]; 453 Attr.Const>; 457 Attr.Const>; 467 def : Builtin<"get_work_dim", [UInt], Attr.Const>; 471 def : Builtin<name, [Size, UInt], Attr.Const>; 744 def : Builtin<name, [Int, Double], Attr.Const>; 746 def : Builtin<name, [Int, Half], Attr.Const>; 750 def : Builtin<name, [Int, SGenTypeN], Attr.Const>; 760 def : Builtin<name, [Int, Half, Half], Attr.Const>; 1193 Attr.Const>; [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTDC.cpp | 132 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp() local 135 if (!Const) in convertFCmp() 144 if (Const->isZero()) { in convertFCmp() 147 } else if (Const->isInfinity()) { in convertFCmp() 149 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp() 150 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp() 156 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp() 242 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp() local 245 if (!Const) in convertICmp() 255 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp() [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/tools/lldb-instr/ |
| H A D | Instrument.cpp | 33 static std::string GetRecordMethodMacroName(bool Static, bool Const, in GetRecordMethodMacroName() argument 42 if (Const) in GetRecordMethodMacroName() 56 static std::string GetRegisterMethodMacroName(bool Static, bool Const) { in GetRegisterMethodMacroName() argument 64 if (Const) in GetRegisterMethodMacroName() 73 bool Const) { in GetRecordMethodMacro() argument 77 OS << GetRecordMethodMacroName(Static, Const, Values.empty()); in GetRecordMethodMacro() 126 bool Static, bool Const) { in GetRegisterMethodMacro() argument 129 OS << GetRegisterMethodMacroName(Static, Const); in GetRegisterMethodMacro()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SDNodeDbgValue.h | 55 return u.Const; in getConst() 79 static SDDbgOperand fromConst(const Value *Const) { in fromConst() argument 80 return SDDbgOperand(Const); in fromConst() 107 const Value *Const; ///< Valid for constants. member 118 SDDbgOperand(const Value *C) : kind(CONST) { u.Const = C; } in SDDbgOperand()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SCCP.cpp | 101 Constant *Const = nullptr; in tryToReplaceWithConstant() local 115 Const = ConstantStruct::get(ST, ConstVals); in tryToReplaceWithConstant() 121 Const = in tryToReplaceWithConstant() 124 assert(Const && "Constant is nullptr here!"); in tryToReplaceWithConstant() 144 LLVM_DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n'); in tryToReplaceWithConstant() 147 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TypePromotion.cpp | 356 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeWrap() local 357 ICmpConst = Const; in isSafeWrap() 358 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeWrap() local 359 ICmpConst = Const; in isSafeWrap() 461 auto Const = cast<ConstantInt>(I->getOperand(1)); in PrepareWrappingAdds() local 462 auto *NewConst = ConstantInt::get(Ctx, Const->getValue().abs()); in PrepareWrappingAdds() 535 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local 536 Constant *NewConst = ConstantExpr::getZExt(Const, ExtTy); in PromoteTree()
|
| H A D | HardwareLoops.cpp | 363 if (auto *Const = dyn_cast<ConstantInt>(ICmp->getOperand(OpIdx))) in CanGenerateTest() local 364 return Const->isZero() && ICmp->getOperand(OpIdx ^ 1) == Count; in CanGenerateTest()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.cpp | 266 return buildSplatVector(Res, Const); in buildConstant() 269 auto Const = buildInstr(TargetOpcode::G_CONSTANT); in buildConstant() local 270 Const->setDebugLoc(DebugLoc()); in buildConstant() 271 Res.addDefToMIB(*getMRI(), Const); in buildConstant() 272 Const.addCImm(&Val); in buildConstant() 273 return Const; in buildConstant() 300 return buildSplatVector(Res, Const); in buildFConstant() 304 Const->setDebugLoc(DebugLoc()); in buildFConstant() 305 Res.addDefToMIB(*getMRI(), Const); in buildFConstant() 306 Const.addFPImm(&Val); in buildFConstant() [all …]
|
| H A D | Utils.cpp | 740 auto Const = getConstantVRegVal(MI.getOperand(I).getReg(), MRI); in isKnownToBeAPowerOfTwo() local 741 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordName.cpp | 197 if (Mods & uint16_t(ModifierOptions::Const)) in visitKnownRecord() 326 ConstantSym Const(SymbolKind::S_CONSTANT); in getSymbolName() local 328 cantFail(Mapping.visitKnownRecord(Sym, Const)); in getSymbolName() 330 return Const.Name; in getSymbolName()
|
| /freebsd-13.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-generated-function-mockers_test.cc | 63 using testing::Const; 287 EXPECT_CALL(Const(mock_foo_), OverloadedOnConstness()) in TEST_F() 291 EXPECT_EQ('a', Const(*foo_).OverloadedOnConstness()); in TEST_F() 338 EXPECT_CALL(Const(mock_foo_), CTConst(_)) in TEST_F() 341 EXPECT_EQ('a', Const(*foo_).CTConst(0)); in TEST_F()
|
| H A D | gmock-spec-builders_test.cc | 72 using testing::Const; 2547 TEST(VerifyAndClearTest, Const) { in TEST() argument 2549 ON_CALL(Const(b), DoB()) in TEST() 2552 EXPECT_CALL(Const(b), DoB()) in TEST() 2741 ON_CALL(Const(mock), Overloaded(5)).WillByDefault(Return(11)); in TEST() 2742 ON_CALL(Const(mock), Overloaded(7)).WillByDefault(Return(13)); in TEST()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 653 if (!Const.add(FillC, Offset, true)) in EmitDesignatedInitUpdater() 662 Const.condense(Offset, ElemTy); in EmitDesignatedInitUpdater() 665 if (!Const.add(Val, Offset, true)) in EmitDesignatedInitUpdater() 862 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local 863 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct() 874 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local 875 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct() 888 return ConstStructBuilder(Emitter, Const, Offset) in UpdateStruct() 1268 ConstantAggregateBuilder Const(CGM); in VisitDesignatedInitUpdateExpr() local 1269 Const.add(C, CharUnits::Zero(), false); in VisitDesignatedInitUpdateExpr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerCombiner.cpp | 132 auto Const = getConstantVRegValWithLookThrough(RHS, MRI); in matchAArch64MulConstCombine() local 133 if (!Const) in matchAArch64MulConstCombine() 136 const APInt ConstValue = Const->Value.sextOrSelf(Ty.getSizeInBits()); in matchAArch64MulConstCombine()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeTypeBuiltin.cpp | 35 return (Mods & ModifierOptions::Const) != ModifierOptions::None; in isConstType()
|
| H A D | NativeTypePointer.cpp | 134 return (Record->getOptions() & PointerOptions::Const) != PointerOptions::None; in isConstType()
|
| H A D | NativeTypeUDT.cpp | 138 return (Modifiers->Modifiers & ModifierOptions::Const) != in isConstType()
|
| /freebsd-13.1/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()
|
| H A D | MveEmitter.cpp | 192 bool Const; member in __anonb7c02cfb0111::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() 1018 const PointerType *getPointerType(const Type *T, bool Const) { in getPointerType() argument 1019 PointerType PT(T, Const); in getPointerType()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 369 Optional<int64_t> Const; in getVarAndConst() local 371 if ((Const = getIfConst(Add->getOperand(0)))) in getVarAndConst() 373 else if ((Const = getIfConst(Add->getOperand(1)))) in getVarAndConst() 379 int64_t Immediate = Const.getValue() << TypeScale; in getVarAndConst() 1093 ConstantInt *Const; in CheckAndCreateOffsetAdd() local 1094 if ((Const = dyn_cast<ConstantInt>(NonVectorVal)) && in CheckAndCreateOffsetAdd() 1097 uint64_t N = Const->getZExtValue(); in CheckAndCreateOffsetAdd()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeView.h | 304 Const = 0x0001, enumerator 364 Const = 0x00000400, enumerator
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionSpecialization.cpp | 141 auto *Const = IV.isConstant() ? Solver.getConstant(IV) in tryToReplaceWithConstant() local 143 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryBuiltins.cpp | 904 SizeOffsetType Const = Visitor.compute(V); in compute_() local 905 if (Visitor.bothKnown(Const)) in compute_() 906 return std::make_pair(ConstantInt::get(Context, Const.first), in compute_() 907 ConstantInt::get(Context, Const.second)); in compute_()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangeConstraintManager.cpp | 1404 using Const = const llvm::APSInt &; typedef in __anon55d9ca500411::ConstraintAssignorBase 1431 bool assign##Id##To##Const(const Id *Sym, Const Constraint) { return true; } 1438 if (const llvm::APSInt *Const = Constraint.getConcreteValue()) { \ 1439 ASSIGN(Id, Const, Sym, *Const); \ 1495 inline bool assignSymExprToConst(const SymExpr *Sym, Const Constraint); 1574 Const Zero = T.getZeroValue(); in interpreteAsBool()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/ |
| H A D | InstrRefBasedImpl.cpp | 815 Const, // A constant value contained in the MachineOperand field. enumerator 836 assert(Kind == Const); in DbgValue() 846 if (Kind == Const) { in dump() 871 else if (Kind == Const) in operator ==() 930 DbgValue Rec = DbgValue(MO, Properties, DbgValue::Const); in defVar() 1089 if (Var.second.Kind == DbgValue::Const) { in loadInlocs() 2798 if (InValue.Kind == DbgValue::Const || InValue.Kind == DbgValue::NoVal) in vlocDowngradeLattice() 2850 if (OutVal.Kind == DbgValue::Const || OutVal.Kind == DbgValue::NoVal) in pickVPHILoc() 3038 if (V.second->Kind == DbgValue::Const && FirstVal.Kind != DbgValue::Const) in vlocJoin()
|