| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 55 class Value; variable 62 LLVM_ABI Value *simplifyAddInst(Value *LHS, Value *RHS, bool IsNSW, bool IsNUW, 66 LLVM_ABI Value *simplifySubInst(Value *LHS, Value *RHS, bool IsNSW, bool IsNUW, 70 LLVM_ABI Value *simplifyMulInst(Value *LHS, Value *RHS, bool IsNSW, bool IsNUW, 74 LLVM_ABI Value *simplifySDivInst(Value *LHS, Value *RHS, bool IsExact, 78 LLVM_ABI Value *simplifyUDivInst(Value *LHS, Value *RHS, bool IsExact, 82 LLVM_ABI Value *simplifySRemInst(Value *LHS, Value *RHS, 86 LLVM_ABI Value *simplifyURemInst(Value *LHS, Value *RHS, 90 LLVM_ABI Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, 94 LLVM_ABI Value * [all …]
|
| H A D | ValueTracking.h | 61 LLVM_ABI void computeKnownBits(const Value *V, KnownBits &Known, 69 LLVM_ABI KnownBits computeKnownBits(const Value *V, const DataLayout &DL, 77 LLVM_ABI KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts, 85 LLVM_ABI KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts, 88 LLVM_ABI KnownBits computeKnownBits(const Value *V, const SimplifyQuery &Q, 91 LLVM_ABI void computeKnownBits(const Value *V, KnownBits &Known, 101 LLVM_ABI void computeKnownBitsFromContext(const Value *V, KnownBits &Known, 114 LLVM_ABI void adjustKnownBitsForSelectArm(KnownBits &Known, Value *Cond, 115 Value *Arm, bool Invert, 120 LLVM_ABI bool haveNoCommonBitsSet(const WithCache<const Value *> &LHSCache, [all …]
|
| H A D | InstSimplifyFolder.h | 52 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp() 53 Value *RHS) const override { in FoldBinOp() 57 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp() 62 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp() 67 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF() 72 Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, in FoldUnOpFMF() 77 Value *FoldCmp(CmpInst::Predicate P, Value *LHS, Value *RHS) const override { in FoldCmp() 81 Value *FoldGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, in FoldGEP() 86 Value *FoldSelect(Value *C, Value *True, Value *False) const override { in FoldSelect() 90 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BuildLibCalls.h | 21 class Value; variable 102 LLVM_ABI Value *emitStrLen(Value *Ptr, IRBuilderBase &B, const DataLayout &DL, 108 LLVM_ABI Value *emitWcsLen(Value *Ptr, IRBuilderBase &B, const DataLayout &DL, 114 LLVM_ABI Value *emitStrDup(Value *Ptr, IRBuilderBase &B, 120 LLVM_ABI Value *emitStrChr(Value *Ptr, char C, IRBuilderBase &B, 124 LLVM_ABI Value *emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, 130 LLVM_ABI Value *emitStrCpy(Value *Dst, Value *Src, IRBuilderBase &B, 135 LLVM_ABI Value *emitStpCpy(Value *Dst, Value *Src, IRBuilderBase &B, 140 LLVM_ABI Value *emitStrNCpy(Value *Dst, Value *Src, Value *Len, 145 LLVM_ABI Value *emitStpNCpy(Value *Dst, Value *Src, Value *Len, [all …]
|
| H A D | SimplifyLibCalls.h | 23 class Value; variable 54 Value *optimizeCall(CallInst *CI, IRBuilderBase &B); 57 Value *optimizeMemCpyChk(CallInst *CI, IRBuilderBase &B); 58 Value *optimizeMemMoveChk(CallInst *CI, IRBuilderBase &B); 59 Value *optimizeMemSetChk(CallInst *CI, IRBuilderBase &B); 62 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 63 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 64 Value *optimizeStrLenChk(CallInst *CI, IRBuilderBase &B); 65 Value *optimizeMemPCpyChk(CallInst *CI, IRBuilderBase &B); 66 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilderBase &B); [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | ScopedPrinter.h | 36 T Value; member 38 : Name(N), AltName(A), Value(V) {} in EnumEntry() 39 constexpr EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} in EnumEntry() 47 HexNumber(char Value) : Value(static_cast<unsigned char>(Value)) {} in HexNumber() 48 HexNumber(signed char Value) : Value(static_cast<unsigned char>(Value)) {} in HexNumber() 49 HexNumber(signed short Value) : Value(static_cast<unsigned short>(Value)) {} in HexNumber() 50 HexNumber(signed int Value) : Value(static_cast<unsigned int>(Value)) {} in HexNumber() 51 HexNumber(signed long Value) : Value(static_cast<unsigned long>(Value)) {} in HexNumber() 52 HexNumber(signed long long Value) in HexNumber() 53 : Value(static_cast<unsigned long long>(Value)) {} in HexNumber() [all …]
|
| H A D | LEB128.h | 24 inline unsigned encodeSLEB128(int64_t Value, raw_ostream &OS, 29 uint8_t Byte = Value & 0x7f; 31 Value >>= 7; 32 More = !((((Value == 0 ) && ((Byte & 0x40) == 0)) || 33 ((Value == -1) && ((Byte & 0x40) != 0)))); 42 uint8_t PadValue = Value < 0 ? 0x7f : 0x00; 53 inline unsigned encodeSLEB128(int64_t Value, uint8_t *p, unsigned PadTo = 0) { 58 uint8_t Byte = Value & 0x7f; 60 Value >>= 7; 61 More = !((((Value == 0 ) && ((Byte & 0x40) == 0)) || [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRAsmBackend.cpp | 33 static void unsigned_width(unsigned Width, uint64_t Value, in unsigned_width() argument 36 if (!isUIntN(Width, Value)) { in unsigned_width() 49 static void adjustBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in adjustBranch() argument 53 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in adjustBranch() 56 AVR::fixups::adjustBranchTarget(Value); in adjustBranch() 61 uint64_t &Value, const MCSubtargetInfo *STI) { in adjustRelativeBranch() argument 63 Value -= 2; in adjustRelativeBranch() 71 if (!isIntN(Size, Value) && STI->hasFeature(AVR::FeatureWrappingRjmp)) { in adjustRelativeBranch() 73 int32_t SignedValue = Value; in adjustRelativeBranch() 75 uint64_t WrappedValue = SignedValue > 0 ? (uint64_t)(Value - FlashSize) in adjustRelativeBranch() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IRBuilderFolder.h | 37 virtual Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, 38 Value *RHS) const = 0; 40 virtual Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, 41 Value *RHS, bool IsExact) const = 0; 43 virtual Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, 44 Value *RHS, bool HasNUW, 47 virtual Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, 48 Value *RHS, FastMathFlags FMF) const = 0; 50 virtual Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, 53 virtual Value *FoldCmp(CmpInst::Predicate P, Value *LHS, [all …]
|
| H A D | NoFolder.h | 49 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp() 50 Value *RHS) const override { in FoldBinOp() 54 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp() 59 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp() 64 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF() 69 Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, in FoldUnOpFMF() 74 Value *FoldCmp(CmpInst::Predicate P, Value *LHS, Value *RHS) const override { in FoldCmp() 78 Value *FoldGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, in FoldGEP() 83 Value *FoldSelect(Value *C, Value *True, Value *False) const override { in FoldSelect() 87 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() [all …]
|
| H A D | IRBuilder.h | 107 static FMFSource intersect(Value *A, Value *B) { in intersect() 183 Value *Insert(Value *V, const Twine &Name = "") const { 630 CallInst *CreateMemSet(Value *Ptr, Value *Val, uint64_t Size, 636 LLVM_ABI CallInst *CreateMemSet(Value *Ptr, Value *Val, Value *Size, 640 LLVM_ABI CallInst *CreateMemSetInline(Value *Dst, MaybeAlign DstAlign, 641 Value *Val, Value *Size, 651 CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, uint64_t Size, 659 Value *AllocSize, Value *ArraySize, 670 Value *AllocSize, Value *ArraySize, 674 LLVM_ABI CallInst *CreateFree(Value *Source, [all …]
|
| H A D | Value.h | 56 using ValueName = StringMapEntry<Value *>; 75 class Value { 127 friend class Value; variable 173 friend class Value; variable 216 LLVM_ABI Value(Type *Ty, unsigned scid); 223 LLVM_ABI ~Value(); // Use deleteValue() to delete a generic Value. 226 Value(const Value &) = delete; 227 Value &operator=(const Value &) = delete; 269 void doRAUW(Value *New, ReplaceMetadataUses); 292 LLVM_ABI void takeName(Value *V); [all …]
|
| H A D | ValueHandle.h | 31 friend class Value; variable 52 Value *Val = nullptr; 54 void setValPtr(Value *V) { Val = V; } in setValPtr() 59 ValueHandleBase(HandleBaseKind Kind, Value *V) in ValueHandleBase() 70 Value *operator=(Value *RHS) { 81 Value *operator=(const ValueHandleBase &RHS) { 92 Value *operator->() const { return getValPtr(); } 93 Value &operator*() const { 94 Value *V = getValPtr(); 100 Value *getValPtr() const { return Val; } in getValPtr() [all …]
|
| H A D | ConstantFolder.h | 44 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp() 45 Value *RHS) const override { in FoldBinOp() 56 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp() 69 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp() 87 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF() 92 Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, in FoldUnOpFMF() 99 Value *FoldCmp(CmpInst::Predicate P, Value *LHS, Value *RHS) const override { in FoldCmp() 107 Value *FoldGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, in FoldGEP() 114 if (any_of(IdxList, [](Value *V) { return !isa<Constant>(V); })) in FoldGEP() 122 Value *FoldSelect(Value *C, Value *True, Value *False) const override { in FoldSelect() [all …]
|
| H A D | FixedPointBuilder.h | 35 Value *Convert(Value *Src, const FixedPointSemantics &SrcSema, in Convert() 46 Value *Result = Src; in Convert() 55 Value *Zero = Constant::getNullValue(Result->getType()); in Convert() 56 Value *IsNegative = B.CreateICmpSLT(Result, Zero); in Convert() 57 Value *LowBits = ConstantInt::get( in Convert() 59 Value *Rounded = B.CreateAdd(Result, LowBits); in Convert() 88 Value *Max = ConstantInt::get( in Convert() 91 Value *TooHigh = SrcIsSigned ? B.CreateICmpSGT(Result, Max) in Convert() 98 Value *Min = ConstantInt::get( in Convert() 101 Value *TooLow = B.CreateICmpSLT(Result, Min); in Convert() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/ |
| H A D | XtensaInstPrinter.cpp | 147 int64_t Value = MI->getOperand(OpNum).getImm(); in printL32RTarget() local 150 Value &= ~0x3; in printL32RTarget() 151 Target += Value; in printL32RTarget() 154 int64_t InstrOff = Value & 0x3; in printL32RTarget() 155 Value -= InstrOff; in printL32RTarget() 156 assert((Value >= -262144 && Value <= -4) && in printL32RTarget() 158 Value += ((InstrOff + 0x3) & 0x4) - InstrOff; in printL32RTarget() 159 printPCRelImm(Address, Value, O); in printL32RTarget() 184 int64_t Value = MI->getOperand(OpNum).getImm(); in printImm8_AsmOperand() local 185 assert(isInt<8>(Value) && in printImm8_AsmOperand() [all …]
|
| H A D | XtensaAsmBackend.cpp | 40 MutableArrayRef<char> Data, uint64_t Value, 70 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, in adjustFixupValue() argument 80 return Value; in adjustFixupValue() 82 if (!Value) in adjustFixupValue() 84 Value -= 4; in adjustFixupValue() 85 if (!isUInt<6>(Value)) in adjustFixupValue() 87 unsigned Hi2 = (Value >> 4) & 0x3; in adjustFixupValue() 88 unsigned Lo4 = Value & 0xf; in adjustFixupValue() 92 Value -= 4; in adjustFixupValue() 93 if (!isInt<8>(Value)) in adjustFixupValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | GOFF.h | 59 uint8_t Length, uint8_t &Value) { in getBits() argument 64 get<uint8_t>(Bytes, ByteIndex, Value); in getBits() 65 Value = (Value >> (8 - BitIndex - Length)) & ((1 << Length) - 1); in getBits() 69 static void get(const uint8_t *Bytes, uint8_t ByteIndex, T &Value) { in get() argument 72 Value = support::endian::read<T, llvm::endianness::big>(&Bytes[ByteIndex]); in get() 126 uint8_t Value; in getSymbolType() local 127 get<uint8_t>(Record, 3, Value); in getSymbolType() 128 SymbolType = (GOFF::ESDSymbolType)Value; in getSymbolType() 148 uint8_t Value; in getNameSpaceId() local 149 get<uint8_t>(Record, 40, Value); in getNameSpaceId() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMAsmBackend.cpp | 209 static const char *checkPCRelOffset(uint64_t Value, int64_t Min, int64_t Max) { in checkPCRelOffset() argument 210 int64_t Offset = int64_t(Value) - 4; in checkPCRelOffset() 217 uint64_t Value) const { in reasonForFixupRelaxation() 226 int64_t Offset = int64_t(Value) - 4; in reasonForFixupRelaxation() 238 int64_t Offset = int64_t(Value) - 4; in reasonForFixupRelaxation() 247 int64_t Offset = int64_t(Value) - 4; in reasonForFixupRelaxation() 258 int64_t Offset = (Value & ~1); in reasonForFixupRelaxation() 264 return checkPCRelOffset(Value, 0, 30); in reasonForFixupRelaxation() 266 return checkPCRelOffset(Value, -0x10000, +0xfffe); in reasonForFixupRelaxation() 268 return checkPCRelOffset(Value, -0x40000, +0x3fffe); in reasonForFixupRelaxation() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | CodeViewRecordIO.cpp | 151 Error CodeViewRecordIO::mapEncodedInteger(int64_t &Value, in mapEncodedInteger() argument 154 if (Value >= 0) in mapEncodedInteger() 155 emitEncodedUnsignedInteger(static_cast<uint64_t>(Value), Comment); in mapEncodedInteger() 157 emitEncodedSignedInteger(Value, Comment); in mapEncodedInteger() 159 if (Value >= 0) { in mapEncodedInteger() 160 if (auto EC = writeEncodedUnsignedInteger(static_cast<uint64_t>(Value))) in mapEncodedInteger() 163 if (auto EC = writeEncodedSignedInteger(Value)) in mapEncodedInteger() 170 Value = N.getExtValue(); in mapEncodedInteger() 176 Error CodeViewRecordIO::mapEncodedInteger(uint64_t &Value, in mapEncodedInteger() argument 179 emitEncodedUnsignedInteger(Value, Comment); in mapEncodedInteger() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldELFMips.cpp | 15 uint64_t Value) { in resolveRelocation() argument 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 30 uint64_t Value, in evaluateRelocation() argument 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() 36 return Value; in evaluateRelocation() 42 uint64_t Value) { in applyRelocation() argument 45 applyMIPSRelocation(Section.getAddressWithOffset(RE.Offset), Value, in applyRelocation() 54 uint64_t Offset, uint64_t Value, in evaluateMIPS32Relocation() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineInternal.h | 94 Value *OptimizePointerDifference( 95 Value *LHS, Value *RHS, Type *Ty, bool isNUW); 112 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted); 119 Value *reassociateShiftAmtsOfTwoSameDirectionShifts( 132 Instruction *FoldShiftByConstant(Value *Op0, Constant *Op1, 151 Value *foldReversedIntrinsicOperands(IntrinsicInst *II); 162 Instruction *visitFree(CallInst &FI, Value *FreedOp); 182 Value *pushFreezeToPreventPoisonFromPropagating(FreezeInst &FI); 203 KnownFPClass computeKnownFPClass(Value *Val, FastMathFlags FMF, 212 KnownFPClass computeKnownFPClass(Value *Val, [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | StringSwitch.h | 68 StringSwitch &Case(StringLiteral S, T Value) { in Case() argument 69 CaseImpl(Value, S); in Case() 73 StringSwitch& EndsWith(StringLiteral S, T Value) { in EndsWith() argument 75 Result = std::move(Value); in EndsWith() 80 StringSwitch& StartsWith(StringLiteral S, T Value) { in StartsWith() argument 82 Result = std::move(Value); in StartsWith() 87 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, T Value) { in Cases() argument 88 return CasesImpl(Value, S0, S1); in Cases() 92 T Value) { in Cases() argument 93 return CasesImpl(Value, S0, S1, S2); in Cases() [all …]
|
| /freebsd/sys/contrib/dev/acpica/compiler/ |
| H A D | aslpld.c | 204 UINT32 Value; in OpcDoPld() local 229 Value = (UINT32) ThisOp->Asl.Child->Asl.Value.Integer; in OpcDoPld() 241 if (Value > 127) in OpcDoPld() 247 PldInfo.Revision = (UINT8) Value; in OpcDoPld() 258 if (Value > 1) in OpcDoPld() 264 PldInfo.IgnoreColor = (UINT8) Value; in OpcDoPld() 277 if (Value > 255) in OpcDoPld() 285 PldInfo.Red = (UINT8) Value; in OpcDoPld() 289 PldInfo.Green = (UINT8) Value; in OpcDoPld() 293 PldInfo.Blue = (UINT8) Value; in OpcDoPld() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | IRBuilder.cpp | 71 Value *IRBuilderBase::CreateAggregateCast(Value *V, Type *DestTy) { in CreateAggregateCast() 90 Value *Result = PoisonValue::get(DestTy); in CreateAggregateCast() 94 Value *Element = in CreateAggregateCast() 106 IRBuilderBase::createCallHelper(Function *Callee, ArrayRef<Value *> Ops, in createCallHelper() 115 static Value *CreateVScaleMultiple(IRBuilderBase &B, Type *Ty, uint64_t Scale) { in CreateVScaleMultiple() 116 Value *VScale = B.CreateVScale(Ty); in CreateVScaleMultiple() 123 Value *IRBuilderBase::CreateElementCount(Type *Ty, ElementCount EC) { in CreateElementCount() 130 Value *IRBuilderBase::CreateTypeSize(Type *Ty, TypeSize Size) { in CreateTypeSize() 137 Value *IRBuilderBase::CreateStepVector(Type *DstType, const Twine &Name) { in CreateStepVector() 147 Value *Res = CreateIntrinsic(Intrinsic::stepvector, {StepVecType}, {}, in CreateStepVector() [all …]
|