/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ConstantFolding.h | 33 class Constant; variable 43 /// If this constant is a constant offset from a global, return the global and 44 /// the constant. Because of constantexprs, this function is recursive. 45 /// If the global is part of a dso_local_equivalent constant, return it through 47 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset, 51 /// ConstantFoldInstruction - Try to constant fold the specified instruction. 52 /// If successful, the constant result is returned, if not, null is returned. 53 /// Note that this fails if not all of the operands are constant. Otherwise, 55 /// and stores, which have no constant expression form. 56 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL, [all …]
|
H A D | TargetFolder.h | 1 //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====// 12 // folding that the ConstantFolder class provides. For general constant 29 class Constant; variable 37 /// Fold - Fold the constant using target specific information. 38 Constant *Fold(Constant *C) const { in Fold() 50 // Return an existing value or a constant if the operation can be simplified. 56 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() 57 auto *RC = dyn_cast<Constant>(RHS); in FoldBinOp() 68 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() 69 auto *RC = dyn_cast<Constant>(RHS); in FoldExactBinOp() [all …]
|
H A D | ValueLattice.h | 22 class Constant; variable 38 /// This Value is an UndefValue constant or produces undef. Undefined values 39 /// can be merged with constants (or single element constant ranges), 42 /// constant 47 /// This Value has a specific constant value. The constant cannot be undef. 48 /// (For constant integers, constantrange is used instead. Integer typed 49 /// constantexprs can appear as constant.) Note that the constant state 50 /// can be reached by merging undef & constant states. 53 constant, enumerator 55 /// This Value is known to not have the specified value. (For constant [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constant.h | 1 //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===// 9 // This file contains the declaration of the Constant class. 26 /// of all constant values in an LLVM program. A constant is a value that is 33 /// or expression based (computations yielding a constant value composed of 34 /// only certain operators and other constant values). 41 /// LLVM Constant Representation 42 class Constant : public User { 44 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() function 47 ~Constant() = default; 50 void operator=(const Constant &) = delete; [all …]
|
H A D | ConstantFold.h | 1 //==-- ConstantFold.h - DL-independent Constant Folding Interface -*- C++ -*-=// 9 // This file defines the DataLayout-independent constant folding interface. 10 // When possible, the DataLayout-aware constant folding interface in 17 // the specified operation on the specified constant types. 30 class Constant; variable 33 // Constant fold various types of instruction... 34 Constant *ConstantFoldCastInstruction( 36 Constant *V, ///< The source constant 39 Constant *ConstantFoldSelectInstruction(Constant *Cond, 40 Constant *V1, Constant *V2); [all …]
|
H A D | Constants.h | 1 //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===// 10 /// This file contains the declarations for the subclasses of Constant, 11 /// which represent the different flavors of constant values that live in LLVM. 28 #include "llvm/IR/Constant.h" 53 class ConstantData : public Constant { 54 friend class Constant; variable 57 llvm_unreachable("Constant data does not have operands!"); in handleOperandChangeImpl() 61 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} in ConstantData() 80 /// Class for constant integers. 82 friend class Constant; variable [all …]
|
H A D | ConstantFolder.h | 1 //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===// 11 // with minimal folding. For general constant creation and folding, 39 // Return an existing value or a constant if the operation can be simplified. 45 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() 46 auto *RC = dyn_cast<Constant>(RHS); in FoldBinOp() 57 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() 58 auto *RC = dyn_cast<Constant>(RHS); in FoldExactBinOp() 70 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() 71 auto *RC = dyn_cast<Constant>(RHS); in FoldNoWrapBinOp() 93 if (Constant *C = dyn_cast<Constant>(V)) in FoldUnOpFMF() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 1 //===-- Constants.cpp - Implement Constant nodes --------------------------===// 9 // This file implements the Constant* classes. 40 "use-constant-int-for-fixed-length-splat", cl::init(false), cl::Hidden, 43 "use-constant-fp-for-fixed-length-splat", cl::init(false), cl::Hidden, 46 "use-constant-int-for-scalable-splat", cl::init(false), cl::Hidden, 49 "use-constant-fp-for-scalable-splat", cl::init(false), cl::Hidden, 53 // Constant Class 56 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue() 74 // Return true iff this constant is positive zero (floating point), negative 76 bool Constant::isZeroValue() const { in isZeroValue() [all …]
|
H A D | ConstantFold.cpp | 1 //===- ConstantFold.cpp - LLVM constant folder ----------------------------===// 13 // The current constant folding implementation is implemented in two pieces: the 40 /// This function determines which opcode to use to fold two constant cast 46 unsigned opc, ///< opcode of the second cast constant expression in foldConstantCastPair() 47 ConstantExpr *Op, ///< the first cast constant expression in foldConstantCastPair() 54 // The types and opcodes for the two Cast constant expressions in foldConstantCastPair() 70 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() 75 // Handle casts from one vector constant to another. We know that the src in FoldBitCast() 79 return Constant::getAllOnesValue(DestTy); in FoldBitCast() 89 // Handle integral constant input. in FoldBitCast() [all …]
|
H A D | ConstantsContext.h | 23 #include "llvm/IR/Constant.h" 45 /// behind the scenes to implement cast constant exprs. 48 CastConstantExpr(unsigned Opcode, Constant *C, Type *Ty) in CastConstantExpr() 68 /// behind the scenes to implement binary constant exprs. 71 BinaryConstantExpr(unsigned Opcode, Constant *C1, Constant *C2, in BinaryConstantExpr() 96 /// extractelement constant exprs. 99 ExtractElementConstantExpr(Constant *C1, Constant *C2) in ExtractElementConstantExpr() 123 /// insertelement constant exprs. 126 InsertElementConstantExpr(Constant *C1, Constant *C2, Constant *C3) in InsertElementConstantExpr() 151 /// shufflevector constant exprs. [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ConstantEmitter.h | 1 //===--- ConstantEmitter.h - IR constant emission ---------------*- C++ -*-===// 37 /// Whether the constant-emission failed. 40 /// Whether we're in a constant context. 47 llvm::SmallVector<std::pair<llvm::Constant *, llvm::GlobalVariable*>, 4> 74 /// constant. If this succeeds, the emission must be finalized. 75 llvm::Constant *tryEmitForInitializer(const VarDecl &D); 76 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace, 78 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace, 98 /// constant. 99 llvm::Constant *tryEmitAbstractForInitializer(const VarDecl &D); [all …]
|
H A D | CGExprConstant.cpp | 1 //===--- CGExprConstant.cpp - Emit LLVM Code from Constant Expressions ----===// 9 // This contains code to emit Constant Expr nodes as LLVM code. 50 CharUnits getAlignment(const llvm::Constant *C) const { in getAlignment() 59 CharUnits getSize(const llvm::Constant *C) const { in getSize() 63 llvm::Constant *getPadding(CharUnits PadSize) const { in getPadding() 70 llvm::Constant *getZeroes(CharUnits ZeroSize) const { in getZeroes() 76 /// Incremental builder for an llvm::Constant* holding a struct or array 77 /// constant. 79 /// The elements of the constant. These two arrays must have the same size; 80 /// Offsets[i] describes the offset of Elems[i] within the constant. The [all …]
|
H A D | ConstantInitBuilder.cpp | 23 if (Data.is<llvm::Constant*>()) { in getType() 24 return Data.get<llvm::Constant*>()->getType(); in getType() 40 if (Data.is<llvm::Constant*>()) { in installInGlobal() 41 GV->setInitializer(Data.get<llvm::Constant*>()); in installInGlobal() 52 ConstantInitBuilderBase::createFuture(llvm::Constant *initializer) { in createFuture() 67 ConstantInitBuilderBase::createGlobal(llvm::Constant *initializer, in createGlobal() 70 bool constant, in createGlobal() argument 75 constant, in createGlobal() 88 llvm::Constant *initializer){ in setGlobalInitializer() 97 llvm::Constant *resolvedReference = in resolveSelfReferences() [all …]
|
/freebsd/contrib/libfido2/windows/ |
H A D | const.ps1 | 9 -Option Constant 10 New-Variable -Name 'LIBRESSL' -Value 'libressl-3.7.3' -Option Constant 11 New-Variable -Name 'CRYPTO_LIBRARIES' -Value 'crypto-50' -Option Constant 14 New-Variable -Name 'LIBCBOR' -Value 'libcbor-0.10.2' -Option Constant 15 New-Variable -Name 'LIBCBOR_BRANCH' -Value 'v0.10.2' -Option Constant 17 -Option Constant 20 New-Variable -Name 'ZLIB' -Value 'zlib-1.3' -Option Constant 21 New-Variable -Name 'ZLIB_BRANCH' -Value 'v1.3' -Option Constant 23 -Option Constant 26 New-Variable -Name 'BUILD' -Value "$PSScriptRoot\..\build" -Option Constant [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | Evaluator.h | 33 /// This class evaluates LLVM IR, producing the Constant representing each SSA 40 /// The evaluator represents values either as a Constant*, or as a 42 /// without creating a new interned Constant. 44 PointerUnion<Constant *, MutableAggregate *> Val; 49 MutableValue(Constant *C) { Val = C; } in MutableValue() 58 if (auto *C = dyn_cast_if_present<Constant *>(Val)) in getType() 63 Constant *toConstant() const { in toConstant() 64 if (auto *C = dyn_cast_if_present<Constant *>(Val)) in toConstant() 69 Constant *read(Type *Ty, APInt Offset, const DataLayout &DL) const; 70 bool write(Constant *V, APInt Offset, const DataLayout &DL); [all …]
|
/freebsd/share/examples/bootforth/ |
H A D | frames.4th | 15 196 constant sh_el 16 179 constant sv_el 17 218 constant slt_el 18 192 constant slb_el 19 191 constant srt_el 20 217 constant srb_el 22 205 constant dh_el 23 186 constant dv_el 24 201 constant dlt_el 25 200 constant dlb_el [all …]
|
/freebsd/stand/forth/ |
H A D | frames.4th | 43 45 constant ascii_dash 44 61 constant ascii_equal 45 124 constant ascii_pipe 46 43 constant ascii_plus 49 0x2500 constant sh_el 50 0x2502 constant sv_el 51 0x250c constant slt_el 52 0x2514 constant slb_el 53 0x2510 constant srt_el 54 0x2518 constant srb_el [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | FunctionSpecialization.h | 11 // Function Specialization is a transformation which propagates the constant 13 // the Inter-Procedural Sparse Conditional Constant Propagation (IPSCCP) pass. 17 // arising from specializations which return constant values or contain calls 20 // Function Specialization supports propagating constant parameters like 30 // from propagating a constant argument. This is the InstCostVisitor, a class 33 // dead in the specialization from propagating the constant, whereas latency 35 // constant values. The InstCostVisitor overrides a set of `visit*` methods to 36 // be able to handle different types of instructions. These attempt to constant- 37 // fold the instruction in which case a constant is returned and propagated 98 using ConstMap = DenseMap<Value *, Constant *>; [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | ConstantHoisting.h | 14 // cost. If the constant can be folded into the instruction (the cost is 19 // If the cost is more than TCC_BASIC, then the integer constant can't be folded 20 // into the instruction and it might be beneficial to hoist the constant. 24 // When a constant is hoisted, it is also hidden behind a bitcast to force it to 25 // be live-out of the basic block. Otherwise the constant would be just 28 // certain transformations on them, which would create a new expensive constant. 31 // simple (this means not nested) constant cast expressions. For example: 54 class Constant; variable 70 /// Keeps track of the user of a constant and the operand index where the 71 /// constant is used. [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 14 // cost. If the constant can be folded into the instruction (the cost is 19 // If the cost is more than TCC_BASIC, then the integer constant can't be folded 20 // into the instruction and it might be beneficial to hoist the constant. 24 // When a constant is hoisted, it is also hidden behind a bitcast to force it to 25 // be live-out of the basic block. Otherwise the constant would be just 28 // certain transformations on them, which would create a new expensive constant. 31 // simple (this means not nested) constant cast expressions. For example: 89 cl::desc("Try hoisting constant gep expressions")); 99 /// The constant hoisting pass. 110 StringRef getPassName() const override { return "Constant Hoisting"; } in getPassName() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 32 #include "llvm/IR/Constant.h" 68 // Constant Folding internal helper functions 71 static Constant *foldConstVectorToAPInt(APInt &Result, Type *DestTy, in foldConstVectorToAPInt() 72 Constant *C, Type *SrcEltTy, in foldConstVectorToAPInt() 79 Constant *Element; in foldConstVectorToAPInt() 101 /// Constant fold bitcast, symbolically evaluating it with DataLayout. 102 /// This always returns a non-null constant, but it may be a 104 Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) { in FoldBitCast() 109 if (Constant *Res = ConstantFoldLoadFromUniformValue(C, DestTy, DL)) in FoldBitCast() 129 if (Constant *CE = foldConstVectorToAPInt(Result, DestTy, C, in FoldBitCast() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64PromoteConstant.cpp | 1 //==- AArch64PromoteConstant.cpp - Promote constant to global for AArch64 --==// 11 // types related to constant vector (i.e., constant vector, array of constant 12 // vectors, constant structure with a constant vector field, etc.) are promoted 13 // to global variables. Constant vectors are likely to be lowered in target 14 // constant pool during instruction selection already; therefore, the access 16 // into different constant pool accesses for each field. A bonus side effect is 27 #include "llvm/IR/Constant.h" 68 /// Promotes interesting constant into global variables. 100 using PromotionCacheTy = SmallDenseMap<Constant *, PromotedConstant, 16>; 103 Constant *C; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Evaluator.cpp | 20 #include "llvm/IR/Constant.h" 45 isSimpleEnoughValueToCommit(Constant *C, 46 SmallPtrSetImpl<Constant *> &SimpleConstants, 49 /// Return true if the specified constant can be handled by the code generator. 58 isSimpleEnoughValueToCommitHelper(Constant *C, in isSimpleEnoughValueToCommitHelper() 59 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommitHelper() 66 // Simple integer, undef, constant aggregate zero, etc are all supported. in isSimpleEnoughValueToCommitHelper() 73 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) in isSimpleEnoughValueToCommitHelper() 78 // We don't know exactly what relocations are allowed in constant expressions, in isSimpleEnoughValueToCommitHelper() 96 // GEP is fine if it is simple + constant offset. in isSimpleEnoughValueToCommitHelper() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
H A D | ConstantInitBuilder.h | 35 /// A convenience builder class for complex constant initializers, 53 /// /*constant*/ true); 57 llvm::SmallVector<llvm::Constant*, 4> Indices; 62 llvm::SmallVector<llvm::Constant*, 16> Buffer; 80 llvm::GlobalVariable *createGlobal(llvm::Constant *initializer, 83 bool constant = false, 88 ConstantInitFuture createFuture(llvm::Constant *initializer); 91 llvm::Constant *initializer); 111 llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() { in getBuffer() 115 const llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() const { in getBuffer() [all …]
|
/freebsd/sys/dev/isci/scil/ |
H A D | sci_controller_constants.h | 62 * @brief This file contains constant values that change based on the type 76 * This constant defines the maximum number of phy objects that can be 85 * This constant defines the maximum number of port objects that can be 94 * This constant defines the minimum number of SMP phy objects that 104 * This constant defines the maximum number of SMP phy objects that 113 * This constant defines the maximum number of remote device objects that 122 * This constant defines the minimum number of remote device objects that 132 * This constant defines the maximum number of IO request objects that 141 * This constant defines the minimum number of IO request objects that 151 * This constant defines the maximum number of Scatter-Gather Elements [all …]
|