| /freebsd-9-stable/contrib/llvm/include/llvm/Support/ |
| D | ConstantFolder.h | 34 Constant *CreateAdd(Constant *LHS, Constant *RHS, 38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 41 Constant *CreateSub(Constant *LHS, Constant *RHS, 45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 48 Constant *CreateMul(Constant *LHS, Constant *RHS, 52 Constant *CreateFMul(Constant *LHS, Constant *RHS) const { in CreateFMul() 55 Constant *CreateUDiv(Constant *LHS, Constant *RHS, 59 Constant *CreateSDiv(Constant *LHS, Constant *RHS, 63 Constant *CreateFDiv(Constant *LHS, Constant *RHS) const { in CreateFDiv() 66 Constant *CreateURem(Constant *LHS, Constant *RHS) const { in CreateURem() [all …]
|
| D | TargetFolder.h | 36 Constant *Fold(Constant *C) const { in Fold() 38 if (Constant *CF = ConstantFoldConstantExpression(CE, TD)) in Fold() 50 Constant *CreateAdd(Constant *LHS, Constant *RHS, 54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 57 Constant *CreateSub(Constant *LHS, Constant *RHS, 61 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 64 Constant *CreateMul(Constant *LHS, Constant *RHS, 68 Constant *CreateFMul(Constant *LHS, Constant *RHS) const { in CreateFMul() 71 Constant *CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{ 74 Constant *CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{ [all …]
|
| D | NoFolder.h | 40 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd() 50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd() 53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 56 Instruction *CreateSub(Constant *LHS, Constant *RHS, 63 Instruction *CreateNSWSub(Constant *LHS, Constant *RHS) const { in CreateNSWSub() 66 Instruction *CreateNUWSub(Constant *LHS, Constant *RHS) const { in CreateNUWSub() 69 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 72 Instruction *CreateMul(Constant *LHS, Constant *RHS, 79 Instruction *CreateNSWMul(Constant *LHS, Constant *RHS) const { in CreateNSWMul() [all …]
|
| /freebsd-9-stable/contrib/llvm/include/llvm/IR/ |
| D | Constants.h | 51 class ConstantInt : public Constant { 65 static Constant *getTrue(Type *Ty); 66 static Constant *getFalse(Type *Ty); 70 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false); 87 static Constant *getSigned(Type *Ty, int64_t V); 100 static Constant *get(Type* Ty, const APInt& V); 232 class ConstantFP : public Constant { 249 static Constant *getZeroValueForNegation(Type *Ty); 255 static Constant *get(Type* Ty, double V); 256 static Constant *get(Type* Ty, StringRef Str); [all …]
|
| D | IRBuilder.h | 482 Constant *Insert(Constant *C, const Twine& = "") const { 617 if (Constant *LC = dyn_cast<Constant>(LHS)) 618 if (Constant *RC = dyn_cast<Constant>(RHS)) 631 if (Constant *LC = dyn_cast<Constant>(LHS)) 632 if (Constant *RC = dyn_cast<Constant>(RHS)) 639 if (Constant *LC = dyn_cast<Constant>(LHS)) 640 if (Constant *RC = dyn_cast<Constant>(RHS)) 653 if (Constant *LC = dyn_cast<Constant>(LHS)) 654 if (Constant *RC = dyn_cast<Constant>(RHS)) 661 if (Constant *LC = dyn_cast<Constant>(LHS)) [all …]
|
| D | Constant.h | 41 class Constant : public User { 42 void operator=(const Constant &) LLVM_DELETED_FUNCTION; 43 Constant(const Constant &) LLVM_DELETED_FUNCTION; 47 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() function 104 Constant *getAggregateElement(unsigned Elt) const; 105 Constant *getAggregateElement(Constant *Elt) const; 109 Constant *getSplatValue() const; 150 static Constant *getNullValue(Type* Ty); 155 static Constant *getAllOnesValue(Type* Ty); 159 static Constant *getIntegerValue(Type* Ty, const APInt &V);
|
| D | GlobalVariable.h | 31 class Constant; variable 69 Constant *Initializer = 0, const Twine &Name = "", 75 LinkageTypes Linkage, Constant *Initializer, 138 inline const Constant *getInitializer() const { in getInitializer() 140 return static_cast<Constant*>(Op<0>().get()); in getInitializer() 142 inline Constant *getInitializer() { in getInitializer() 144 return static_cast<Constant*>(Op<0>().get()); in getInitializer() 149 void setInitializer(Constant *InitVal);
|
| D | GlobalAlias.h | 44 Constant* Aliasee = 0, Module *Parent = 0); 47 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); 60 void setAliasee(Constant *GV); 61 const Constant *getAliasee() const { in getAliasee() 64 Constant *getAliasee() { in getAliasee() 100 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalAlias, Constant)
|
| /freebsd-9-stable/contrib/llvm/lib/IR/ |
| D | ConstantFold.h | 26 class Constant; variable 30 Constant *ConstantFoldCastInstruction( 32 Constant *V, ///< The source constant 35 Constant *ConstantFoldSelectInstruction(Constant *Cond, 36 Constant *V1, Constant *V2); 37 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx); 38 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt, 39 Constant *Idx); 40 Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2, 41 Constant *Mask); [all …]
|
| D | Constants.cpp | 43 void Constant::anchor() { } in anchor() 45 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue() 66 bool Constant::isZeroValue() const { in isZeroValue() 75 bool Constant::isNullValue() const { in isNullValue() 88 bool Constant::isAllOnesValue() const { in isAllOnesValue() 99 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue() 104 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue() 111 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() 146 Constant *Constant::getIntegerValue(Type *Ty, const APInt &V) { in getIntegerValue() 150 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue() [all …]
|
| D | ConstantFold.cpp | 44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector() 46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector() 47 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector() 58 SmallVector<Constant*, 16> Result; in BitCastConstantVector() 61 Constant *C = in BitCastConstantVector() 100 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() 113 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast() 145 return Constant::getNullValue(DestTy); in FoldBitCast() 197 static Constant *ExtractConstantBytes(Constant *C, unsigned ByteStart, in ExtractConstantBytes() 224 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes() [all …]
|
| D | ConstantsContext.h | 42 UnaryConstantExpr(unsigned Opcode, Constant *C, Type *Ty) in UnaryConstantExpr() 59 BinaryConstantExpr(unsigned Opcode, Constant *C1, Constant *C2, in BinaryConstantExpr() 80 SelectConstantExpr(Constant *C1, Constant *C2, Constant *C3) in SelectConstantExpr() 101 ExtractElementConstantExpr(Constant *C1, Constant *C2) in ExtractElementConstantExpr() 122 InsertElementConstantExpr(Constant *C1, Constant *C2, Constant *C3) in InsertElementConstantExpr() 144 ShuffleVectorConstantExpr(Constant *C1, Constant *C2, Constant *C3) in ShuffleVectorConstantExpr() 169 ExtractValueConstantExpr(Constant *Agg, in ExtractValueConstantExpr() 195 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() 216 GetElementPtrConstantExpr(Constant *C, ArrayRef<Constant*> IdxList, 219 static GetElementPtrConstantExpr *Create(Constant *C, in Create() [all …]
|
| D | Core.cpp | 558 return wrap(Constant::getNullValue(unwrap(Ty))); in LLVMConstNull() 562 return wrap(Constant::getAllOnesValue(unwrap(Ty))); in LLVMConstAllOnes() 570 return isa<Constant>(unwrap(Ty)); in LLVMIsConstant() 574 if (Constant *C = dyn_cast<Constant>(unwrap(Val))) in LLVMIsNull() 721 Constant **Elements = unwrap<Constant>(ConstantVals, Count); in LLVMConstStructInContext() 733 ArrayRef<Constant*> V(unwrap<Constant>(ConstantVals, Length), Length); in LLVMConstArray() 745 Constant **Elements = unwrap<Constant>(ConstantVals, Count); in LLVMConstNamedStruct() 753 unwrap<Constant>(ScalarConstantVals, Size), Size))); in LLVMConstVector() 793 return wrap(ConstantExpr::getNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNeg() 797 return wrap(ConstantExpr::getNSWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNSWNeg() [all …]
|
| /freebsd-9-stable/contrib/llvm/include/llvm/Analysis/ |
| D | ConstantFolding.h | 24 class Constant; variable 39 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout *TD = 0, 45 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE, 55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, 56 ArrayRef<Constant *> Ops, 64 Constant *ConstantFoldCompareInstOperands(unsigned Predicate, 65 Constant *LHS, Constant *RHS, 72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, 78 Constant *ConstantFoldLoadFromConstPtr(Constant *C, const DataLayout *TD = 0); 83 Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE); [all …]
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/CodeGen/ |
| D | CodeGenModule.h | 38 class Constant; variable 159 llvm::Constant *objc_autoreleasePoolPop; 162 llvm::Constant *objc_autoreleasePoolPush; 169 llvm::Constant *objc_autorelease; 172 llvm::Constant *objc_autoreleaseReturnValue; 175 llvm::Constant *objc_copyWeak; 178 llvm::Constant *objc_destroyWeak; 181 llvm::Constant *objc_initWeak; 184 llvm::Constant *objc_loadWeak; 187 llvm::Constant *objc_loadWeakRetained; [all …]
|
| D | CGObjCGNU.cpp | 51 llvm::Constant *Function; 77 operator llvm::Constant*() { in operator llvm::Constant*() 85 cast<llvm::Constant>(CGM->CreateRuntimeFunction(FTy, FunctionName)); in operator llvm::Constant*() 93 return cast<llvm::Function>((llvm::Constant*)*this); in operator llvm::Function*() 171 llvm::Constant *MakeConstantString(const std::string &Str, in MakeConstantString() 173 llvm::Constant *ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in MakeConstantString() 180 llvm::Constant *ExportUniqueString(const std::string &Str, in ExportUniqueString() 183 llvm::Constant *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString() 185 llvm::Constant *value = llvm::ConstantDataArray::getString(VMContext,Str); in ExportUniqueString() 195 ArrayRef<llvm::Constant *> V, in MakeGlobal() [all …]
|
| D | CGExprConstant.cpp | 43 SmallVector<llvm::Constant *, 32> Elements; 45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 57 llvm::Constant *InitExpr); 59 void AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst); 73 llvm::Constant *Finalize(QualType Ty); 75 CharUnits getAlignment(const llvm::Constant *C) const { in getAlignment() 81 CharUnits getSizeInChars(const llvm::Constant *C) const { in getSizeInChars() 89 llvm::Constant *InitCst) { in AppendField() 98 AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst) { in AppendBytes() [all …]
|
| D | CGObjCMac.cpp | 61 llvm::Constant *getMessageSendFn() const { in getMessageSendFn() 79 llvm::Constant *getMessageSendStretFn() const { in getMessageSendStretFn() 92 llvm::Constant *getMessageSendFpretFn() const { in getMessageSendFpretFn() 105 llvm::Constant *getMessageSendFp2retFn() const { in getMessageSendFp2retFn() 121 llvm::Constant *getMessageSendSuperFn() const { in getMessageSendSuperFn() 132 llvm::Constant *getMessageSendSuperFn2() const { in getMessageSendSuperFn2() 143 llvm::Constant *getMessageSendSuperStretFn() const { in getMessageSendSuperStretFn() 154 llvm::Constant *getMessageSendSuperStretFn2() const { in getMessageSendSuperStretFn2() 161 llvm::Constant *getMessageSendSuperFpretFn() const { in getMessageSendSuperFpretFn() 166 llvm::Constant *getMessageSendSuperFpretFn2() const { in getMessageSendSuperFpretFn2() [all …]
|
| D | CGObjCRuntime.h | 25 class Constant; variable 100 llvm::Constant *beginCatchFn, 101 llvm::Constant *endCatchFn, 102 llvm::Constant *exceptionRethrowFn); 133 virtual llvm::Constant *GetEHType(QualType T) = 0; 136 virtual llvm::Constant *GenerateConstantString(const StringLiteral *) = 0; 199 virtual llvm::Constant *GetPropertyGetFunction() = 0; 202 virtual llvm::Constant *GetPropertySetFunction() = 0; 205 virtual llvm::Constant *GetOptimizedPropertySetFunction(bool atomic, 209 virtual llvm::Constant *GetGetStructFunction() = 0; [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/ObjCARC/ |
| D | ARCRuntimeEntryPoints.h | 72 Constant *get(const EntryPointType entry) { in get() 108 Constant *AutoreleaseRV; 110 Constant *Release; 112 Constant *Retain; 114 Constant *RetainBlock; 116 Constant *Autorelease; 118 Constant *StoreStrong; 120 Constant *RetainRV; 122 Constant *RetainAutorelease; 124 Constant *RetainAutoreleaseRV; [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Analysis/ |
| D | ConstantFolding.cpp | 48 static Constant *FoldBitCast(Constant *C, Type *DestTy, in FoldBitCast() 52 return Constant::getNullValue(DestTy); in FoldBitCast() 54 return Constant::getAllOnesValue(DestTy); in FoldBitCast() 102 Constant *Ops = C; // don't take the address of C! in FoldBitCast() 161 SmallVector<Constant*, 32> Result; in FoldBitCast() 164 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast() 170 Constant *Elt = Zero; in FoldBitCast() 173 Constant *Src =dyn_cast<ConstantInt>(C->getAggregateElement(SrcElt++)); in FoldBitCast() 199 Constant *Src = dyn_cast<ConstantInt>(C->getAggregateElement(i)); in FoldBitCast() 207 Constant *Elt = ConstantExpr::getLShr(Src, in FoldBitCast() [all …]
|
| D | InstructionSimplify.cpp | 64 static Constant *getFalse(Type *Ty) { in getFalse() 67 return Constant::getNullValue(Ty); in getFalse() 72 static Constant *getTrue(Type *Ty) { in getTrue() 75 return Constant::getAllOnesValue(Ty); in getTrue() 501 SimplifyXorInst(Cond, Constant::getAllOnesValue(Cond->getType()), in ThreadCmpOverSelect() 594 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyAddInst() 595 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAddInst() 596 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst() 624 return Constant::getAllOnesValue(Op0->getType()); in SimplifyAddInst() 670 static Constant *stripAndComputeConstantOffsets(const DataLayout *TD, in stripAndComputeConstantOffsets() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Analysis/IPA/ |
| D | InlineCost.cpp | 78 DenseMap<Value *, Constant *> SimplifiedValues; 248 if (!isa<Constant>(*I) && !SimplifiedValues.lookup(*I)) in isGEPOffsetConstant() 269 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand())) in accumulateGEPOffset() 375 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitBitCast() 379 if (Constant *C = ConstantExpr::getBitCast(COp, I.getType())) { in visitBitCast() 403 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitPtrToInt() 407 if (Constant *C = ConstantExpr::getPtrToInt(COp, I.getType())) { in visitPtrToInt() 439 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitIntToPtr() 443 if (Constant *C = ConstantExpr::getIntToPtr(COp, I.getType())) { in visitIntToPtr() 469 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/IPO/ |
| D | GlobalOpt.cpp | 153 if (isa<Constant>(V)) in IsSafeComputationToRemove() 204 if (isa<Constant>(V)) { in CleanupPointerRootUsers() 212 if (isa<Constant>(MSI->getValue())) { in CleanupPointerRootUsers() 233 } else if (Constant *C = dyn_cast<Constant>(U)) { in CleanupPointerRootUsers() 268 static bool CleanupConstantGlobalUsers(Value *V, Constant *Init, in CleanupConstantGlobalUsers() 296 Constant *SubInit = 0; in CleanupConstantGlobalUsers() 314 Constant *SubInit = 0; in CleanupConstantGlobalUsers() 325 SubInit = Constant::getNullValue(GEP->getType()->getElementType()); in CleanupConstantGlobalUsers() 339 } else if (Constant *C = dyn_cast<Constant>(U)) { in CleanupConstantGlobalUsers() 356 if (Constant *C = dyn_cast<Constant>(V)) in isSafeSROAElementUse() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/Instrumentation/ |
| D | GCOVProfiling.cpp | 101 Constant *getStartFileFunc(); 102 Constant *getIncrementIndirectCounterFunc(); 103 Constant *getEmitFunctionFunc(); 104 Constant *getEmitArcsFunc(); 105 Constant *getSummaryInfoFunc(); 106 Constant *getDeleteWriteoutFunctionListFunc(); 107 Constant *getDeleteFlushFunctionListFunc(); 108 Constant *getEndFileFunc(); 510 Constant::getNullValue(CounterTy), in emitProfileArcs() 604 Constant *GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitProfileArcs() [all …]
|