| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | PerfSharedStructs.h | 95 static size_t size(const PerfJITRecordPrefix &Val) { in size() argument 97 static_cast<uint32_t>(Val.Id), Val.TotalSize); in size() 99 static bool deserialize(SPSInputBuffer &IB, PerfJITRecordPrefix &Val) { in deserialize() argument 101 if (!SPSPerfJITRecordPrefix::AsArgList::deserialize(IB, Id, Val.TotalSize)) in deserialize() 103 Val.Id = static_cast<PerfJITRecordType>(Id); in deserialize() 106 static bool serialize(SPSOutputBuffer &OB, const PerfJITRecordPrefix &Val) { in serialize() argument 108 OB, static_cast<uint32_t>(Val.Id), Val.TotalSize); in serialize() 119 static size_t size(const PerfJITCodeLoadRecord &Val) { in size() argument 121 Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in size() 122 Val.CodeIndex, Val.Name); in size() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | TinyPtrVector.h | 40 PtrUnion Val; 46 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in ~TinyPtrVector() 50 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 51 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in TinyPtrVector() 52 Val = new VecTy(*V); in TinyPtrVector() 65 if (isa<EltTy>(Val)) { 67 Val = RHS.front(); 69 Val = new VecTy(*cast<VecTy *>(RHS.Val)); 74 if (isa<EltTy>(RHS.Val)) { 75 cast<VecTy *>(Val)->clear(); [all …]
|
| H A D | DenseMapInfo.h | 74 uintptr_t Val = static_cast<uintptr_t>(-1); 75 Val <<= Log2MaxAlign; 76 return reinterpret_cast<T*>(Val); 80 uintptr_t Val = static_cast<uintptr_t>(-2); 81 Val <<= Log2MaxAlign; 82 return reinterpret_cast<T*>(Val); 97 static unsigned getHashValue(const char& Val) { return Val * 37U; } 108 static unsigned getHashValue(const unsigned char &Val) { return Val * 37U; } 119 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; } 130 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SlowDynamicAPInt.cpp | 17 SlowDynamicAPInt::SlowDynamicAPInt(int64_t Val) in SlowDynamicAPInt() argument 18 : Val(64, Val, /*isSigned=*/true) {} in SlowDynamicAPInt() 20 SlowDynamicAPInt::SlowDynamicAPInt(const APInt &Val) : Val(Val) {} in SlowDynamicAPInt() argument 21 SlowDynamicAPInt &SlowDynamicAPInt::operator=(int64_t Val) { in operator =() argument 22 return *this = SlowDynamicAPInt(Val); in operator =() 24 SlowDynamicAPInt::operator int64_t() const { return Val.getSExtValue(); } in operator int64_t() 27 return hash_value(X.Val); in hash_value() 127 unsigned Width = getMaxWidth(Val, O.Val); in operator ==() 128 return Val.sext(Width) == O.Val.sext(Width); in operator ==() 131 unsigned Width = getMaxWidth(Val, O.Val); in operator !=() [all …]
|
| H A D | YAMLTraits.cpp | 924 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 925 Out << (Val ? "true" : "false"); in output() 928 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 930 Val = *Parsed; in input() 936 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 938 Out << Val; in output() 942 StringRef &Val) { in input() argument 943 Val = Scalar; in input() 947 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument 949 Out << Val; in output() [all …]
|
| /freebsd/contrib/llvm-project/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 …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 53 static void generateInstSeqImpl(int64_t Val, const MCSubtargetInfo &STI, in generateInstSeqImpl() argument 58 if (STI.hasFeature(RISCV::FeatureStdExtZbs) && isPowerOf2_64(Val) && in generateInstSeqImpl() 59 (!isInt<32>(Val) || Val == 0x800)) { in generateInstSeqImpl() 60 Res.emplace_back(RISCV::BSETI, Log2_64(Val)); in generateInstSeqImpl() 65 bool FitsOneStandardInst = ((Val & 0xFFF) == 0) || isInt<12>(Val); in generateInstSeqImpl() 69 if (!FitsOneStandardInst && isInt<20>(Val)) { in generateInstSeqImpl() 70 Res.emplace_back(RISCV::QC_LI, Val); in generateInstSeqImpl() 76 if (!FitsOneStandardInst && isInt<32>(Val)) { in generateInstSeqImpl() 77 Res.emplace_back(RISCV::QC_E_LI, Val); in generateInstSeqImpl() 82 if (isInt<32>(Val)) { in generateInstSeqImpl() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUPALMetadata.h | 57 void setRsrc1(unsigned CC, unsigned Val); 58 void setRsrc1(unsigned CC, const MCExpr *Val, MCContext &Ctx); 62 void setRsrc2(unsigned CC, unsigned Val); 63 void setRsrc2(unsigned CC, const MCExpr *Val, MCContext &Ctx); 67 void setSpiPsInputEna(unsigned Val); 71 void setSpiPsInputAddr(unsigned Val); 78 void setRegister(unsigned Reg, unsigned Val); 79 void setRegister(unsigned Reg, const MCExpr *Val, MCContext &Ctx); 87 void setNumUsedVgprs(unsigned CC, unsigned Val); 88 void setNumUsedVgprs(unsigned CC, const MCExpr *Val, MCContext &Ctx); [all …]
|
| H A D | AMDGPUPALMetadata.cpp | 83 auto *Val = mdconst::dyn_extract<ConstantInt>(Tuple->getOperand(I + 1)); in readFromIR() local 84 if (!Key || !Val) in readFromIR() 86 setRegister(Key->getZExtValue(), Val->getZExtValue()); in readFromIR() 160 void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, unsigned Val) { in setRsrc1() argument 161 setRegister(getRsrc1Reg(CC), Val); in setRsrc1() 164 void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, const MCExpr *Val, in setRsrc1() argument 166 setRegister(getRsrc1Reg(CC), Val, Ctx); in setRsrc1() 171 void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, unsigned Val) { in setRsrc2() argument 172 setRegister(getRsrc1Reg(CC) + 1, Val); in setRsrc2() 175 void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, const MCExpr *Val, in setRsrc2() argument [all …]
|
| H A D | SIDefinesUtils.h | 44 inline const MCExpr *maskShiftSet(const MCExpr *Val, uint32_t Mask, in maskShiftSet() argument 48 Val = MCBinaryExpr::createAnd(Val, MaskExpr, Ctx); in maskShiftSet() 52 Val = MCBinaryExpr::createShl(Val, ShiftExpr, Ctx); in maskShiftSet() 54 return Val; in maskShiftSet() 63 inline const MCExpr *maskShiftGet(const MCExpr *Val, uint32_t Mask, in maskShiftGet() argument 67 Val = MCBinaryExpr::createLShr(Val, ShiftExpr, Ctx); in maskShiftGet() 71 Val = MCBinaryExpr::createAnd(Val, MaskExpr, Ctx); in maskShiftGet() 73 return Val; in maskShiftGet()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LowerAtomic.cpp | 26 Value *Val = CXI->getNewValOperand(); in lowerAtomicCmpXchgInst() local 29 buildCmpXchgValue(Builder, Ptr, Cmp, Val, CXI->getAlign()); in lowerAtomicCmpXchgInst() 42 Value *Val, in buildCmpXchgValue() argument 44 LoadInst *Orig = Builder.CreateAlignedLoad(Val->getType(), Ptr, Alignment); in buildCmpXchgValue() 46 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in buildCmpXchgValue() 54 Value *Val) { in buildAtomicRMWValue() argument 58 return Val; in buildAtomicRMWValue() 60 return Builder.CreateAdd(Loaded, Val, "new"); in buildAtomicRMWValue() 62 return Builder.CreateSub(Loaded, Val, "new"); in buildAtomicRMWValue() 64 return Builder.CreateAnd(Loaded, Val, "new"); in buildAtomicRMWValue() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 50 llvm::APSInt Val; member in __anon807bcb150111::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() 141 if (Result.Val != 0 && ValueLive) in EvaluateDefined() 280 Result.Val = 0; in EvaluateValue() 281 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue() 347 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 30 return &*cast<llvm::BasicBlock>(getParent()->Val)->begin(); in getTopmostLLVMInstruction() 34 llvm::Instruction *PrevBotI = cast<llvm::Instruction>(Prev->Val); in getTopmostLLVMInstruction() 39 auto *I = cast<llvm::Instruction>(Val); in getIterator() 49 auto *LLVMI = cast<llvm::Instruction>(Val); in getNextNode() 108 auto *LLVMBB = cast<llvm::BasicBlock>(BB.Val); in moveBefore() 140 llvm::BasicBlock *LLVMBB = cast<llvm::BasicBlock>(BB->Val); in insertInto() 164 auto *BB = cast<llvm::Instruction>(Val)->getParent(); in getParent() 186 cast<llvm::Instruction>(Val)->setHasNoUnsignedWrap(B); in setHasNoUnsignedWrap() 193 cast<llvm::Instruction>(Val)->setHasNoSignedWrap(B); in setHasNoSignedWrap() 200 cast<llvm::Instruction>(Val)->setFast(B); in setFast() [all …]
|
| H A D | Value.cpp | 16 Value::Value(ClassID SubclassID, llvm::Value *Val, Context &Ctx) in Value() argument 17 : SubclassID(SubclassID), Val(Val), Ctx(Ctx) { in Value() 25 if (Val->use_begin() != Val->use_end()) in use_begin() 26 LLVMUse = &*Val->use_begin(); in use_begin() 28 Val->use_begin()->getUser())) in use_begin() 34 auto UseBegin = Val->use_begin(); in user_begin() 35 auto UseEnd = Val->use_end(); in user_begin() 44 unsigned Value::getNumUses() const { return range_size(Val->users()); } in getNumUses() 46 Type *Value::getType() const { return Ctx.getType(Val->getType()); } in getType() 51 llvm::Value *OtherVal = OtherV->Val; in replaceUsesWithIf() [all …]
|
| H A D | Constant.cpp | 79 auto *LLVMTy = cast<llvm::ConstantInt>(Val)->getIntegerType(); in getIntegerType() 143 LLVMValues.push_back(cast<llvm::Constant>(Elm->Val)); in get() 151 Ctx.getType(cast<llvm::ConstantArray>(Val)->getType())); in getType() 159 LLVMValues.push_back(cast<llvm::Constant>(Elm->Val)); in get() 182 LLVMV.push_back(cast<llvm::Constant>(Elm->Val)); in get() 187 auto *LLVMElt = cast<llvm::Constant>(Elt->Val); in getSplat() 194 cast<llvm::ConstantVector>(Val)->getSplatValue(AllowPoison)); in getSplatValue() 206 cast<llvm::ConstantAggregateZero>(Val)->getSequentialElement())); in getSequentialElement() 210 cast<llvm::ConstantAggregateZero>(Val)->getStructElement(Elt))); in getStructElement() 214 Ctx.getValue(cast<llvm::ConstantAggregateZero>(Val)->getElementValue( in getElementValue() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
| H A D | stl_extras.h | 33 constexpr uint64_t bit_ceil(uint64_t Val) noexcept { in bit_ceil() argument 34 Val |= (Val >> 1); in bit_ceil() 35 Val |= (Val >> 2); in bit_ceil() 36 Val |= (Val >> 4); in bit_ceil() 37 Val |= (Val >> 8); in bit_ceil() 38 Val |= (Val >> 16); in bit_ceil() 39 Val |= (Val >> 32); in bit_ceil() 40 return Val + 1; in bit_ceil()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Operator.h | 28 return llvm::Operator::classof(From->Val); in classof() 31 return cast<llvm::Operator>(Val)->hasPoisonGeneratingFlags(); in hasPoisonGeneratingFlags() 38 return cast<llvm::OverflowingBinaryOperator>(Val)->hasNoUnsignedWrap(); in hasNoUnsignedWrap() 41 return cast<llvm::OverflowingBinaryOperator>(Val)->hasNoSignedWrap(); in hasNoSignedWrap() 44 return cast<llvm::OverflowingBinaryOperator>(Val)->getNoWrapKind(); in getNoWrapKind() 48 cast<llvm::Instruction>(From->Val)); in classof() 52 cast<llvm::ConstantExpr>(From->Val)); in classof() 55 return llvm::OverflowingBinaryOperator::classof(From->Val); in classof() 61 bool isFast() const { return cast<llvm::FPMathOperator>(Val)->isFast(); } in isFast() 63 return cast<llvm::FPMathOperator>(Val)->hasAllowReassoc(); in hasAllowReassoc() [all …]
|
| H A D | Instruction.h | 112 Builder.SetInsertPoint(cast<llvm::BasicBlock>(WhereBB->Val)); in setInsertPos() 135 return cast<llvm::Instruction>(Val)->getModule()->getDataLayout(); in getDataLayout() 144 return cast<llvm::Instruction>(Val)->isTerminator(); in isTerminator() 146 bool isUnaryOp() const { return cast<llvm::Instruction>(Val)->isUnaryOp(); } in isUnaryOp() 147 bool isBinaryOp() const { return cast<llvm::Instruction>(Val)->isBinaryOp(); } in isBinaryOp() 149 return cast<llvm::Instruction>(Val)->isIntDivRem(); in isIntDivRem() 151 bool isShift() const { return cast<llvm::Instruction>(Val)->isShift(); } in isShift() 152 bool isCast() const { return cast<llvm::Instruction>(Val)->isCast(); } in isCast() 154 return cast<llvm::Instruction>(Val)->isFuncletPad(); in isFuncletPad() 157 return cast<llvm::Instruction>(Val)->isSpecialTerminator(); in isSpecialTerminator() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_value.cpp | 75 return SIntMax(UIntMax(Val) << ExtraBits) >> ExtraBits; in getSIntValue() 78 return SIntMax(UIntMax(*reinterpret_cast<s64 *>(Val)) << ExtraBits) >> in getSIntValue() 83 return SIntMax(UIntMax(*reinterpret_cast<s128 *>(Val)) << ExtraBits) >> in getSIntValue() 95 return Val; in getUIntValue() 97 return *reinterpret_cast<u64*>(Val); in getUIntValue() 100 return *reinterpret_cast<u128*>(Val); in getUIntValue() 111 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 112 CHECK(Val >= 0); in getPositiveIntValue() 113 return Val; in getPositiveIntValue() 128 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueLattice.cpp | 56 static bool hasSingleValue(const ValueLatticeElement &Val) { in hasSingleValue() argument 57 if (Val.isConstantRange() && Val.getConstantRange().isSingleElement()) in hasSingleValue() 60 return Val.isConstant(); in hasSingleValue() 112 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<() argument 113 if (Val.isUnknown()) in operator <<() 115 if (Val.isUndef()) in operator <<() 117 if (Val.isOverdefined()) in operator <<() 120 if (Val.isNotConstant()) in operator <<() 121 return OS << "notconstant<" << *Val.getNotConstant() << ">"; in operator <<() 123 if (Val.isConstantRangeIncludingUndef()) in operator <<() [all …]
|
| /freebsd/contrib/llvm-project/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 …]
|
| /freebsd/contrib/llvm-project/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() 93 unsigned Val; in setType() local 98 Val = 0; in setType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VE.h | 206 inline static VECC::CondCode VEValToCondCode(unsigned Val, bool IsInteger) { in VEValToCondCode() argument 208 switch (Val) { in VEValToCondCode() 227 switch (Val) { in VEValToCondCode() 310 inline static VERD::RoundingMode VEValToRD(unsigned Val) { in VEValToRD() argument 311 switch (Val) { in VEValToRD() 332 inline static bool isMImmVal(uint64_t Val) { in isMImmVal() argument 333 if (Val == 0) { in isMImmVal() 337 if (isMask_64(Val)) { in isMImmVal() 342 return (Val & (UINT64_C(1) << 63)) && isShiftedMask_64(Val); in isMImmVal() 345 inline static bool isMImm32Val(uint32_t Val) { in isMImm32Val() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILRootSignature.cpp | 80 if (std::optional<uint32_t> Val = extractMdIntValue(RootFlagNode, 1)) in parseRootFlags() local 81 RSD.Flags = *Val; in parseRootFlags() 100 if (std::optional<uint32_t> Val = extractMdIntValue(RootConstantNode, 1)) in parseRootConstants() local 101 Header.ShaderVisibility = *Val; in parseRootConstants() 106 if (std::optional<uint32_t> Val = extractMdIntValue(RootConstantNode, 2)) in parseRootConstants() local 107 Constants.ShaderRegister = *Val; in parseRootConstants() 111 if (std::optional<uint32_t> Val = extractMdIntValue(RootConstantNode, 3)) in parseRootConstants() local 112 Constants.RegisterSpace = *Val; in parseRootConstants() 116 if (std::optional<uint32_t> Val = extractMdIntValue(RootConstantNode, 4)) in parseRootConstants() local 117 Constants.Num32BitValues = *Val; in parseRootConstants() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | Value.h | 68 void setProperty(llvm::StringRef Name, Value &Val) { in setProperty() argument 69 Properties.insert_or_assign(Name, &Val); in setProperty() 101 static bool classof(const Value *Val) { in classof() argument 102 return Val->getKind() == Kind::TopBool || in classof() 103 Val->getKind() == Kind::AtomicBool || in classof() 104 Val->getKind() == Kind::FormulaBool; in classof() 122 static bool classof(const Value *Val) { in classof() argument 123 return Val->getKind() == Kind::TopBool; in classof() 139 static bool classof(const Value *Val) { in classof() argument 140 return Val->getKind() == Kind::AtomicBool; in classof() [all …]
|