Home
last modified time | relevance | path

Searched refs:Val (Results 1 – 25 of 948) sorted by relevance

12345678910>>...38

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTinyPtrVector.h40 PtrUnion Val;
46 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in ~TinyPtrVector()
50 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector()
51 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in TinyPtrVector()
52 Val = new VecTy(*V); in TinyPtrVector()
65 if (isa<EltTy>(Val)) {
67 Val = RHS.front();
69 Val = new VecTy(*cast<VecTy *>(RHS.Val));
74 if (isa<EltTy>(RHS.Val)) {
75 cast<VecTy *>(Val)->clear();
[all …]
H A DDenseMapInfo.h73 uintptr_t Val = static_cast<uintptr_t>(-1);
74 Val <<= Log2MaxAlign;
75 return reinterpret_cast<T*>(Val);
79 uintptr_t Val = static_cast<uintptr_t>(-2);
80 Val <<= Log2MaxAlign;
81 return reinterpret_cast<T*>(Val);
96 static unsigned getHashValue(const char& Val) { return Val * 37U; }
107 static unsigned getHashValue(const unsigned char &Val) { return Val * 37U; }
118 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; }
129 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; }
[all …]
H A DAPFixedPoint.h128 inline hash_code hash_value(const FixedPointSemantics &Val) { in hash_value() argument
129 return hash_value(bit_cast<uint32_t>(Val)); in hash_value()
141 static unsigned getHashValue(const FixedPointSemantics &Val) {
142 return hash_value(Val);
156 APFixedPoint(const APInt &Val, const FixedPointSemantics &Sema)
157 : Val(Val, !Sema.isSigned()), Sema(Sema) {
158 assert(Val.getBitWidth() == Sema.getWidth() &&
162 APFixedPoint(uint64_t Val, const FixedPointSemantics &Sema)
163 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned()), Sema) {}
168 APSInt getValue() const { return APSInt(Val, !Sema.isSigned()); }
[all …]
H A Dbit.h152 static unsigned count(T Val) {
153 if (!Val)
155 if (Val & 0x1)
163 if ((Val & Mask) == 0) {
164 Val >>= Shift;
176 static unsigned count(T Val) {
177 if (Val == 0)
181 return __builtin_ctz(Val);
184 _BitScanForward(&Index, Val);
192 static unsigned count(T Val) {
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSlowDynamicAPInt.cpp17 SlowDynamicAPInt::SlowDynamicAPInt(int64_t Val) in SlowDynamicAPInt() argument
18 : Val(64, Val, /*isSigned=*/true) {} in SlowDynamicAPInt()
20 SlowDynamicAPInt::SlowDynamicAPInt(const APInt &Val) : Val(Val) {} in SlowDynamicAPInt() argument
21 SlowDynamicAPInt &SlowDynamicAPInt::operator=(int64_t Val) { in operator =() argument
22 return *this = SlowDynamicAPInt(Val); in operator =()
24 SlowDynamicAPInt::operator int64_t() const { return Val.getSExtValue(); } in operator int64_t()
27 return hash_value(X.Val); in hash_value()
127 unsigned Width = getMaxWidth(Val, O.Val); in operator ==()
128 return Val.sext(Width) == O.Val.sext(Width); in operator ==()
131 unsigned Width = getMaxWidth(Val, O.Val); in operator !=()
[all …]
H A DYAMLTraits.cpp909 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument
910 Out << (Val ? "true" : "false"); in output()
913 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument
915 Val = *Parsed; in input()
921 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument
923 Out << Val; in output()
927 StringRef &Val) { in input() argument
928 Val = Scalar; in input()
932 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument
934 Out << Val; in output()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DCasting.h38 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue()
47 static RetType getSimplifiedValue(const From &Val) {
48 return simplify_type<From>::getSimplifiedValue(const_cast<From &>(Val));
64 static inline bool doit(const From &Val) { return To::classof(&Val); }
74 static inline bool doit(const From &Val) {
75 return isa_impl<To, From>::doit(Val);
80 static inline bool doit(const From &Val) {
81 return isa_impl<To, From>::doit(Val);
87 static inline bool doit(const std::unique_ptr<From> &Val) {
88 assert(Val && "isa<> used on a null pointer");
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp49 static void generateInstSeqImpl(int64_t Val, const MCSubtargetInfo &STI, in generateInstSeqImpl() argument
54 if (STI.hasFeature(RISCV::FeatureStdExtZbs) && isPowerOf2_64(Val) && in generateInstSeqImpl()
55 (!isInt<32>(Val) || Val == 0x800)) { in generateInstSeqImpl()
56 Res.emplace_back(RISCV::BSETI, Log2_64(Val)); in generateInstSeqImpl()
60 if (isInt<32>(Val)) { in generateInstSeqImpl()
68 int64_t Hi20 = ((Val + 0x800) >> 12) & 0xFFFFF; in generateInstSeqImpl()
69 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeqImpl()
106 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeqImpl()
107 Val = (uint64_t)Val - (uint64_t)Lo12; in generateInstSeqImpl()
113 if (!isInt<32>(Val)) { in generateInstSeqImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUPALMetadata.h58 void setRsrc1(unsigned CC, unsigned Val);
59 void setRsrc1(unsigned CC, const MCExpr *Val, MCContext &Ctx);
63 void setRsrc2(unsigned CC, unsigned Val);
64 void setRsrc2(unsigned CC, const MCExpr *Val, MCContext &Ctx);
68 void setSpiPsInputEna(unsigned Val);
72 void setSpiPsInputAddr(unsigned Val);
79 void setRegister(unsigned Reg, unsigned Val);
80 void setRegister(unsigned Reg, const MCExpr *Val, MCContext &Ctx);
88 void setNumUsedVgprs(unsigned CC, unsigned Val);
89 void setNumUsedVgprs(unsigned CC, const MCExpr *Val, MCContext &Ctx);
[all …]
H A DAMDGPUPALMetadata.cpp60 auto Val = mdconst::dyn_extract<ConstantInt>(Tuple->getOperand(I + 1)); in readFromIR() local
61 if (!Key || !Val) in readFromIR()
63 setRegister(Key->getZExtValue(), Val->getZExtValue()); in readFromIR()
137 void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, unsigned Val) { in setRsrc1() argument
138 setRegister(getRsrc1Reg(CC), Val); in setRsrc1()
141 void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, const MCExpr *Val, in setRsrc1() argument
143 setRegister(getRsrc1Reg(CC), Val, Ctx); in setRsrc1()
148 void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, unsigned Val) { in setRsrc2() argument
149 setRegister(getRsrc1Reg(CC) + 1, Val); in setRsrc2()
152 void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, const MCExpr *Val, in setRsrc2() argument
[all …]
H A DSIDefinesUtils.h44 inline const MCExpr *maskShiftSet(const MCExpr *Val, uint32_t Mask, in maskShiftSet() argument
48 Val = MCBinaryExpr::createAnd(Val, MaskExpr, Ctx); in maskShiftSet()
52 Val = MCBinaryExpr::createShl(Val, ShiftExpr, Ctx); in maskShiftSet()
54 return Val; in maskShiftSet()
63 inline const MCExpr *maskShiftGet(const MCExpr *Val, uint32_t Mask, in maskShiftGet() argument
67 Val = MCBinaryExpr::createLShr(Val, ShiftExpr, Ctx); in maskShiftGet()
71 Val = MCBinaryExpr::createAnd(Val, MaskExpr, Ctx); in maskShiftGet()
73 return Val; in maskShiftGet()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp50 llvm::APSInt Val; member in __anon807bcb150111::PPValue
53 PPValue(unsigned BitWidth) : Val(BitWidth) {} in PPValue()
60 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth()
61 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned()
132 Result.Val = !!Macro; in EvaluateDefined()
133 Result.Val.setIsUnsigned(false); // Result is signed intmax_t. in EvaluateDefined()
141 if (Result.Val != 0 && ValueLive) in EvaluateDefined()
278 Result.Val = 0; in EvaluateValue()
279 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue()
345 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerAtomic.cpp26 Value *Val = CXI->getNewValOperand(); in lowerAtomicCmpXchgInst() local
28 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in lowerAtomicCmpXchgInst()
30 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in lowerAtomicCmpXchgInst()
43 Value *Val) { in buildAtomicRMWValue() argument
47 return Val; in buildAtomicRMWValue()
49 return Builder.CreateAdd(Loaded, Val, "new"); in buildAtomicRMWValue()
51 return Builder.CreateSub(Loaded, Val, "new"); in buildAtomicRMWValue()
53 return Builder.CreateAnd(Loaded, Val, "new"); in buildAtomicRMWValue()
55 return Builder.CreateNot(Builder.CreateAnd(Loaded, Val), "new"); in buildAtomicRMWValue()
57 return Builder.CreateOr(Loaded, Val, "new"); in buildAtomicRMWValue()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.cpp75 return SIntMax(UIntMax(Val) << ExtraBits) >> ExtraBits; in getSIntValue()
78 return *reinterpret_cast<s64*>(Val); in getSIntValue()
81 return *reinterpret_cast<s128*>(Val); in getSIntValue()
92 return Val; in getUIntValue()
94 return *reinterpret_cast<u64*>(Val); in getUIntValue()
97 return *reinterpret_cast<u128*>(Val); in getUIntValue()
108 SIntMax Val = getSIntValue(); in getPositiveIntValue() local
109 CHECK(Val >= 0); in getPositiveIntValue()
110 return Val; in getPositiveIntValue()
125 internal_memcpy(&Value, &Val, 4); in getFloatValue()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_dense_map_info.h84 uptr Val = static_cast<uptr>(-1);
85 Val <<= Log2MaxAlign;
86 return reinterpret_cast<T *>(Val);
90 uptr Val = static_cast<uptr>(-2);
91 Val <<= Log2MaxAlign;
92 return reinterpret_cast<T *>(Val);
109 static constexpr unsigned getHashValue(const char &Val) { return Val * 37U; }
121 static constexpr unsigned getHashValue(const unsigned char &Val) {
122 return Val * 37U;
136 static constexpr unsigned getHashValue(const unsigned short &Val) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVE.h205 inline static VECC::CondCode VEValToCondCode(unsigned Val, bool IsInteger) { in VEValToCondCode() argument
207 switch (Val) { in VEValToCondCode()
226 switch (Val) { in VEValToCondCode()
309 inline static VERD::RoundingMode VEValToRD(unsigned Val) { in VEValToRD() argument
310 switch (Val) { in VEValToRD()
331 inline static bool isMImmVal(uint64_t Val) { in isMImmVal() argument
332 if (Val == 0) { in isMImmVal()
336 if (isMask_64(Val)) { in isMImmVal()
341 return (Val & (UINT64_C(1) << 63)) && isShiftedMask_64(Val); in isMImmVal()
344 inline static bool isMImm32Val(uint32_t Val) { in isMImm32Val() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSymbolELF.cpp45 unsigned Val; in setBinding() local
50 Val = 0; in setBinding()
53 Val = 1; in setBinding()
56 Val = 2; in setBinding()
59 Val = 3; in setBinding()
63 setFlags(OtherFlags | (Val << ELF_STB_Shift)); in setBinding()
68 uint32_t Val = (Flags >> ELF_STB_Shift) & 3; in getBinding() local
69 switch (Val) { in getBinding()
95 unsigned Val; in setType() local
100 Val = 0; in setType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModule.cpp290 uint64_t Val = Behavior->getLimitedValue(); in isValidModFlagBehavior() local
291 if (Val >= ModFlagBehaviorFirstVal && Val <= ModFlagBehaviorLastVal) { in isValidModFlagBehavior()
292 MFB = static_cast<ModFlagBehavior>(Val); in isValidModFlagBehavior()
300 MDString *&Key, Metadata *&Val) { in isValidModuleFlag() argument
309 Val = ModFlag.getOperand(2); in isValidModuleFlag()
322 Metadata *Val = nullptr; in getModuleFlagsMetadata() local
323 if (isValidModuleFlag(*Flag, MFB, Key, Val)) { in getModuleFlagsMetadata()
326 Flags.push_back(ModuleFlagEntry(MFB, Key, Val)); in getModuleFlagsMetadata()
338 return MFE.Val; in getModuleFlag()
361 Metadata *Val) { in addModuleFlag() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCInst.h85 void setImm(int64_t Val) { in setImm() argument
87 ImmVal = Val; in setImm()
95 void setSFPImm(uint32_t Val) { in setSFPImm() argument
97 SFPImmVal = Val; in setSFPImm()
105 void setDFPImm(uint64_t Val) { in setDFPImm() argument
107 FPImmVal = Val; in setDFPImm()
109 void setFPImm(double Val) { in setFPImm() argument
111 FPImmVal = bit_cast<uint64_t>(Val); in setFPImm()
119 void setExpr(const MCExpr *Val) { in setExpr() argument
121 ExprVal = Val; in setExpr()
[all …]
H A DMCInstBuilder.h43 MCInstBuilder &addImm(int64_t Val) { in addImm() argument
44 Inst.addOperand(MCOperand::createImm(Val)); in addImm()
49 MCInstBuilder &addSFPImm(uint32_t Val) { in addSFPImm() argument
50 Inst.addOperand(MCOperand::createSFPImm(Val)); in addSFPImm()
55 MCInstBuilder &addDFPImm(uint64_t Val) { in addDFPImm() argument
56 Inst.addOperand(MCOperand::createDFPImm(Val)); in addDFPImm()
61 MCInstBuilder &addExpr(const MCExpr *Val) { in addExpr() argument
62 Inst.addOperand(MCOperand::createExpr(Val)); in addExpr()
67 MCInstBuilder &addInst(const MCInst *Val) { in addInst() argument
68 Inst.addOperand(MCOperand::createInst(Val)); in addInst()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DValue.h68 void setProperty(llvm::StringRef Name, Value &Val) { in setProperty() argument
69 Properties.insert_or_assign(Name, &Val); in setProperty()
101 static bool classof(const Value *Val) { in classof() argument
102 return Val->getKind() == Kind::TopBool || in classof()
103 Val->getKind() == Kind::AtomicBool || in classof()
104 Val->getKind() == Kind::FormulaBool; in classof()
122 static bool classof(const Value *Val) { in classof() argument
123 return Val->getKind() == Kind::TopBool; in classof()
139 static bool classof(const Value *Val) { in classof() argument
140 return Val->getKind() == Kind::AtomicBool; in classof()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueLattice.cpp55 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<() argument
56 if (Val.isUnknown()) in operator <<()
58 if (Val.isUndef()) in operator <<()
60 if (Val.isOverdefined()) in operator <<()
63 if (Val.isNotConstant()) in operator <<()
64 return OS << "notconstant<" << *Val.getNotConstant() << ">"; in operator <<()
66 if (Val.isConstantRangeIncludingUndef()) in operator <<()
68 << Val.getConstantRange(true).getLower() << ", " in operator <<()
69 << Val.getConstantRange(true).getUpper() << ">"; in operator <<()
71 if (Val.isConstantRange()) in operator <<()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.h72 /// Returns true iff Val consists of one contiguous run of 1s with any number of in isRunOfOnes()
76 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes()
77 if (!Val) in isRunOfOnes()
80 if (isShiftedMask_32(Val)) {
82 MB = llvm::countl_zero(Val); in isRunOfOnes64()
84 ME = llvm::countl_zero((Val - 1) ^ Val); in isRunOfOnes64()
87 Val = ~Val; // invert mask in isRunOfOnes64()
88 if (isShiftedMask_32(Val)) { in isRunOfOnes64()
57 isRunOfOnes(unsigned Val,unsigned & MB,unsigned & ME) isRunOfOnes() argument
81 isRunOfOnes64(uint64_t Val,unsigned & MB,unsigned & ME) isRunOfOnes64() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DSandboxIR.cpp19 void Use::set(Value *V) { LLVMUse->set(V->Val); } in set()
80 Value::Value(ClassID SubclassID, llvm::Value *Val, Context &Ctx) in Value() argument
81 : SubclassID(SubclassID), Val(Val), Ctx(Ctx) { in Value()
89 if (Val->use_begin() != Val->use_end()) in use_begin()
90 LLVMUse = &*Val->use_begin(); in use_begin()
92 Val->use_begin()->getUser())) in use_begin()
98 auto UseBegin = Val->use_begin(); in user_begin()
99 auto UseEnd = Val->use_end(); in user_begin()
108 unsigned Value::getNumUses() const { return range_size(Val->users()); } in getNumUses()
113 llvm::Value *OtherVal = OtherV->Val; in replaceUsesWithIf()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUse.h54 if (Val) in ~Use()
65 operator Value *() const { return Val; }
66 Value *get() const { return Val; } in get()
74 inline void set(Value *Val);
79 Value *operator->() { return Val; }
80 const Value *operator->() const { return Val; }
93 Value *Val = nullptr;
118 static SimpleType getSimplifiedValue(Use &Val) { return Val.get(); }
123 static SimpleType getSimplifiedValue(const Use &Val) { return Val.get(); }

12345678910>>...38