| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | TinyPtrVector.h | 38 PtrUnion Val; 48 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 67 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 76 *Val.template get<VecTy*>() = *RHS.Val.template get<VecTy*>(); 81 TinyPtrVector(TinyPtrVector &&RHS) : Val(RHS.Val) { in TinyPtrVector() 106 Val = RHS.Val; 135 if (Val.isNull()) 144 if (Val.isNull()) 246 Val = NewVal; in push_back() 319 Val = Elt; in insert() [all …]
|
| H A D | DenseMapInfo.h | 42 return reinterpret_cast<T*>(Val); 48 return reinterpret_cast<T*>(Val); 63 static unsigned getHashValue(const char& Val) { return Val * 37U; } 74 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; } 85 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } 98 return (unsigned)(Val * 37UL); 112 return (unsigned)(Val * 37ULL); 125 static unsigned getHashValue(const short &Val) { return Val * 37U; } 133 static unsigned getHashValue(const int& Val) { return (unsigned)(Val * 37U); } 149 return (unsigned)(Val * 37UL); [all …]
|
| H A D | PointerUnion.h | 93 ValTy Val; 174 Val.initWithPointer( 179 Val.setPointerAndInt( 235 ValTy Val; 238 ValTy Val; 253 ValTy Val; 303 Val = nullptr; 318 Val = RHS; 365 ValTy Val; 386 return Val.template is<Ty>() && Val.template get<Ty>().template is<T>(); [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | Casting.h | 38 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 278 if (!Val) 289 if (!Val) 306 if (!Val) 324 return isa<X>(Val) ? cast<X>(Val) : nullptr; 329 return isa<X>(Val) ? cast<X>(Val) : nullptr; 334 return isa<X>(Val) ? cast<X>(Val) : nullptr; 345 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; 353 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; 359 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; [all …]
|
| H A D | MathExtras.h | 56 if (!Val) in count() 58 if (Val & 0x1) in count() 66 if ((Val & Mask) == 0) { in count() 67 Val >>= Shift; in count() 130 if (!Val) 136 T Tmp = Val >> Shift; 138 Val = Tmp; 269 T reverseBits(T Val) { 272 std::memcpy(in, &Val, sizeof(Val)); 275 std::memcpy(&Val, out, sizeof(Val)); [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/ELF/Arch/ |
| H A D | RISCV.cpp | 94 write32le(Loc, Val); in relocateOne() 97 write64le(Loc, Val); in relocateOne() 179 if (isInt<32>(Val)) { in relocateOne() 189 uint32_t Hi = Val + 0x800; in relocateOne() 197 uint32_t Hi = Val + 0x800; in relocateOne() 206 uint32_t Hi = Val + 0x800; in relocateOne() 215 *Loc += Val; in relocateOne() 230 *Loc -= Val; in relocateOne() 245 *Loc = Val; in relocateOne() 248 write16le(Loc, Val); in relocateOne() [all …]
|
| H A D | AArch64.cpp | 241 return (Val >> Start) & Mask; in getBits() 256 write16le(Loc, Val); in relocateOne() 261 write32le(Loc, Val); in relocateOne() 266 write64le(Loc, Val); in relocateOne() 269 or32AArch64Imm(Loc, Val); in relocateOne() 275 checkInt(Loc, Val, 33, Type); in relocateOne() 279 checkInt(Loc, Val, 21, Type); in relocateOne() 280 write32AArch64Addr(Loc, Val); in relocateOne() 351 or32AArch64Imm(Loc, Val); in relocateOne() 370 checkUInt(Loc, Val, 32, Type); in relaxTlsGdToLe() [all …]
|
| H A D | ARM.cpp | 399 write32le(Loc, Val); in relocateOne() 405 checkInt(Loc, Val, 31, Type); in relocateOne() 411 if (Val & 1) { in relocateOne() 429 checkInt(Loc, Val, 26, Type); in relocateOne() 433 checkInt(Loc, Val, 12, Type); in relocateOne() 452 if ((Val & 1) == 0) { in relocateOne() 455 Val = alignTo(Val, 4); in relocateOne() 483 (((~(Val >> 10)) ^ (Val >> 11)) & 0x2000) | // J1 in relocateOne() 484 (((~(Val >> 11)) ^ (Val >> 13)) & 0x0800) | // J2 in relocateOne() 495 (((Val >> 16) & 0xf000) << 4) | ((Val >> 16) & 0xfff)); in relocateOne() [all …]
|
| H A D | Mips.cpp | 467 std::tie(Type, Val) = calculateMipsRelChain(Loc, Type, Val); in relocateOne() 475 Val -= 0x8000; in relocateOne() 480 Val -= 0x7000; in relocateOne() 488 write32<E>(Loc, Val); in relocateOne() 493 write64<E>(Loc, Val); in relocateOne() 524 checkInt(Loc, Val, 16, Type); in relocateOne() 538 checkInt(Loc, Val, 16, Type); in relocateOne() 550 checkInt(Loc, Val, 7, Type); in relocateOne() 580 checkInt(Loc, Val, 18, Type); in relocateOne() 585 checkInt(Loc, Val, 21, Type); in relocateOne() [all …]
|
| H A D | PPC64.cpp | 597 return {Type, Val}; in toAddr16Rel() 622 std::tie(Type, Val) = toAddr16Rel(Type, Val); in relocateOne() 635 write16(Loc, Val); in relocateOne() 652 write16(Loc, ha(Val)); in relocateOne() 657 write16(Loc, hi(Val)); in relocateOne() 661 write16(Loc, higher(Val)); in relocateOne() 665 write16(Loc, highera(Val)); in relocateOne() 669 write16(Loc, highest(Val)); in relocateOne() 690 write16(Loc, lo(Val)); in relocateOne() 715 write32(Loc, Val); in relocateOne() [all …]
|
| H A D | Hexagon.cpp | 204 or32le(Loc, applyMask(0x000007e0, Val)); in relocateOne() 212 or32le(Loc, Val); in relocateOne() 216 or32le(Loc, applyMask(0x0fff3fff, Val >> 6)); in relocateOne() 219 or32le(Loc, applyMask(0x003000fe, Val >> 2)); in relocateOne() 225 or32le(Loc, applyMask(0x00202ffe, Val >> 2)); in relocateOne() 228 or32le(Loc, applyMask(0x00df20fe, Val >> 2)); in relocateOne() 235 or32le(Loc, applyMask(0x1ff3ffe, Val >> 2)); in relocateOne() 238 or32le(Loc, applyMask(0x1ff3ffe, Val & 0x3f)); in relocateOne() 241 or32le(Loc, applyMask(0x0fff3fff, Val >> 6)); in relocateOne() 244 or32le(Loc, applyMask(0x00c03fff, Val >> 16)); in relocateOne() [all …]
|
| H A D | SPARCV9.cpp | 31 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override; 81 checkUInt(Loc, Val, 32, Type); in relocateOne() 82 write32be(Loc, Val); in relocateOne() 86 checkInt(Loc, Val, 32, Type); in relocateOne() 87 write32be(Loc, Val); in relocateOne() 92 checkInt(Loc, Val, 32, Type); in relocateOne() 97 checkUInt(Loc, Val, 22, Type); in relocateOne() 98 write32be(Loc, (read32be(Loc) & ~0x003fffff) | (Val & 0x003fffff)); in relocateOne() 107 checkInt(Loc, Val, 21, Type); in relocateOne() 113 write32be(Loc, (read32be(Loc) & ~0x000003ff) | (Val & 0x000003ff)); in relocateOne() [all …]
|
| H A D | X86_64.cpp | 271 write64le(Loc, Val); in relaxTlsLdToLe() 275 write32le(Loc, Val); in relaxTlsLdToLe() 322 *Loc = Val; in relocateOne() 326 write16le(Loc, Val); in relocateOne() 330 write32le(Loc, Val); in relocateOne() 347 write32le(Loc, Val); in relocateOne() 357 write64le(Loc, Val); in relocateOne() 436 write32le(Loc, Val); in relaxGotNoPic() 457 write32le(Loc, Val); in relaxGotNoPic() 468 write32le(Loc, Val); in relaxGot() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 380 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 384 Result.Val = Val; in EvaluateValue() 439 Result.Val = -Result.Val; in EvaluateValue() 460 Result.Val = ~Result.Val; in EvaluateValue() 470 Result.Val = !Result.Val; in EvaluateValue() 721 Res = LHS.Val < RHS.Val; in EvaluateDirectiveSubExpr() 729 Res = LHS.Val > RHS.Val; in EvaluateDirectiveSubExpr() 741 Res = LHS.Val & RHS.Val; in EvaluateDirectiveSubExpr() 744 Res = LHS.Val ^ RHS.Val; in EvaluateDirectiveSubExpr() 747 Res = LHS.Val | RHS.Val; in EvaluateDirectiveSubExpr() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 468 Val &= 255; in decodeOperand_VGPR_32() 493 unsigned Val) const { in decodeOperand_SReg_32_XM0_XEXEC() 697 return (TTmpMin <= Val && Val <= TTmpMax)? Val - TTmpMin : -1; in getTTmpIdx() 705 if (VGPR_MIN <= Val && Val <= VGPR_MAX) { in decodeSrcOp() 718 if (INLINE_INTEGER_C_MIN <= Val && Val <= INLINE_INTEGER_C_MAX) in decodeSrcOp() 721 if (INLINE_FLOATING_C_MIN <= Val && Val <= INLINE_FLOATING_C_MAX) in decodeSrcOp() 742 assert(Val < 128); in decodeDstOp() 761 switch (Val) { in decodeSpecialReg32() 787 return errOperand(Val, "unknown operand encoding " + Twine(Val)); in decodeSpecialReg32() 793 switch (Val) { in decodeSpecialReg64() [all …]
|
| H A D | AMDGPUDisassembler.h | 74 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 75 MCOperand decodeOperand_VS_32(unsigned Val) const; 76 MCOperand decodeOperand_VS_64(unsigned Val) const; 77 MCOperand decodeOperand_VS_128(unsigned Val) const; 78 MCOperand decodeOperand_VSrc16(unsigned Val) const; 116 MCOperand decodeSpecialReg32(unsigned Val) const; 117 MCOperand decodeSpecialReg64(unsigned Val) const; 120 MCOperand decodeSDWASrc16(unsigned Val) const; 121 MCOperand decodeSDWASrc32(unsigned Val) const; 122 MCOperand decodeSDWAVopcDst(unsigned Val) const; [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/ubsan/ |
| H A D | ubsan_value.cc | 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() 92 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | SIMCCodeEmitter.cpp | 108 if (Val == 0x3800) // 0.5 in getLit16Encoding() 111 if (Val == 0xB800) // -0.5 in getLit16Encoding() 114 if (Val == 0x3C00) // 1.0 in getLit16Encoding() 117 if (Val == 0xBC00) // -1.0 in getLit16Encoding() 120 if (Val == 0x4000) // 2.0 in getLit16Encoding() 123 if (Val == 0xC000) // -2.0 in getLit16Encoding() 126 if (Val == 0x4400) // 4.0 in getLit16Encoding() 129 if (Val == 0xC400) // -4.0 in getLit16Encoding() 144 if (Val == FloatToBits(0.5f)) in getLit32Encoding() 150 if (Val == FloatToBits(1.0f)) in getLit32Encoding() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | YAMLTraits.cpp | 887 Val = n; in input() 903 Val = n; in input() 919 Val = n; in input() 933 Val = N; in input() 949 Val = N; in input() 964 Val = N; in input() 979 Val = N; in input() 992 Val = N; in input() 1027 Val = n; in input() 1042 Val = n; in input() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/MC/ |
| H A D | MCSymbolELF.cpp | 51 Val = 0; in setBinding() 54 Val = 1; in setBinding() 57 Val = 2; in setBinding() 60 Val = 3; in setBinding() 103 Val = 0; in setType() 106 Val = 1; in setType() 109 Val = 2; in setType() 112 Val = 3; in setType() 115 Val = 4; in setType() 118 Val = 5; in setType() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/ |
| H A D | FixedPoint.h | 76 APFixedPoint(const llvm::APInt &Val, const FixedPointSemantics &Sema) in APFixedPoint() argument 77 : Val(Val, !Sema.isSigned()), Sema(Sema) { in APFixedPoint() 78 assert(Val.getBitWidth() == Sema.getWidth() && in APFixedPoint() 82 APFixedPoint(uint64_t Val, const FixedPointSemantics &Sema) in APFixedPoint() argument 83 : APFixedPoint(llvm::APInt(Sema.getWidth(), Val, Sema.isSigned()), in APFixedPoint() 97 return APFixedPoint(Val >> Amt, Sema); in shr() 101 return APFixedPoint(Val << Amt, Sema); in shl() 105 if (Val < 0 && Val != -Val) // Cover the case when we have the min val in getIntPart() 106 return -(-Val >> getScale()); in getIntPart() 108 return Val >> getScale(); in getIntPart() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | LowerAtomic.cpp | 28 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() local 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() 69 Res = Builder.CreateOr(Orig, Val); in LowerAtomicRMWInst() 72 Res = Builder.CreateXor(Orig, Val); in LowerAtomicRMWInst() 76 Val, Orig); in LowerAtomicRMWInst() 80 Orig, Val); in LowerAtomicRMWInst() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | Value.h | 446 #define HANDLE_VALUE(Name) Name##Val, 672 if (Val) removeFromList(); in set() 673 Val = V; in set() 683 set(RHS.Val); 758 static inline bool doit(const Value &Val) { 765 static inline bool doit(const Value &Val) { 772 static inline bool doit(const Value &Val) { 785 static inline bool doit(const Value &Val) { 828 return isa<GlobalAlias>(Val) || isa<GlobalIFunc>(Val); 834 return isa<GlobalObject>(Val) || isa<GlobalIndirectSymbol>(Val); [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | ValueLattice.cpp | 13 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<() argument 14 if (Val.isUndefined()) in operator <<() 16 if (Val.isOverdefined()) in operator <<() 19 if (Val.isNotConstant()) in operator <<() 20 return OS << "notconstant<" << *Val.getNotConstant() << ">"; in operator <<() 21 if (Val.isConstantRange()) in operator <<() 22 return OS << "constantrange<" << Val.getConstantRange().getLower() << ", " in operator <<() 23 << Val.getConstantRange().getUpper() << ">"; in operator <<() 24 return OS << "constant<" << *Val.getConstant() << ">"; in operator <<()
|
| H A D | LazyValueInfo.cpp | 68 if (Val.isConstantRange() && in hasSingleValue() 72 if (Val.isConstant()) in hasSingleValue() 192 ValueCache[Val] = make_unique<ValueCacheEntryTy>(Val, this); in insertResult() 551 if (isa<Constant>(Val)) in hasBlockValue() 584 if (isa<Constant>(Val)) in solveBlockValue() 1102 if (LHS != Val && !match(LHS, m_Add(m_Specific(Val), m_ConstantInt()))) { in getValueFromICmpCondition() 1108 if (LHS != Val) in getValueFromICmpCondition() 1111 if (LHS == Val || Offset) { in getValueFromICmpCondition() 1312 if (Condition != Val) { in getEdgeValueLocal() 1632 if (Val.isConstant()) { in getPredicateResult() [all …]
|