/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
H A D | TinyPtrVector.h | 41 PtrUnion Val; 47 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 51 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 52 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 53 Val = new VecTy(*V); in TinyPtrVector() 66 if (Val.template is<EltTy>()) { 68 Val = RHS.front(); 70 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 75 if (RHS.Val.template is<EltTy>()) { 76 Val.template get<VecTy*>()->clear(); [all …]
|
H A D | DenseMapInfo.h | 68 uintptr_t Val = static_cast<uintptr_t>(-1); 69 Val <<= Log2MaxAlign; 70 return reinterpret_cast<T*>(Val); 74 uintptr_t Val = static_cast<uintptr_t>(-2); 75 Val <<= Log2MaxAlign; 76 return reinterpret_cast<T*>(Val); 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; } [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 109 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned()), Sema) {} in APFixedPoint() 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() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | Casting.h | 37 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)); 57 static inline bool doit(const From &Val) { 58 return To::classof(&Val); 69 static inline bool doit(const From &Val) { 70 return isa_impl<To, From>::doit(Val); 75 static inline bool doit(const From &Val) { 76 return isa_impl<To, From>::doit(Val); 82 static inline bool doit(const std::unique_ptr<From> &Val) { [all …]
|
H A D | MathExtras.h | 91 static unsigned count(T Val, ZeroBehavior) { in count() 92 if (!Val) in count() 94 if (Val & 0x1) in count() 102 if ((Val & Mask) == 0) { in count() 103 Val >>= Shift; in count() 115 static unsigned count(T Val, ZeroBehavior ZB) { 116 if (ZB != ZB_Undefined && Val == 0) 120 return __builtin_ctz(Val); 123 _BitScanForward(&Index, Val); 131 static unsigned count(T Val, ZeroBehavior ZB) { [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/Disassembler/ |
H A D | AMDGPUDisassembler.h | 55 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const; 56 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const; 94 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 95 MCOperand decodeOperand_VRegOrLds_32(unsigned Val) const; 97 MCOperand decodeOperand_VS_32(unsigned Val) const; 98 MCOperand decodeOperand_VS_64(unsigned Val) const; 99 MCOperand decodeOperand_VS_128(unsigned Val) const; 100 MCOperand decodeOperand_VSrc16(unsigned Val) const; 101 MCOperand decodeOperand_VSrcV216(unsigned Val) const; 102 MCOperand decodeOperand_VSrcV232(unsigned Val) const; [all …]
|
H A D | AMDGPUDisassembler.cpp | 97 static DecodeStatus decodeBoolReg(MCInst &Inst, unsigned Val, in decodeBoolReg() argument 100 return addOperand(Inst, DAsm->decodeBoolReg(Val)); in decodeBoolReg() 840 unsigned Val) const { in createRegOperand() 842 if (Val >= RegCl.getNumRegs()) in createRegOperand() 843 return errOperand(Val, Twine(getRegClassName(RegClassID)) + in createRegOperand() 844 ": unknown register " + Twine(Val)); in createRegOperand() 845 return createRegOperand(RegCl.getRegister(Val)); in createRegOperand() 850 unsigned Val) const { in createSRegOperand() 880 if (Val % (1 << shift)) { in createSRegOperand() 882 << ": scalar reg isn't aligned " << Val; in createSRegOperand() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 50 llvm::APSInt Val; member in __anond75e42200111::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() 137 if (Result.Val != 0 && ValueLive) in EvaluateDefined() 274 Result.Val = 0; in EvaluateValue() 275 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue() 333 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue() [all …]
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ |
H A D | 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 …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/ |
H A D | ubsan_value.cc | 28 return SIntMax(Val) << ExtraBits >> ExtraBits; in getSIntValue() 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() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/ |
H A D | ubsan_value.cpp | 77 return SIntMax(UIntMax(Val) << ExtraBits) >> ExtraBits; in getSIntValue() 80 return *reinterpret_cast<s64*>(Val); in getSIntValue() 83 return *reinterpret_cast<s128*>(Val); in getSIntValue() 94 return Val; in getUIntValue() 96 return *reinterpret_cast<u64*>(Val); in getUIntValue() 99 return *reinterpret_cast<u128*>(Val); in getUIntValue() 110 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 111 CHECK(Val >= 0); in getPositiveIntValue() 112 return Val; in getPositiveIntValue() 127 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/ |
H A D | MCSymbolELF.cpp | 43 unsigned Val; in setBinding() local 48 Val = 0; in setBinding() 51 Val = 1; in setBinding() 54 Val = 2; in setBinding() 57 Val = 3; in setBinding() 61 setFlags(OtherFlags | (Val << ELF_STB_Shift)); in setBinding() 66 uint32_t Val = (Flags >> ELF_STB_Shift) & 3; in getBinding() local 67 switch (Val) { in getBinding() 93 unsigned Val; in setType() local 98 Val = 0; in setType() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/ |
H A D | VE.h | 201 inline static VECC::CondCode VEValToCondCode(unsigned Val, bool IsInteger) { in VEValToCondCode() argument 203 switch (Val) { in VEValToCondCode() 222 switch (Val) { in VEValToCondCode() 305 inline static VERD::RoundingMode VEValToRD(unsigned Val) { in VEValToRD() argument 306 switch (Val) { in VEValToRD() 327 inline static bool isMImmVal(uint64_t Val) { in isMImmVal() argument 328 if (Val == 0) { in isMImmVal() 332 if (isMask_64(Val)) { in isMImmVal() 337 return (Val & (UINT64_C(1) << 63)) && isShiftedMask_64(Val); in isMImmVal() 340 inline static bool isMImm32Val(uint32_t Val) { in isMImm32Val() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | ValueLattice.cpp | 12 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<() argument 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 <<() [all …]
|
H A D | LazyValueInfo.cpp | 71 static bool hasSingleValue(const ValueLatticeElement &Val) { in hasSingleValue() argument 72 if (Val.isConstantRange() && in hasSingleValue() 73 Val.getConstantRange().isSingleElement()) in hasSingleValue() 76 if (Val.isConstant()) in hasSingleValue() 193 void addValueHandle(Value *Val) { in addValueHandle() argument 194 auto HandleIt = ValueHandles.find_as(Val); in addValueHandle() 196 ValueHandles.insert({ Val, this }); in addValueHandle() 200 void insertResult(Value *Val, BasicBlock *BB, in insertResult() argument 207 Entry->OverDefined.insert(Val); in insertResult() 209 Entry->LatticeElements.insert({ Val, Result }); in insertResult() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | YAMLTraits.cpp | 882 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 883 Out << (Val ? "true" : "false"); in output() 886 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 888 Val = *Parsed; in input() 894 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 896 Out << Val; in output() 900 StringRef &Val) { in input() argument 901 Val = Scalar; in input() 905 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument 907 Out << Val; in output() [all …]
|
H A D | APFixedPoint.cpp | 21 APSInt NewVal = Val; in convert() 67 bool ThisSigned = Val.isSigned(); in compare() 72 unsigned CommonWidth = std::max(Val.getBitWidth(), OtherWidth); in compare() 117 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax() local 119 Val = Val.lshr(1); in getMax() 120 return APFixedPoint(Val, Sema); in getMax() 124 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin() local 125 return APFixedPoint(Val, Sema); in getMin() 337 APSInt ThisVal = Val; in shl() 371 APSInt Val = getValue(); in toString() local [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 16 static void generateInstSeqImpl(int64_t Val, bool IsRV64, in generateInstSeqImpl() argument 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() 86 unsigned ShiftAmount = countLeadingZeros((uint64_t)Val); in generateInstSeq() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | LowerAtomic.cpp | 28 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() local 30 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in LowerAtomicCmpXchgInst() 32 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst() 46 Value *Val = RMWI->getValOperand(); in lowerAtomicRMWInst() local 48 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in lowerAtomicRMWInst() 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() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Module.cpp | 278 uint64_t Val = Behavior->getLimitedValue(); in isValidModFlagBehavior() local 279 if (Val >= ModFlagBehaviorFirstVal && Val <= ModFlagBehaviorLastVal) { in isValidModFlagBehavior() 280 MFB = static_cast<ModFlagBehavior>(Val); in isValidModFlagBehavior() 288 MDString *&Key, Metadata *&Val) { in isValidModuleFlag() argument 297 Val = ModFlag.getOperand(2); in isValidModuleFlag() 310 Metadata *Val = nullptr; in getModuleFlagsMetadata() local 311 if (isValidModuleFlag(*Flag, MFB, Key, Val)) { in getModuleFlagsMetadata() 314 Flags.push_back(ModuleFlagEntry(MFB, Key, Val)); in getModuleFlagsMetadata() 326 return MFE.Val; in getModuleFlag() 349 Metadata *Val) { in addModuleFlag() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCMCTargetDesc.h | 58 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument 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() 70 if (isShiftedMask_32(Val)) { in isRunOfOnes() 72 ME = countLeadingZeros(Val) - 1; in isRunOfOnes() 74 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes() 82 static inline bool isRunOfOnes64(uint64_t Val, unsigned &MB, unsigned &ME) { in isRunOfOnes64() argument [all …]
|
/netbsd-src/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() 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | SIMCCodeEmitter.cpp | 100 static uint32_t getLit16IntEncoding(uint16_t Val, const MCSubtargetInfo &STI) { in getLit16IntEncoding() argument 101 uint16_t IntImm = getIntInlineImmEncoding(static_cast<int16_t>(Val)); in getLit16IntEncoding() 105 static uint32_t getLit16Encoding(uint16_t Val, const MCSubtargetInfo &STI) { in getLit16Encoding() argument 106 uint16_t IntImm = getIntInlineImmEncoding(static_cast<int16_t>(Val)); in getLit16Encoding() 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() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUPALMetadata.cpp | 60 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() 138 void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, unsigned Val) { in setRsrc1() argument 139 setRegister(getRsrc1Reg(CC), Val); in setRsrc1() 144 void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, unsigned Val) { in setRsrc2() argument 145 setRegister(getRsrc1Reg(CC) + 1, Val); in setRsrc2() 150 void AMDGPUPALMetadata::setSpiPsInputEna(unsigned Val) { in setSpiPsInputEna() argument 151 setRegister(PALMD::R_A1B3_SPI_PS_INPUT_ENA, Val); in setSpiPsInputEna() 156 void AMDGPUPALMetadata::setSpiPsInputAddr(unsigned Val) { in setSpiPsInputAddr() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | Value.h | 523 #define HANDLE_VALUE(Name) Name##Val, 527 #define HANDLE_CONSTANT_MARKER(Marker, Constant) Marker = Constant##Val, 873 if (Val) removeFromList(); in set() 874 Val = V; in set() 884 set(RHS.Val); 959 static inline bool doit(const Value &Val) { 961 return Val.getValueID() <= Value::ConstantLastVal; 966 static inline bool doit(const Value &Val) { 967 return Val.getValueID() >= Value::ConstantDataFirstVal && 968 Val.getValueID() <= Value::ConstantDataLastVal; [all …]
|