| /openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
| D | BuildLibCalls.h | 20 class Value; variable 84 Value *castToCStr(Value *V, IRBuilderBase &B); 89 Value *emitStrLen(Value *Ptr, IRBuilderBase &B, const DataLayout &DL, 95 Value *emitStrDup(Value *Ptr, IRBuilderBase &B, const TargetLibraryInfo *TLI); 100 Value *emitStrChr(Value *Ptr, char C, IRBuilderBase &B, 104 Value *emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, 109 Value *emitStrCpy(Value *Dst, Value *Src, IRBuilderBase &B, 114 Value *emitStpCpy(Value *Dst, Value *Src, IRBuilderBase &B, 119 Value *emitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, 124 Value *emitStpNCpy(Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, [all …]
|
| D | SimplifyLibCalls.h | 22 class Value; variable 51 Value *optimizeCall(CallInst *CI, IRBuilderBase &B); 54 Value *optimizeMemCpyChk(CallInst *CI, IRBuilderBase &B); 55 Value *optimizeMemMoveChk(CallInst *CI, IRBuilderBase &B); 56 Value *optimizeMemSetChk(CallInst *CI, IRBuilderBase &B); 59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilderBase &B, LibFunc Func); 61 Value *optimizeStrLenChk(CallInst *CI, IRBuilderBase &B); 62 Value *optimizeMemPCpyChk(CallInst *CI, IRBuilderBase &B); 63 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilderBase &B); [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Analysis/ |
| D | InstructionSimplify.h | 58 class Value; variable 133 bool isUndefValue(Value *V) const { in isUndefValue() 147 Value *simplifyAddInst(Value *LHS, Value *RHS, bool IsNSW, bool IsNUW, 151 Value *simplifySubInst(Value *LHS, Value *RHS, bool IsNSW, bool IsNUW, 155 Value *simplifyMulInst(Value *LHS, Value *RHS, bool IsNSW, bool IsNUW, 159 Value *simplifySDivInst(Value *LHS, Value *RHS, bool IsExact, 163 Value *simplifyUDivInst(Value *LHS, Value *RHS, bool IsExact, 167 Value *simplifySRemInst(Value *LHS, Value *RHS, const SimplifyQuery &Q); 170 Value *simplifyURemInst(Value *LHS, Value *RHS, const SimplifyQuery &Q); 173 Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, const SimplifyQuery &Q); [all …]
|
| D | ValueTracking.h | 44 class Value; variable 56 void computeKnownBits(const Value *V, KnownBits &Known, const DataLayout &DL, 71 void computeKnownBits(const Value *V, const APInt &DemandedElts, 80 KnownBits computeKnownBits(const Value *V, const DataLayout &DL, 88 KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts, 102 bool haveNoCommonBitsSet(const Value *LHS, const Value *RHS, 113 bool isKnownToBeAPowerOfTwo(const Value *V, const DataLayout &DL, 128 bool isKnownNonZero(const Value *V, const DataLayout &DL, unsigned Depth = 0, 138 bool isKnownNegation(const Value *X, const Value *Y, bool NeedNSW = false); 141 bool isKnownNonNegative(const Value *V, const DataLayout &DL, [all …]
|
| D | InstSimplifyFolder.h | 50 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp() 51 Value *RHS) const override { in FoldBinOp() 55 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp() 60 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp() 65 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF() 70 Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, in FoldUnOpFMF() 75 Value *FoldICmp(CmpInst::Predicate P, Value *LHS, Value *RHS) const override { in FoldICmp() 79 Value *FoldGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, 84 Value *FoldSelect(Value *C, Value *True, Value *False) const override { in FoldSelect() 88 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/IR/ |
| D | IRBuilderFolder.h | 35 virtual Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, 36 Value *RHS) const = 0; 38 virtual Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, 39 Value *RHS, bool IsExact) const = 0; 41 virtual Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, 42 Value *RHS, bool HasNUW, 45 virtual Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, 46 Value *RHS, FastMathFlags FMF) const = 0; 48 virtual Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, 51 virtual Value *FoldICmp(CmpInst::Predicate P, Value *LHS, [all …]
|
| D | IRBuilder.h | 156 Value *Insert(Value *V, const Twine &Name = "") const { 580 CallInst *CreateMemSet(Value *Ptr, Value *Val, uint64_t Size, 588 CallInst *CreateMemSet(Value *Ptr, Value *Val, Value *Size, MaybeAlign Align, 593 CallInst *CreateMemSetInline(Value *Dst, MaybeAlign DstAlign, Value *Val, 594 Value *Size, bool IsVolatile = false, 605 CallInst *CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, 616 CallInst *CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, 617 Value *Size, Align Alignment, 628 CallInst *CreateMemCpy(Value *Dst, MaybeAlign DstAlign, Value *Src, 640 Intrinsic::ID IntrID, Value *Dst, MaybeAlign DstAlign, Value *Src, [all …]
|
| D | Value.h | 55 using ValueName = StringMapEntry<Value *>; 74 class Value { 126 friend class Value; variable 172 friend class Value; variable 215 Value(Type *Ty, unsigned scid); 222 ~Value(); // Use deleteValue() to delete a generic Value. 225 Value(const Value &) = delete; 226 Value &operator=(const Value &) = delete; 268 void doRAUW(Value *New, ReplaceMetadataUses); 291 void takeName(Value *V); [all …]
|
| D | ValueHandle.h | 30 friend class Value; variable 51 Value *Val = nullptr; 53 void setValPtr(Value *V) { Val = V; } in setValPtr() 58 ValueHandleBase(HandleBaseKind Kind, Value *V) in ValueHandleBase() 69 Value *operator=(Value *RHS) { 80 Value *operator=(const ValueHandleBase &RHS) { 91 Value *operator->() const { return getValPtr(); } 92 Value &operator*() const { 93 Value *V = getValPtr(); 99 Value *getValPtr() const { return Val; } in getValPtr() [all …]
|
| D | NoFolder.h | 48 Value *FoldBinOp(Instruction::BinaryOps Opc, Value *LHS, in FoldBinOp() 49 Value *RHS) const override { in FoldBinOp() 53 Value *FoldExactBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldExactBinOp() 58 Value *FoldNoWrapBinOp(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldNoWrapBinOp() 63 Value *FoldBinOpFMF(Instruction::BinaryOps Opc, Value *LHS, Value *RHS, in FoldBinOpFMF() 68 Value *FoldUnOpFMF(Instruction::UnaryOps Opc, Value *V, in FoldUnOpFMF() 73 Value *FoldICmp(CmpInst::Predicate P, Value *LHS, Value *RHS) const override { in FoldICmp() 77 Value *FoldGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, 82 Value *FoldSelect(Value *C, Value *True, Value *False) const override { in FoldSelect() 86 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() [all …]
|
| 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 …]
|
| D | Instructions.h | 51 class Value; variable 75 explicit AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, 77 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, 85 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align, 87 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align, 96 const Value *getArraySize() const { return getOperand(0); } in getArraySize() 97 Value *getArraySize() { return getOperand(0); } in getArraySize() 158 static bool classof(const Value *V) { in classof() 166 void setSubclassData(typename Bitfield::Type Value) { in setSubclassData() argument 167 Instruction::setSubclassData<Bitfield>(Value); in setSubclassData() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Support/ |
| D | ScopedPrinter.h | 34 T Value; member 36 : Name(N), AltName(A), Value(V) {} in EnumEntry() 37 constexpr EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} in EnumEntry() 45 HexNumber(char Value) : Value(static_cast<unsigned char>(Value)) {} in HexNumber() 46 HexNumber(signed char Value) : Value(static_cast<unsigned char>(Value)) {} in HexNumber() 47 HexNumber(signed short Value) : Value(static_cast<unsigned short>(Value)) {} in HexNumber() 48 HexNumber(signed int Value) : Value(static_cast<unsigned int>(Value)) {} in HexNumber() 49 HexNumber(signed long Value) : Value(static_cast<unsigned long>(Value)) {} in HexNumber() 50 HexNumber(signed long long Value) in HexNumber() 51 : Value(static_cast<unsigned long long>(Value)) {} in HexNumber() [all …]
|
| D | LEB128.h | 23 inline unsigned encodeSLEB128(int64_t Value, raw_ostream &OS, 28 uint8_t Byte = Value & 0x7f; 30 Value >>= 7; 31 More = !((((Value == 0 ) && ((Byte & 0x40) == 0)) || 32 ((Value == -1) && ((Byte & 0x40) != 0)))); 41 uint8_t PadValue = Value < 0 ? 0x7f : 0x00; 52 inline unsigned encodeSLEB128(int64_t Value, uint8_t *p, unsigned PadTo = 0) { 57 uint8_t Byte = Value & 0x7f; 59 Value >>= 7; 60 More = !((((Value == 0 ) && ((Byte & 0x40) == 0)) || [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AVR/MCTargetDesc/ |
| D | AVRAsmBackend.cpp | 37 static void signed_width(unsigned Width, uint64_t Value, in signed_width() argument 40 if (!isIntN(Width, Value)) { in signed_width() 57 static void unsigned_width(unsigned Width, uint64_t Value, in unsigned_width() argument 60 if (!isUIntN(Width, Value)) { in unsigned_width() 77 static void adjustBranch(unsigned Size, const MCFixup &Fixup, uint64_t &Value, in adjustBranch() argument 81 unsigned_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in adjustBranch() 84 AVR::fixups::adjustBranchTarget(Value); in adjustBranch() 89 uint64_t &Value, MCContext *Ctx = nullptr) { in adjustRelativeBranch() argument 92 signed_width(Size + 1, Value, std::string("branch target"), Fixup, Ctx); in adjustRelativeBranch() 95 AVR::fixups::adjustBranchTarget(Value); in adjustRelativeBranch() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/ADT/ |
| D | StringSwitch.h | 69 StringSwitch &Case(StringLiteral S, T Value) { in Case() argument 71 Result = std::move(Value); in Case() 76 StringSwitch& EndsWith(StringLiteral S, T Value) { in EndsWith() argument 78 Result = std::move(Value); in EndsWith() 83 StringSwitch& StartsWith(StringLiteral S, T Value) { in StartsWith() argument 85 Result = std::move(Value); in StartsWith() 90 StringSwitch &Cases(StringLiteral S0, StringLiteral S1, T Value) { in Cases() argument 91 return Case(S0, Value).Case(S1, Value); in Cases() 95 T Value) { in Cases() argument 96 return Case(S0, Value).Cases(S1, S2, Value); in Cases() [all …]
|
| D | Any.h | 45 explicit StorageImpl(const T &Value) : Value(Value) {} in StorageImpl() 47 explicit StorageImpl(T &&Value) : Value(std::move(Value)) {} in StorageImpl() 50 return std::make_unique<StorageImpl<T>>(Value); in clone() 55 T Value; member 88 Any(T &&Value) { in Any() argument 90 std::make_unique<StorageImpl<std::decay_t<T>>>(std::forward<T>(Value)); in Any() 117 template <class T> friend T any_cast(const Any &Value); 118 template <class T> friend T any_cast(Any &Value); 119 template <class T> friend T any_cast(Any &&Value); 120 template <class T> friend const T *any_cast(const Any *Value); [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/DebugInfo/CodeView/ |
| D | CodeViewRecordIO.cpp | 150 Error CodeViewRecordIO::mapEncodedInteger(int64_t &Value, in mapEncodedInteger() argument 153 if (Value >= 0) in mapEncodedInteger() 154 emitEncodedUnsignedInteger(static_cast<uint64_t>(Value), Comment); in mapEncodedInteger() 156 emitEncodedSignedInteger(Value, Comment); in mapEncodedInteger() 158 if (Value >= 0) { in mapEncodedInteger() 159 if (auto EC = writeEncodedUnsignedInteger(static_cast<uint64_t>(Value))) in mapEncodedInteger() 162 if (auto EC = writeEncodedSignedInteger(Value)) in mapEncodedInteger() 169 Value = N.getExtValue(); in mapEncodedInteger() 175 Error CodeViewRecordIO::mapEncodedInteger(uint64_t &Value, in mapEncodedInteger() argument 178 emitEncodedUnsignedInteger(Value, Comment); in mapEncodedInteger() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| 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 …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/ARM/MCTargetDesc/ |
| D | ARMAsmBackend.cpp | 239 static const char *checkPCRelOffset(uint64_t Value, int64_t Min, int64_t Max) { in checkPCRelOffset() argument 240 int64_t Offset = int64_t(Value) - 4; in checkPCRelOffset() 247 uint64_t Value) const { in reasonForFixupRelaxation() 256 int64_t Offset = int64_t(Value) - 4; in reasonForFixupRelaxation() 268 int64_t Offset = int64_t(Value) - 4; in reasonForFixupRelaxation() 277 int64_t Offset = int64_t(Value) - 4; in reasonForFixupRelaxation() 288 int64_t Offset = (Value & ~1); in reasonForFixupRelaxation() 294 return checkPCRelOffset(Value, 0, 30); in reasonForFixupRelaxation() 296 return checkPCRelOffset(Value, -0x10000, +0xfffe); in reasonForFixupRelaxation() 298 return checkPCRelOffset(Value, -0x40000, +0x3fffe); in reasonForFixupRelaxation() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| D | RuntimeDyldELF.cpp | 260 uint64_t Offset, uint64_t Value, in resolveX86_64Relocation() argument 270 Value += Addend; in resolveX86_64Relocation() 271 assert((int64_t)Value <= INT8_MAX && (int64_t)Value >= INT8_MIN); in resolveX86_64Relocation() 272 uint8_t TruncatedAddr = (Value & 0xFF); in resolveX86_64Relocation() 279 Value += Addend; in resolveX86_64Relocation() 280 assert((int64_t)Value <= INT16_MAX && (int64_t)Value >= INT16_MIN); in resolveX86_64Relocation() 281 uint16_t TruncatedAddr = (Value & 0xFFFF); in resolveX86_64Relocation() 290 Value + Addend; in resolveX86_64Relocation() 291 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation() 297 Value += Addend; in resolveX86_64Relocation() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| D | IntegerDivision.cpp | 32 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() 51 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode() 52 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode() 53 Value *DvdXor = Builder.CreateXor(Dividend, DividendSign); in generateSignedRemainderCode() 54 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); in generateSignedRemainderCode() 55 Value *UDividend = Builder.CreateSub(DvdXor, DividendSign); in generateSignedRemainderCode() 56 Value *UDivisor = Builder.CreateSub(DvsXor, DivisorSign); in generateSignedRemainderCode() 57 Value *URem = Builder.CreateURem(UDividend, UDivisor); in generateSignedRemainderCode() 58 Value *Xored = Builder.CreateXor(URem, DividendSign); in generateSignedRemainderCode() 59 Value *SRem = Builder.CreateSub(Xored, DividendSign); in generateSignedRemainderCode() [all …]
|
| /openbsd/src/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/ |
| D | Value.h | 33 class Value { 51 explicit Value(Kind ValKind) : ValKind(ValKind) {} in Value() function 56 Value(const Value &) = delete; 57 Value &operator=(const Value &) = delete; 59 virtual ~Value() = default; 65 Value *getProperty(llvm::StringRef Name) const { in getProperty() 72 void setProperty(llvm::StringRef Name, Value &Val) { in setProperty() 78 llvm::StringMap<Value *> Properties; 90 bool areEquivalentValues(const Value &Val1, const Value &Val2); 93 class BoolValue : public Value { [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/X86/AsmParser/ |
| D | X86AsmParserCommon.h | 16 inline bool isImmSExti16i8Value(uint64_t Value) { in isImmSExti16i8Value() argument 17 return isInt<8>(Value) || in isImmSExti16i8Value() 18 (isUInt<16>(Value) && isInt<8>(static_cast<int16_t>(Value))); in isImmSExti16i8Value() 21 inline bool isImmSExti32i8Value(uint64_t Value) { in isImmSExti32i8Value() argument 22 return isInt<8>(Value) || in isImmSExti32i8Value() 23 (isUInt<32>(Value) && isInt<8>(static_cast<int32_t>(Value))); in isImmSExti32i8Value() 26 inline bool isImmSExti64i8Value(uint64_t Value) { in isImmSExti64i8Value() argument 27 return isInt<8>(Value); in isImmSExti64i8Value() 30 inline bool isImmSExti64i32Value(uint64_t Value) { in isImmSExti64i32Value() argument 31 return isInt<32>(Value); in isImmSExti64i32Value() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/MC/ |
| D | MCInstPrinter.cpp | 70 return STI->getFeatureBits().test(C.Value); in matchAliasCondition() 72 return !STI->getFeatureBits().test(C.Value); in matchAliasCondition() 77 OrPredicateResult |= STI->getFeatureBits().test(C.Value); in matchAliasCondition() 81 OrPredicateResult |= !(STI->getFeatureBits().test(C.Value)); in matchAliasCondition() 98 return Opnd.isImm() && Opnd.getImm() == int32_t(C.Value); in matchAliasCondition() 101 return Opnd.isReg() && Opnd.getReg() == C.Value; in matchAliasCondition() 104 return Opnd.isReg() && Opnd.getReg() == MI.getOperand(C.Value).getReg(); in matchAliasCondition() 107 return Opnd.isReg() && MRI.getRegClass(C.Value).contains(Opnd.getReg()); in matchAliasCondition() 110 return M.ValidateMCOperand(Opnd, *STI, C.Value); in matchAliasCondition() 182 static bool needsLeadingZero(uint64_t Value) in needsLeadingZero() argument [all …]
|