/netbsd/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
H A D | TinyPtrVector.h | 41 PtrUnion Val; 51 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 70 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 79 *Val.template get<VecTy*>() = *RHS.Val.template get<VecTy*>(); 84 TinyPtrVector(TinyPtrVector &&RHS) : Val(RHS.Val) { in TinyPtrVector() 109 Val = RHS.Val; 138 if (Val.isNull()) 147 if (Val.isNull()) 247 Val = NewVal; in push_back() 274 Val = EltTy(); in clear() [all …]
|
H A D | DenseMapInfo.h | 69 Val <<= Log2MaxAlign; 75 Val <<= Log2MaxAlign; 91 static unsigned getHashValue(const char& Val) { return Val * 37U; } 102 static unsigned getHashValue(const unsigned char &Val) { return Val * 37U; } 113 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; } 124 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } 137 return (unsigned)(Val * 37UL); 151 return (unsigned)(Val * 37ULL); 164 static unsigned getHashValue(const short &Val) { return Val * 37U; } 172 static unsigned getHashValue(const int& Val) { return (unsigned)(Val * 37U); } [all …]
|
H A D | APFixedPoint.h | 102 APFixedPoint(const APInt &Val, const FixedPointSemantics &Sema) in APFixedPoint() argument 103 : Val(Val, !Sema.isSigned()), Sema(Sema) { in APFixedPoint() 104 assert(Val.getBitWidth() == Sema.getWidth() && in APFixedPoint() 108 APFixedPoint(uint64_t Val, const FixedPointSemantics &Sema) in APFixedPoint() argument 114 APSInt getValue() const { return APSInt(Val, !Sema.isSigned()); } in getValue() 122 bool getBoolValue() const { return Val.getBoolValue(); } in getBoolValue() 147 return APFixedPoint(Val >> Amt, Sema); 157 if (Val < 0 && Val != -Val) // Cover the case when we have the min val in getIntPart() 158 return -(-Val >> getScale()); in getIntPart() 160 return Val >> getScale(); in getIntPart() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | Casting.h | 148 return isa<First>(Val) || isa<Second, Rest...>(Val); 156 if (!Val) 291 if (!Val) 301 if (!Val) 318 if (!Val) 335 return isa<X>(Val) ? cast<X>(Val) : nullptr; 340 return isa<X>(Val) ? cast<X>(Val) : nullptr; 345 return isa<X>(Val) ? cast<X>(Val) : nullptr; 355 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; 362 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; [all …]
|
H A D | MathExtras.h | 92 if (!Val) in count() 94 if (Val & 0x1) in count() 102 if ((Val & Mask) == 0) { in count() 103 Val >>= Shift; in count() 166 if (!Val) 172 T Tmp = Val >> Shift; 174 Val = Tmp; 305 T reverseBits(T Val) { 308 std::memcpy(in, &Val, sizeof(Val)); 311 std::memcpy(&Val, out, sizeof(Val)); [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/Disassembler/ |
H A D | AMDGPUDisassembler.h | 97 MCOperand decodeOperand_VS_32(unsigned Val) const; 98 MCOperand decodeOperand_VS_64(unsigned Val) const; 127 MCOperand decodeOperand_AV_32(unsigned Val) const; 128 MCOperand decodeOperand_AV_64(unsigned Val) const; 157 MCOperand decodeSpecialReg32(unsigned Val) const; 158 MCOperand decodeSpecialReg64(unsigned Val) const; 161 MCOperand decodeSDWASrc16(unsigned Val) const; 162 MCOperand decodeSDWASrc32(unsigned Val) const; 163 MCOperand decodeSDWAVopcDst(unsigned Val) const; 165 MCOperand decodeBoolReg(unsigned Val) const; [all …]
|
H A D | AMDGPUDisassembler.cpp | 916 Val &= 255; in decodeOperand_VGPR_32() 1237 return (TTmpMin <= Val && Val <= TTmpMax)? Val - TTmpMin : -1; in getTTmpIdx() 1246 Val &= 511; in decodeSrcOp() 1248 if (VGPR_MIN <= Val && Val <= VGPR_MAX) { in decodeSrcOp() 1263 if (INLINE_INTEGER_C_MIN <= Val && Val <= INLINE_INTEGER_C_MAX) in decodeSrcOp() 1266 if (INLINE_FLOATING_C_MIN <= Val && Val <= INLINE_FLOATING_C_MAX) in decodeSrcOp() 1308 switch (Val) { in decodeSpecialReg32() 1334 return errOperand(Val, "unknown operand encoding " + Twine(Val)); in decodeSpecialReg32() 1340 switch (Val) { in decodeSpecialReg64() 1358 return errOperand(Val, "unknown operand encoding " + Twine(Val)); in decodeSpecialReg64() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 407 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 411 Result.Val = Val; in EvaluateValue() 466 Result.Val = -Result.Val; in EvaluateValue() 487 Result.Val = ~Result.Val; in EvaluateValue() 497 Result.Val = !Result.Val; in EvaluateValue() 748 Res = LHS.Val < RHS.Val; in EvaluateDirectiveSubExpr() 756 Res = LHS.Val > RHS.Val; in EvaluateDirectiveSubExpr() 768 Res = LHS.Val & RHS.Val; in EvaluateDirectiveSubExpr() 771 Res = LHS.Val ^ RHS.Val; in EvaluateDirectiveSubExpr() 774 Res = LHS.Val | RHS.Val; in EvaluateDirectiveSubExpr() [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/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 …]
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/ubsan/ |
H A D | ubsan_value.cc | 31 return *reinterpret_cast<s64*>(Val); in getSIntValue() 34 return *reinterpret_cast<s128*>(Val); in getSIntValue() 45 return Val; in getUIntValue() 47 return *reinterpret_cast<u64*>(Val); in getUIntValue() 50 return *reinterpret_cast<u128*>(Val); in getUIntValue() 61 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 62 CHECK(Val >= 0); in getPositiveIntValue() 63 return Val; in getPositiveIntValue() 78 internal_memcpy(&Value, &Val, 4); in getFloatValue() 90 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/ubsan/ |
H A D | ubsan_value.cc | 31 return *reinterpret_cast<s64*>(Val); in getSIntValue() 34 return *reinterpret_cast<s128*>(Val); in getSIntValue() 45 return Val; in getUIntValue() 47 return *reinterpret_cast<u64*>(Val); in getUIntValue() 50 return *reinterpret_cast<u128*>(Val); in getUIntValue() 61 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 62 CHECK(Val >= 0); in getPositiveIntValue() 63 return Val; in getPositiveIntValue() 78 internal_memcpy(&Value, &Val, 4); in getFloatValue() 90 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | ValueLattice.cpp | 13 if (Val.isUnknown()) in operator <<() 15 if (Val.isUndef()) in operator <<() 17 if (Val.isOverdefined()) in operator <<() 20 if (Val.isNotConstant()) in operator <<() 21 return OS << "notconstant<" << *Val.getNotConstant() << ">"; in operator <<() 23 if (Val.isConstantRangeIncludingUndef()) in operator <<() 25 << Val.getConstantRange(true).getLower() << ", " in operator <<() 26 << Val.getConstantRange(true).getUpper() << ">"; in operator <<() 28 if (Val.isConstantRange()) in operator <<() 30 << Val.getConstantRange().getUpper() << ">"; in operator <<() [all …]
|
H A D | LazyValueInfo.cpp | 72 if (Val.isConstantRange() && in hasSingleValue() 76 if (Val.isConstant()) in hasSingleValue() 211 addValueHandle(Val); in insertResult() 661 Val = Val->stripInBoundsOffsets(); in isNonNullAtEndOfBlock() 882 if (Val.isConstantRange()) in getRangeFor() 1029 if (LHS == Val) in matchICmpOperand() 1094 Type *Ty = Val->getType(); in getValueFromICmpCondition() 1286 if (Condition == Val) in getEdgeValueLocal() 1346 if (Condition != Val) { in getEdgeValueLocal() 1645 if (Val.isConstant()) { in getPredicateResult() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/MC/ |
H A D | MCSymbolELF.cpp | 48 Val = 0; in setBinding() 51 Val = 1; in setBinding() 54 Val = 2; in setBinding() 57 Val = 3; in setBinding() 98 Val = 0; in setType() 101 Val = 1; in setType() 104 Val = 2; in setType() 107 Val = 3; in setType() 110 Val = 4; in setType() 113 Val = 5; in setType() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/VE/ |
H A D | VE.h | 203 switch (Val) { in VEValToCondCode() 222 switch (Val) { in VEValToCondCode() 306 switch (Val) { in VEValToRD() 328 if (Val == 0) { in isMImmVal() 337 return (Val & (UINT64_C(1) << 63)) && isShiftedMask_64(Val); in isMImmVal() 341 if (Val == 0) { in isMImm32Val() 350 return (Val & (UINT32_C(1) << 31)) && isShiftedMask_32(Val); in isMImm32Val() 355 if (Val == 0) in val2MImm() 364 if (Val == 0) in mimm2Val() 371 inline unsigned M0(unsigned Val) { return Val + 64; } in M0() argument [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | YAMLTraits.cpp | 929 Val = n; in input() 945 Val = n; in input() 961 Val = n; in input() 975 Val = N; in input() 991 Val = N; in input() 1006 Val = N; in input() 1021 Val = N; in input() 1034 Val = N; in input() 1068 Val = n; in input() 1082 Val = n; in input() [all …]
|
H A D | APFixedPoint.cpp | 21 APSInt NewVal = Val; in convert() 119 Val = Val.lshr(1); in getMax() 337 APSInt ThisVal = Val; in shl() 371 APSInt Val = getValue(); in toString() local 374 if (Val.isSigned() && Val.isNegative() && Val != -Val) { in toString() 375 Val = -Val; in toString() 401 (!isSigned() && Val != 0) || (isSigned() && Val.isMinSignedValue()); in negate() 410 return Val.isMinSignedValue() ? getMax(Sema) : APFixedPoint(-Val, Sema); in negate() 526 APFloat Val = Value; in getFromFloatValue() local 561 if (Val > FloatMax) in getFromFloatValue() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 18 if (isInt<32>(Val)) { in generateInstSeqImpl() 26 int64_t Hi20 = ((Val + 0x800) >> 12) & 0xFFFFF; in generateInstSeqImpl() 27 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeqImpl() 64 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeqImpl() 65 int64_t Hi52 = ((uint64_t)Val + 0x800ull) >> 12; in generateInstSeqImpl() 78 InstSeq generateInstSeq(int64_t Val, bool IsRV64) { in generateInstSeq() argument 80 generateInstSeqImpl(Val, IsRV64, Res); in generateInstSeq() 84 if (Val > 0 && Res.size() > 2) { in generateInstSeq() 87 Val <<= ShiftAmount; in generateInstSeq() 94 generateInstSeqImpl(Val, IsRV64, TmpSeq); in generateInstSeq() [all …]
|
/netbsd/external/apache2/llvm/dist/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() 91 Res = Builder.CreateFAdd(Orig, Val); in lowerAtomicRMWInst() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Module.cpp | 326 return MFE.Val; in getModuleFlag() 548 auto *Val = in getNumberRegisterParameters() local 550 if (!Val) in getNumberRegisterParameters() 557 if (!Val) in getDwarfVersion() 564 return Val && cast<ConstantInt>(Val->getValue())->isOne(); in isDwarf64() 569 if (!Val) in getCodeViewFlag() 590 if (!Val) in getPICLevel() 604 if (!Val) in getPIELevel() 618 if (!Val) in getCodeModel() 649 if (!Val) in getSemanticInterposition() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCMCTargetDesc.h | 59 if (!Val) in isRunOfOnes() 62 if (isShiftedMask_32(Val)) { in isRunOfOnes() 64 MB = countLeadingZeros(Val); in isRunOfOnes() 66 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes() 69 Val = ~Val; // invert mask in isRunOfOnes() 74 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes() 83 if (!Val) in isRunOfOnes64() 86 if (isShiftedMask_64(Val)) { in isRunOfOnes64() 90 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes64() 93 Val = ~Val; // invert mask in isRunOfOnes64() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/MC/ |
H A D | MCInst.h | 85 void setImm(int64_t Val) { in setImm() argument 87 ImmVal = Val; in setImm() 97 SFPImmVal = Val; in setSFPImm() 107 FPImmVal = Val; in setDFPImm() 121 ExprVal = Val; in setExpr() 131 InstVal = Val; in setInst() 144 Op.ImmVal = Val; in createImm() 151 Op.SFPImmVal = Val; in createSFPImm() 158 Op.FPImmVal = Val; in createDFPImm() 165 Op.ExprVal = Val; in createExpr() [all …]
|
H A D | MCInstBuilder.h | 37 MCInstBuilder &addImm(int64_t Val) { in addImm() argument 38 Inst.addOperand(MCOperand::createImm(Val)); in addImm() 43 MCInstBuilder &addSFPImm(uint32_t Val) { in addSFPImm() argument 44 Inst.addOperand(MCOperand::createSFPImm(Val)); in addSFPImm() 49 MCInstBuilder &addDFPImm(uint64_t Val) { in addDFPImm() argument 50 Inst.addOperand(MCOperand::createDFPImm(Val)); in addDFPImm() 55 MCInstBuilder &addExpr(const MCExpr *Val) { in addExpr() argument 56 Inst.addOperand(MCOperand::createExpr(Val)); in addExpr() 61 MCInstBuilder &addInst(const MCInst *Val) { in addInst() argument 62 Inst.addOperand(MCOperand::createInst(Val)); in addInst()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | SIMCCodeEmitter.cpp | 110 if (Val == 0x3800) // 0.5 in getLit16Encoding() 113 if (Val == 0xB800) // -0.5 in getLit16Encoding() 116 if (Val == 0x3C00) // 1.0 in getLit16Encoding() 119 if (Val == 0xBC00) // -1.0 in getLit16Encoding() 122 if (Val == 0x4000) // 2.0 in getLit16Encoding() 125 if (Val == 0xC000) // -2.0 in getLit16Encoding() 128 if (Val == 0x4400) // 4.0 in getLit16Encoding() 131 if (Val == 0xC400) // -4.0 in getLit16Encoding() 146 if (Val == FloatToBits(0.5f)) in getLit32Encoding() 152 if (Val == FloatToBits(1.0f)) in getLit32Encoding() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUPALMetadata.cpp | 61 if (!Key || !Val) in readFromIR() 139 setRegister(getRsrc1Reg(CC), Val); in setRsrc1() 145 setRegister(getRsrc1Reg(CC) + 1, Val); in setRsrc2() 183 Val |= N.getUInt(); in setRegister() 184 N = N.getDocument()->getNode(Val); in setRegister() 205 setRegister(NumUsedVgprsKey, Val); in setNumUsedVgprs() 221 setRegister(NumUsedSgprsKey, Val); in setNumUsedSgprs() 232 setRegister(getScratchSizeKey(CC), Val); in setScratchSize() 653 unsigned Val = I->second.getUInt(); in toString() local 733 uint64_t Val; in setFromString() local [all …]
|