| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | TinyPtrVector.h | 40 PtrUnion Val; 46 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 50 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 51 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 52 Val = new VecTy(*V); in TinyPtrVector() 65 if (Val.template is<EltTy>()) { 67 Val = RHS.front(); 69 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 74 if (RHS.Val.template is<EltTy>()) { 75 Val.template get<VecTy*>()->clear(); [all …]
|
| H A D | DenseMapInfo.h | 72 uintptr_t Val = static_cast<uintptr_t>(-1); 73 Val <<= Log2MaxAlign; 74 return reinterpret_cast<T*>(Val); 78 uintptr_t Val = static_cast<uintptr_t>(-2); 79 Val <<= Log2MaxAlign; 80 return reinterpret_cast<T*>(Val); 95 static unsigned getHashValue(const char& Val) { return Val * 37U; } 106 static unsigned getHashValue(const unsigned char &Val) { return Val * 37U; } 117 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; } 128 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } [all …]
|
| H A D | bit.h | 116 static unsigned count(T Val) { in count() 117 if (!Val) in count() 119 if (Val & 0x1) in count() 127 if ((Val & Mask) == 0) { in count() 128 Val >>= Shift; in count() 140 static unsigned count(T Val) { 141 if (Val == 0) 145 return __builtin_ctz(Val); 148 _BitScanForward(&Index, Val); 156 static unsigned count(T Val) { [all …]
|
| H A D | APFixedPoint.h | 128 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.h | 58 uint64_t Val; in extractBitsAsZExtValue() local 60 Val = Lo >> BitPosition | Hi << 1 << (63 - BitPosition); in extractBitsAsZExtValue() 62 Val = Hi >> (BitPosition - 64); in extractBitsAsZExtValue() 63 return Val & ((uint64_t(2) << (NumBits - 1)) - 1); in extractBitsAsZExtValue() 111 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const; 112 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const; 169 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 170 MCOperand decodeOperand_VGPR_32_Lo128(unsigned Val) const; 171 MCOperand decodeOperand_VRegOrLds_32(unsigned Val) const; 173 MCOperand decodeOperand_VS_32(unsigned Val) const; [all …]
|
| H A D | AMDGPUDisassembler.cpp | 104 static DecodeStatus decodeBoolReg(MCInst &Inst, unsigned Val, uint64_t Addr, in decodeBoolReg() argument 107 return addOperand(Inst, DAsm->decodeBoolReg(Val)); in decodeBoolReg() 295 static DecodeStatus decodeOperandVOPDDstY(MCInst &Inst, unsigned Val, in decodeOperandVOPDDstY() argument 298 return addOperand(Inst, DAsm->decodeVOPDDstYOp(Inst, Val)); in decodeOperandVOPDDstY() 780 unsigned Val = MI.getOperand(OpIdx).getImm(); in collectVOPModifiers() local 782 Modifiers.OpSel |= !!(Val & SISrcMods::OP_SEL_0) << J; in collectVOPModifiers() 784 Modifiers.OpSelHi |= !!(Val & SISrcMods::OP_SEL_1) << J; in collectVOPModifiers() 785 Modifiers.NegLo |= !!(Val & SISrcMods::NEG) << J; in collectVOPModifiers() 786 Modifiers.NegHi |= !!(Val & SISrcMods::NEG_HI) << J; in collectVOPModifiers() 788 Modifiers.OpSel |= !!(Val & SISrcMods::DST_OP_SEL) << 3; in collectVOPModifiers() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 48 static void generateInstSeqImpl(int64_t Val, in generateInstSeqImpl() argument 54 if (ActiveFeatures[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 …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | Casting.h | 38 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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 50 llvm::APSInt Val; member in __anonf324abec0111::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() 139 if (Result.Val != 0 && ValueLive) in EvaluateDefined() 276 Result.Val = 0; in EvaluateValue() 277 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue() 343 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | LowerAtomic.cpp | 27 Value *Val = CXI->getNewValOperand(); in lowerAtomicCmpXchgInst() local 29 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in lowerAtomicCmpXchgInst() 31 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in lowerAtomicCmpXchgInst() 44 Value *Val) { in buildAtomicRMWValue() argument 48 return Val; in buildAtomicRMWValue() 50 return Builder.CreateAdd(Loaded, Val, "new"); in buildAtomicRMWValue() 52 return Builder.CreateSub(Loaded, Val, "new"); in buildAtomicRMWValue() 54 return Builder.CreateAnd(Loaded, Val, "new"); in buildAtomicRMWValue() 56 return Builder.CreateNot(Builder.CreateAnd(Loaded, Val), "new"); in buildAtomicRMWValue() 58 return Builder.CreateOr(Loaded, Val, "new"); in buildAtomicRMWValue() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | Value.h | 72 void setProperty(llvm::StringRef Name, Value &Val) { in setProperty() argument 73 Properties.insert_or_assign(Name, &Val); in setProperty() 97 static bool classof(const Value *Val) { in classof() argument 98 return Val->getKind() == Kind::TopBool || in classof() 99 Val->getKind() == Kind::AtomicBool || in classof() 100 Val->getKind() == Kind::Conjunction || in classof() 101 Val->getKind() == Kind::Disjunction || in classof() 102 Val->getKind() == Kind::Negation || in classof() 103 Val->getKind() == Kind::Implication || in classof() 104 Val->getKind() == Kind::Biconditional; in classof() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/ubsan/ |
| H A D | ubsan_value.cpp | 75 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 …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_dense_map_info.h | 84 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | 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 = (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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/VE/ |
| H A D | VE.h | 281 inline static VECC::CondCode VEValToCondCode(unsigned Val, bool IsInteger) { in VEValToCondCode() argument 283 switch (Val) { in VEValToCondCode() 302 switch (Val) { in VEValToCondCode() 385 inline static VERD::RoundingMode VEValToRD(unsigned Val) { in VEValToRD() argument 386 switch (Val) { in VEValToRD() 413 uint64_t Val = Imm.getZExtValue(); in getFpImmVal() local 416 Val <<= 32; in getFpImmVal() 418 return Val; in getFpImmVal() 423 inline static bool isMImmVal(uint64_t Val) { in isMImmVal() argument 424 if (Val == 0) { in isMImmVal() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | YAMLTraits.cpp | 884 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 885 Out << (Val ? "true" : "false"); in output() 888 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 890 Val = *Parsed; in input() 896 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 898 Out << Val; in output() 902 StringRef &Val) { in input() argument 903 Val = Scalar; in input() 907 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument 909 Out << Val; in output() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ValueLattice.cpp | 55 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 …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| 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()
|
| /openbsd-src/gnu/llvm/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 …]
|
| H A D | AMDGPUPALMetadata.h | 43 void setRsrc1(unsigned CC, unsigned Val); 47 void setRsrc2(unsigned CC, unsigned Val); 51 void setSpiPsInputEna(unsigned Val); 55 void setSpiPsInputAddr(unsigned Val); 62 void setRegister(unsigned Reg, unsigned Val); 70 void setNumUsedVgprs(unsigned CC, unsigned Val); 74 void setNumUsedAgprs(unsigned CC, unsigned Val); 79 void setNumUsedSgprs(unsigned CC, unsigned Val); 82 void setScratchSize(unsigned CC, unsigned Val); 85 void setFunctionScratchSize(const MachineFunction &MF, unsigned Val); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Module.cpp | 279 uint64_t Val = Behavior->getLimitedValue(); in isValidModFlagBehavior() local 280 if (Val >= ModFlagBehaviorFirstVal && Val <= ModFlagBehaviorLastVal) { in isValidModFlagBehavior() 281 MFB = static_cast<ModFlagBehavior>(Val); in isValidModFlagBehavior() 289 MDString *&Key, Metadata *&Val) { in isValidModuleFlag() argument 298 Val = ModFlag.getOperand(2); in isValidModuleFlag() 311 Metadata *Val = nullptr; in getModuleFlagsMetadata() local 312 if (isValidModuleFlag(*Flag, MFB, Key, Val)) { in getModuleFlagsMetadata() 315 Flags.push_back(ModuleFlagEntry(MFB, Key, Val)); in getModuleFlagsMetadata() 327 return MFE.Val; in getModuleFlag() 350 Metadata *Val) { in addModuleFlag() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.h | 57 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument 58 if (!Val) in isRunOfOnes() 61 if (isShiftedMask_32(Val)) { in isRunOfOnes() 63 MB = countLeadingZeros(Val); in isRunOfOnes() 65 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes() 68 Val = ~Val; // invert mask in isRunOfOnes() 69 if (isShiftedMask_32(Val)) { in isRunOfOnes() 71 ME = countLeadingZeros(Val) - 1; in isRunOfOnes() 73 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes() 81 static inline bool isRunOfOnes64(uint64_t Val, unsigned &MB, unsigned &ME) { in isRunOfOnes64() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Use.h | 54 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(); }
|
| H A D | Value.h | 514 #define HANDLE_VALUE(Name) Name##Val, 518 #define HANDLE_CONSTANT_MARKER(Marker, Constant) Marker = Constant##Val, 866 if (Val) removeFromList(); in set() 867 Val = V; in set() 877 set(RHS.Val); 952 static inline bool doit(const Value &Val) { 954 return Val.getValueID() <= Value::ConstantLastVal; 959 static inline bool doit(const Value &Val) { 960 return Val.getValueID() >= Value::ConstantDataFirstVal && 961 Val.getValueID() <= Value::ConstantDataLastVal; [all …]
|