| /NextBSD/contrib/llvm/include/llvm/ADT/ |
| HD | TinyPtrVector.h | 33 PtrUnion Val; 38 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 42 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 43 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 44 Val = new VecTy(*V); in TinyPtrVector() 56 if (Val.template is<EltTy>()) { 58 Val = RHS.front(); 60 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 65 if (RHS.Val.template is<EltTy>()) { 66 Val.template get<VecTy*>()->clear(); [all …]
|
| HD | PointerUnion.h | 86 ValTy Val; 100 PointerUnion(PT1 V) : Val( 103 PointerUnion(PT2 V) : Val( 112 return !PointerLikeTypeTraits<PT1>::getFromVoidPointer(Val.getPointer()); 124 return static_cast<int>(Val.getInt()) == TyNo; 132 return PointerLikeTypeTraits<T>::getFromVoidPointer(Val.getPointer()); 153 assert(get<PT1>() == Val.getPointer() && 155 return (PT1 *)Val.getAddrOfPointer(); 160 Val.initWithPointer(nullptr); 167 Val.initWithPointer( [all …]
|
| HD | DenseMapInfo.h | 36 uintptr_t Val = static_cast<uintptr_t>(-1); 37 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 38 return reinterpret_cast<T*>(Val); 41 uintptr_t Val = static_cast<uintptr_t>(-2); 42 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 43 return reinterpret_cast<T*>(Val); 56 static unsigned getHashValue(const char& Val) { return Val * 37U; } 66 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } 76 static unsigned getHashValue(const unsigned long& Val) { 77 return (unsigned)(Val * 37UL); [all …]
|
| HD | Twine.h | 301 explicit Twine(char Val) in Twine() argument 303 LHS.character = Val; in Twine() 307 explicit Twine(signed char Val) in Twine() argument 309 LHS.character = static_cast<char>(Val); in Twine() 313 explicit Twine(unsigned char Val) in Twine() argument 315 LHS.character = static_cast<char>(Val); in Twine() 319 explicit Twine(unsigned Val) in Twine() argument 321 LHS.decUI = Val; in Twine() 325 explicit Twine(int Val) in Twine() argument 327 LHS.decI = Val; in Twine() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Support/ |
| HD | Casting.h | 36 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 45 static RetType getSimplifiedValue(const From& Val) { 46 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val)); 55 static inline bool doit(const From &Val) { 56 return To::classof(&Val); 68 static inline bool doit(const From &Val) { 69 return isa_impl<To, From>::doit(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) { [all …]
|
| HD | MathExtras.h | 44 static std::size_t count(T Val, ZeroBehavior) { in count() 45 if (!Val) in count() 47 if (Val & 0x1) in count() 55 if ((Val & Mask) == 0) { in count() 56 Val >>= Shift; in count() 68 static std::size_t count(T Val, ZeroBehavior ZB) { 69 if (ZB != ZB_Undefined && Val == 0) 73 return __builtin_ctz(Val); 76 _BitScanForward(&Index, Val); 84 static std::size_t count(T Val, ZeroBehavior ZB) { [all …]
|
| HD | EndianStream.h | 29 template <typename value_type> void write(value_type Val) { in write() 30 Val = byte_swap<value_type, endian>(Val); in write() 31 OS.write((const char *)&Val, sizeof(value_type)); in write() 37 inline void Writer<little>::write<float>(float Val) { 38 write(FloatToBits(Val)); 43 inline void Writer<little>::write<double>(double Val) { 44 write(DoubleToBits(Val)); 49 inline void Writer<big>::write<float>(float Val) { 50 write(FloatToBits(Val)); 55 inline void Writer<big>::write<double>(double Val) { [all …]
|
| HD | YAMLTraits.h | 520 void enumCase(T &Val, const char* Str, const T ConstVal) { 521 if ( matchEnumScalar(Str, outputting() && Val == ConstVal) ) { 522 Val = ConstVal; 528 void enumCase(T &Val, const char* Str, const uint32_t ConstVal) { 529 if ( matchEnumScalar(Str, outputting() && Val == static_cast<T>(ConstVal)) ) { 530 Val = ConstVal; 535 void enumFallback(T &Val) { 538 FBT Res = (uint64_t)Val; 540 Val = (uint64_t)Res; 545 void bitSetCase(T &Val, const char* Str, const T ConstVal) { [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/Lex/ |
| HD | PPExpressions.cpp | 37 llvm::APSInt Val; member in __anon7cd6978e0111::PPValue 40 PPValue(unsigned BitWidth) : Val(BitWidth) {} in PPValue() 42 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() 43 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned() 112 Result.Val = !!Macro; in EvaluateDefined() 113 Result.Val.setIsUnsigned(false); // Result is signed intmax_t. in EvaluateDefined() 116 if (Result.Val != 0 && ValueLive) in EvaluateDefined() 190 Result.Val = II->getTokenID() == tok::kw_true; in EvaluateValue() 191 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue() 239 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue() [all …]
|
| /NextBSD/contrib/compiler-rt/lib/ubsan/ |
| HD | ubsan_value.cc | 30 return SIntMax(Val) << ExtraBits >> ExtraBits; in getSIntValue() 33 return *reinterpret_cast<s64*>(Val); in getSIntValue() 36 return *reinterpret_cast<s128*>(Val); in getSIntValue() 47 return Val; in getUIntValue() 49 return *reinterpret_cast<u64*>(Val); in getUIntValue() 52 return *reinterpret_cast<u128*>(Val); in getUIntValue() 63 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 64 CHECK(Val >= 0); in getPositiveIntValue() 65 return Val; in getPositiveIntValue() 80 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
| /NextBSD/contrib/llvm/lib/Support/ |
| HD | YAMLTraits.cpp | 739 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 740 Out << (Val ? "true" : "false"); in output() 743 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 745 Val = true; in input() 748 Val = false; in input() 754 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 756 Out << Val; in output() 760 StringRef &Val) { in input() argument 761 Val = Scalar; in input() 765 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument [all …]
|
| /NextBSD/contrib/llvm/lib/MC/ |
| HD | MCSymbolELF.cpp | 45 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 = (getFlags() & (0x3 << ELF_STB_Shift)) >> ELF_STB_Shift; in getBinding() local 69 switch (Val) { in getBinding() 95 unsigned Val; in setType() local 100 Val = 0; in setType() [all …]
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | LazyValueInfo.cpp | 84 Constant *Val; member in __anon50e03b1b0111::LVILatticeVal 88 LVILatticeVal() : Tag(undefined), Val(nullptr), Range(1, true) {} in LVILatticeVal() 116 return Val; in getConstant() 121 return Val; in getNotConstant() 150 Val = V; in markConstant() 168 Val = V; in markNotConstant() 200 Val = RHS.Val; in mergeIn() 207 if (Val == RHS.Val) in mergeIn() 213 if (Val == RHS.Val) in mergeIn() 237 if (Val == RHS.Val) in mergeIn() [all …]
|
| /NextBSD/contrib/llvm/lib/Transforms/Scalar/ |
| HD | LowerAtomic.cpp | 28 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() local 32 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst() 46 Value *Val = RMWI->getValOperand(); in LowerAtomicRMWInst() local 54 Res = Val; in LowerAtomicRMWInst() 57 Res = Builder.CreateAdd(Orig, Val); in LowerAtomicRMWInst() 60 Res = Builder.CreateSub(Orig, Val); in LowerAtomicRMWInst() 63 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst() 66 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst() 69 Res = Builder.CreateOr(Orig, Val); in LowerAtomicRMWInst() 72 Res = Builder.CreateXor(Orig, Val); in LowerAtomicRMWInst() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| HD | PPCMCTargetDesc.h | 60 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument 61 if (!Val) in isRunOfOnes() 64 if (isShiftedMask_32(Val)) { in isRunOfOnes() 66 MB = countLeadingZeros(Val); in isRunOfOnes() 68 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes() 71 Val = ~Val; // invert mask in isRunOfOnes() 72 if (isShiftedMask_32(Val)) { in isRunOfOnes() 74 ME = countLeadingZeros(Val) - 1; in isRunOfOnes() 76 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
|
| /NextBSD/contrib/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| HD | SIMCCodeEmitter.cpp | 100 static uint32_t getLit32Encoding(uint32_t Val) { in getLit32Encoding() argument 101 uint32_t IntImm = getIntInlineImmEncoding(static_cast<int32_t>(Val)); in getLit32Encoding() 105 if (Val == FloatToBits(0.5f)) in getLit32Encoding() 108 if (Val == FloatToBits(-0.5f)) in getLit32Encoding() 111 if (Val == FloatToBits(1.0f)) in getLit32Encoding() 114 if (Val == FloatToBits(-1.0f)) in getLit32Encoding() 117 if (Val == FloatToBits(2.0f)) in getLit32Encoding() 120 if (Val == FloatToBits(-2.0f)) in getLit32Encoding() 123 if (Val == FloatToBits(4.0f)) in getLit32Encoding() 126 if (Val == FloatToBits(-4.0f)) in getLit32Encoding() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/IR/ |
| HD | Use.h | 84 if (Val) in ~Use() 91 Use(PrevPtrTag tag) : Val(nullptr) { Prev.setInt(tag); } in Use() 94 operator Value *() const { return Val; } 95 Value *get() const { return Val; } in get() 103 inline void set(Value *Val); 110 set(RHS.Val); 114 Value *operator->() { return Val; } 115 const Value *operator->() const { return Val; } 135 Value *Val; variable 161 static SimpleType getSimplifiedValue(Use &Val) { return Val.get(); } [all …]
|
| HD | Value.h | 344 #define HANDLE_VALUE(Name) Name##Val, 348 #define HANDLE_CONSTANT_MARKER(Marker, Constant) Marker = Constant##Val, 517 if (Val) removeFromList(); in set() 518 Val = V; in set() 612 static inline bool doit(const Value &Val) { 613 return Val.getValueID() >= Value::ConstantFirstVal && 614 Val.getValueID() <= Value::ConstantLastVal; 619 static inline bool doit (const Value &Val) { 620 return Val.getValueID() == Value::ArgumentVal; 625 static inline bool doit(const Value &Val) { [all …]
|
| /NextBSD/contrib/llvm/include/llvm/MC/ |
| HD | MCInst.h | 78 void setImm(int64_t Val) { in setImm() argument 80 ImmVal = Val; in setImm() 88 void setFPImm(double Val) { in setFPImm() argument 90 FPImmVal = Val; in setFPImm() 97 void setExpr(const MCExpr *Val) { in setExpr() argument 99 ExprVal = Val; in setExpr() 106 void setInst(const MCInst *Val) { in setInst() argument 108 InstVal = Val; in setInst() 117 static MCOperand createImm(int64_t Val) { in createImm() argument 120 Op.ImmVal = Val; in createImm() [all …]
|
| /NextBSD/contrib/llvm/lib/IR/ |
| HD | Use.cpp | 18 if (Val == RHS.Val) in swap() 21 if (Val) in swap() 24 Value *OldVal = Val; in swap() 25 if (RHS.Val) { in swap() 27 Val = RHS.Val; in swap() 28 Val->addUse(*this); in swap() 30 Val = nullptr; in swap() 34 RHS.Val = OldVal; in swap() 35 RHS.Val->addUse(RHS); in swap() 37 RHS.Val = nullptr; in swap()
|
| /NextBSD/contrib/llvm/lib/Target/SystemZ/ |
| HD | SystemZ.h | 105 static inline bool isImmLL(uint64_t Val) { in isImmLL() argument 106 return (Val & ~0x000000000000ffffULL) == 0; in isImmLL() 110 static inline bool isImmLH(uint64_t Val) { in isImmLH() argument 111 return (Val & ~0x00000000ffff0000ULL) == 0; in isImmLH() 115 static inline bool isImmHL(uint64_t Val) { in isImmHL() argument 116 return (Val & ~0x00000ffff00000000ULL) == 0; in isImmHL() 120 static inline bool isImmHH(uint64_t Val) { in isImmHH() argument 121 return (Val & ~0xffff000000000000ULL) == 0; in isImmHH() 125 static inline bool isImmLF(uint64_t Val) { in isImmLF() argument 126 return (Val & ~0x00000000ffffffffULL) == 0; in isImmLF() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/ |
| HD | TargetRecip.cpp | 116 StringRef Val = Args[i]; in parseIndividualParams() local 118 bool IsDisabled = Val[0] == DisabledPrefix; in parseIndividualParams() 121 Val = Val.substr(1); in parseIndividualParams() 126 if (parseRefinementStep(Val, RefPos, RefSteps)) { in parseIndividualParams() 128 RefStepString = Val.substr(RefPos + 1); in parseIndividualParams() 129 Val = Val.substr(0, RefPos); in parseIndividualParams() 132 RecipIter Iter = RecipMap.find(Val); in parseIndividualParams() 135 Iter = RecipMap.find(Val.str() + 'f'); in parseIndividualParams() 137 Iter = RecipMap.find(Val.str() + 'd'); in parseIndividualParams() 143 if (RecipMap[Val.str() + 'd'].Enabled != Uninitialized) { in parseIndividualParams() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/CodeGen/ |
| HD | MachineOperand.h | 178 } Val; member 366 void setIsUse(bool Val = true) { setIsDef(!Val); } 368 void setIsDef(bool Val = true); 370 void setImplicit(bool Val = true) { 372 IsImp = Val; 375 void setIsKill(bool Val = true) { 377 assert((!Val || !isDebug()) && "Marking a debug operation as kill"); 378 IsKill = Val; 381 void setIsDead(bool Val = true) { 383 IsDead = Val; [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| HD | TestAfterDivZeroChecker.cpp | 83 void reportBug(SVal Val, CheckerContext &C) const; 169 void TestAfterDivZeroChecker::reportBug(SVal Val, CheckerContext &C) const { in reportBug() argument 179 R->addVisitor(llvm::make_unique<DivisionBRVisitor>(Val.getAsSymbol(), in reportBug() 229 SVal Val = C.getSVal(LRHS ? B->getLHS() : B->getRHS()); in checkBranchCondition() local 230 if (hasDivZeroMap(Val, C)) in checkBranchCondition() 231 reportBug(Val, C); in checkBranchCondition() 235 SVal Val; in checkBranchCondition() local 238 Val = C.getSVal(I->getSubExpr()); in checkBranchCondition() 240 if (hasDivZeroMap(Val, C)) in checkBranchCondition() 241 reportBug(Val, C); in checkBranchCondition() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Bitcode/ |
| HD | BitstreamWriter.h | 106 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument 108 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit() 109 CurValue |= Val << CurBit; in Emit() 119 CurValue = Val >> (32-CurBit); in Emit() 125 void Emit64(uint64_t Val, unsigned NumBits) { in Emit64() argument 127 Emit((uint32_t)Val, NumBits); in Emit64() 129 Emit((uint32_t)Val, 32); in Emit64() 130 Emit((uint32_t)(Val >> 32), NumBits-32); in Emit64() 142 void EmitVBR(uint32_t Val, unsigned NumBits) { in EmitVBR() argument 147 while (Val >= Threshold) { in EmitVBR() [all …]
|