/external/llvm/include/llvm/CodeGen/ |
H A D | MachineFunction.h | 235 template<typename Ty> 236 Ty *getInfo() { 238 // This should be just `new (Allocator.Allocate<Ty>()) Ty(*this)', but 240 Ty *Loc = static_cast<Ty*>(Allocator.Allocate(sizeof(Ty), 241 AlignOf<Ty>::Alignment)); 242 MFInfo = new (Loc) Ty(*this); 244 return static_cast<Ty*>(MFInf [all...] |
H A D | MachineModuleInfo.h | 199 template<typename Ty> 200 Ty &getObjFileInfo() { 202 ObjFileMMI = new Ty(*this); 203 return *static_cast<Ty*>(ObjFileMMI); 206 template<typename Ty> 207 const Ty &getObjFileInfo() const { 208 return const_cast<MachineModuleInfo*>(this)->getObjFileInfo<Ty>();
|
/external/llvm/lib/IR/ |
H A D | Module.cpp | 139 FunctionType *Ty, 145 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name); 157 Constant *NewF = getOrInsertFunction(Name, Ty); 164 if (F->getType() != PointerType::getUnqual(Ty)) 165 return ConstantExpr::getBitCast(F, PointerType::getUnqual(Ty)); 172 FunctionType *Ty) { 173 return getOrInsertFunction(Name, Ty, AttributeSet()); 250 Constant *Module::getOrInsertGlobal(StringRef Name, Type *Ty) { argument 256 new GlobalVariable(*this, Ty, false, GlobalVariable::ExternalLinkage, 263 if (GV->getType() != PointerType::getUnqual(Ty)) 138 getOrInsertFunction(StringRef Name, FunctionType *Ty, AttributeSet AttributeList) argument 171 getOrInsertFunction(StringRef Name, FunctionType *Ty) argument [all...] |
H A D | TypeFinder.cpp | 93 void TypeFinder::incorporateType(Type *Ty) { argument 95 if (!VisitedTypes.insert(Ty).second) 99 if (StructType *STy = dyn_cast<StructType>(Ty)) 104 for (Type::subtype_iterator I = Ty->subtype_begin(), 105 E = Ty->subtype_end(); I != E; ++I)
|
H A D | ConstantsContext.h | 42 UnaryConstantExpr(unsigned Opcode, Constant *C, Type *Ty) argument 43 : ConstantExpr(Ty, Opcode, &Op<0>(), 1) { 413 static ConstantClass *create(TypeClass *Ty, const ValType &V) { argument 414 return new(ConstantTraits<ValType>::uses(V)) ConstantClass(Ty, V); 420 static ConstantClass *create(TypeClass *Ty, ArrayRef<Constant*> V) { argument 421 return new(V.size()) ConstantClass(Ty, V); 435 static ConstantExpr *create(Type *Ty, const ExprMapKeyType &V, argument 438 return new UnaryConstantExpr(V.opcode, V.operands[0], Ty); 456 V.indices, Ty); 458 return new ExtractValueConstantExpr(V.operands[0], V.indices, Ty); 496 create(PointerType *Ty, const InlineAsmKeyType &Key) argument 579 Create(TypeClass *Ty, ValRefType V, typename MapTy::iterator I) argument 596 getOrCreate(TypeClass *Ty, ValRefType V) argument 719 Create(TypeClass *Ty, Operands V, typename MapTy::iterator I) argument 732 getOrCreate(TypeClass *Ty, Operands V) argument [all...] |
H A D | ValueTypes.cpp | 237 MVT MVT::getVT(Type *Ty, bool HandleUnknown){ argument 238 switch (Ty->getTypeID()) { 245 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); 255 VectorType *VTy = cast<VectorType>(Ty); 265 EVT EVT::getEVT(Type *Ty, bool HandleUnknown){ argument 266 switch (Ty->getTypeID()) { 268 return MVT::getVT(Ty, HandleUnknown); 270 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); 272 VectorType *VTy = cast<VectorType>(Ty); [all...] |
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 27 /// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP, 31 Value *SCEVExpander::ReuseOrCreateCast(Value *V, Type *Ty, argument 51 if (U->getType() == Ty) 61 Ret = CastInst::Create(Op, V, Ty, "", IP); 74 Ret = CastInst::Create(Op, V, Ty, V->getName(), IP); 88 Value *SCEVExpander::InsertNoopCastOfTo(Value *V, Type *Ty) { argument 89 Instruction::CastOps Op = CastInst::getCastOpcode(V, false, Ty, false); 94 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) && 99 if (V->getType() == Ty) 102 if (CI->getOperand(0)->getType() == Ty) 309 SimplifyAddOperands(SmallVectorImpl<const SCEV *> &Ops, Type *Ty, ScalarEvolution &SE) argument 338 SplitAddRecs(SmallVectorImpl<const SCEV *> &Ops, Type *Ty, ScalarEvolution &SE) argument 395 expandAddToGEP(const SCEV *const *op_begin, const SCEV *const *op_end, PointerType *PTy, Type *Ty, Value *V) argument 710 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local 781 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local 823 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local 1403 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local 1412 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local 1421 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local 1431 Type *Ty = LHS->getType(); local 1455 Type *Ty = LHS->getType(); local 1477 expandCodeFor(const SCEV *SH, Type *Ty, Instruction *IP) argument 1483 expandCodeFor(const SCEV *SH, Type *Ty) argument 1565 getOrInsertCanonicalInductionVariable(const Loop *L, Type *Ty) argument [all...] |
H A D | ScalarEvolution.cpp | 330 ScalarEvolution::getConstant(Type *Ty, uint64_t V, bool isSigned) { argument 331 IntegerType *ITy = cast<IntegerType>(getEffectiveSCEVType(Ty)); 337 : SCEV(ID, SCEVTy), Op(op), Ty(ty) {} 343 (Ty->isIntegerTy() || Ty->isPointerTy()) && 351 (Ty->isIntegerTy() || Ty->isPointerTy()) && 359 (Ty->isIntegerTy() || Ty->isPointerTy()) && 410 Type *Ty local 437 Type *Ty = local 822 getTruncateExpr(const SCEV *Op, Type *Ty) argument 901 getZeroExtendExpr(const SCEV *Op, Type *Ty) argument 1086 getPreStartForSignExtend(const SCEVAddRecExpr *AR, Type *Ty, ScalarEvolution *SE) argument 1148 getSignExtendAddRecStart(const SCEVAddRecExpr *AR, Type *Ty, ScalarEvolution *SE) argument 1159 getSignExtendExpr(const SCEV *Op, Type *Ty) argument 1311 getAnyExtendExpr(const SCEV *Op, Type *Ty) argument 1518 Type *Ty = Ops[0]->getType(); variable [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | ThreadSanitizer.cpp | 162 Type *Ty = Type::getIntNTy(M.getContext(), BitSize); local 163 Type *PtrTy = Ty->getPointerTo(); 167 AtomicLoadName, Ty, PtrTy, OrdTy, NULL)); 172 AtomicStoreName, IRB.getVoidTy(), PtrTy, Ty, OrdTy, 197 RMWName, Ty, PtrTy, Ty, OrdTy, NULL)); 203 AtomicCASName, Ty, PtrTy, Ty, Ty, OrdTy, OrdTy, NULL)); 505 Type *Ty local 520 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); local 538 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); local 552 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); local [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 160 Value *InstCombiner::EvaluateInDifferentType(Value *V, Type *Ty, argument 163 C = ConstantExpr::getIntegerCast(C, Ty, isSigned /*Sext or ZExt*/); 186 Value *LHS = EvaluateInDifferentType(I->getOperand(0), Ty, isSigned); 187 Value *RHS = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned); 197 if (I->getOperand(0)->getType() == Ty) 202 Res = CastInst::CreateIntegerCast(I->getOperand(0), Ty, 206 Value *True = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned); 207 Value *False = EvaluateInDifferentType(I->getOperand(2), Ty, isSigned); 213 PHINode *NPN = PHINode::Create(Ty, OPN->getNumIncomingValues()); 215 Value *V =EvaluateInDifferentType(OPN->getIncomingValue(i), Ty, isSigne 270 ShouldOptimizeCast(Instruction::CastOps opc, const Value *V, Type *Ty) argument 335 CanEvaluateTruncated(Value *V, Type *Ty) argument 651 CanEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear) argument 1002 CanEvaluateSExtd(Value *V, Type *Ty) argument 1343 Type *Ty = TD->getIntPtrType(CI.getContext()); local 1410 Type *Ty = TD->getIntPtrType(CI.getContext()); local 1478 isMultipleOfTypeSize(unsigned Value, Type *Ty) argument 1482 getTypeSizeIndex(unsigned Value, Type *Ty) argument [all...] |
/external/llvm/bindings/ocaml/llvm/ |
H A D | llvm_ocaml.c | 170 CAMLprim value llvm_classify_type(LLVMTypeRef Ty) { argument 171 return Val_int(LLVMGetTypeKind(Ty)); 174 CAMLprim value llvm_type_is_sized(LLVMTypeRef Ty) { argument 175 return Val_bool(LLVMTypeIsSized(Ty)); 179 CAMLprim LLVMContextRef llvm_type_context(LLVMTypeRef Ty) { argument 180 return LLVMGetTypeContext(Ty); 300 CAMLprim value llvm_struct_set_body(LLVMTypeRef Ty, argument 303 LLVMStructSetBody(Ty, (LLVMTypeRef *) ElementTypes, 309 CAMLprim value llvm_struct_name(LLVMTypeRef Ty) argument 312 const char *C = LLVMGetStructName(Ty); 392 LLVMTypeRef Ty = LLVMGetTypeByName(M, String_val(Name)); local 675 llvm_const_named_struct(LLVMTypeRef Ty, value ElementVals) argument 758 llvm_const_inline_asm(LLVMTypeRef Ty, value Asm, value Constraints, value HasSideEffects, value IsAlignStack) argument 870 llvm_declare_qualified_global(LLVMTypeRef Ty, value Name, value AddressSpace, LLVMModuleRef M) argument 961 llvm_add_alias(LLVMModuleRef M, LLVMTypeRef Ty, LLVMValueRef Aliasee, value Name) argument 996 llvm_define_function(value Name, LLVMTypeRef Ty, LLVMModuleRef M) argument 1395 llvm_build_malloc(LLVMTypeRef Ty, value Name, value B) argument 1402 llvm_build_array_malloc(LLVMTypeRef Ty, LLVMValueRef Val, value Name, value B) argument 1456 llvm_build_landingpad(LLVMTypeRef Ty, LLVMValueRef PersFn, value NumClauses, value Name, value B) argument 1674 llvm_build_alloca(LLVMTypeRef Ty, value Name, value B) argument 1680 llvm_build_array_alloca(LLVMTypeRef Ty, LLVMValueRef Size, value Name, value B) argument 1738 llvm_build_trunc(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1744 llvm_build_zext(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1750 llvm_build_sext(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1756 llvm_build_fptoui(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1762 llvm_build_fptosi(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1768 llvm_build_uitofp(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1774 llvm_build_sitofp(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1780 llvm_build_fptrunc(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1786 llvm_build_fpext(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1792 llvm_build_prttoint(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1798 llvm_build_inttoptr(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1804 llvm_build_bitcast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1810 llvm_build_zext_or_bitcast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1816 llvm_build_sext_or_bitcast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1822 llvm_build_trunc_or_bitcast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1829 llvm_build_pointercast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1835 llvm_build_intcast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1841 llvm_build_fpcast(LLVMValueRef X, LLVMTypeRef Ty, value Name, value B) argument 1902 llvm_build_va_arg(LLVMValueRef List, LLVMTypeRef Ty, value Name, value B) argument [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | PointerIntPair.h | 157 typedef PointerIntPair<PointerTy, IntBits, IntType> Ty; 158 static Ty getEmptyKey() { 161 return Ty(reinterpret_cast<PointerTy>(Val), IntType((1 << IntBits)-1)); 163 static Ty getTombstoneKey() { 166 return Ty(reinterpret_cast<PointerTy>(Val), IntType(0)); 168 static unsigned getHashValue(Ty V) { 172 static bool isEqual(const Ty &LHS, const Ty &RHS) { return LHS == RHS; }
|
H A D | PointerUnion.h | 121 UNION_DOESNT_CONTAIN_TYPE<T> > >::Return Ty; 122 int TyNo = Ty::Num; 269 >::Return Ty; typedef 270 return Ty(Val).template is<T>(); 282 >::Return Ty; typedef 283 return Ty(Val).template get<T>(); 377 >::Return Ty; typedef 378 return Val.template is<Ty>() && 379 Val.template get<Ty>().template is<T>(); 391 >::Return Ty; typedef [all...] |
/external/llvm/lib/Target/Mips/ |
H A D | MipsSEISelLowering.cpp | 389 static SDValue performDSPShiftCombine(unsigned Opc, SDNode *N, EVT Ty, argument 396 unsigned EltSize = Ty.getVectorElementType().getSizeInBits(); 406 return DAG.getNode(Opc, SDLoc(N), Ty, N->getOperand(0), 413 EVT Ty = N->getValueType(0); local 415 if ((Ty != MVT::v2i16) && (Ty != MVT::v4i8)) 418 return performDSPShiftCombine(MipsISD::SHLL_DSP, N, Ty, DAG, Subtarget); 424 EVT Ty = N->getValueType(0); local 426 if ((Ty != MVT::v2i16) && ((Ty ! 436 EVT Ty = N->getValueType(0); local 444 isLegalDSPCondCode(EVT Ty, ISD::CondCode CC) argument 463 EVT Ty = N->getValueType(0); local 476 EVT Ty = N->getValueType(0); local 570 EVT Ty = Op.getOperand(0).getValueType(); local [all...] |
H A D | Mips16ISelDAGToDAG.h | 27 EVT Ty, bool HasLo, bool HasHi);
|
/external/clang/lib/AST/ |
H A D | ASTDiagnostic.cpp | 31 const Type *Ty = QC.strip(QT); local 34 if (const ElaboratedType *ET = dyn_cast<ElaboratedType>(Ty)) { 39 if (const ParenType *PT = dyn_cast<ParenType>(Ty)) { 45 dyn_cast<SubstTemplateTypeParmType>(Ty)) { 50 if (const AttributedType *AT = dyn_cast<AttributedType>(Ty)) { 55 if (const AutoType *AT = dyn_cast<AutoType>(Ty)) { 64 = dyn_cast<TemplateSpecializationType>(Ty)) 69 if (QualType(Ty,0) == Context.getObjCIdType() || 70 QualType(Ty,0) == Context.getObjCClassType() || 71 QualType(Ty, 157 ConvertTypeToDiagnosticString(ASTContext &Context, QualType Ty, const DiagnosticsEngine::ArgumentValue *PrevArgs, unsigned NumPrevArgs, ArrayRef<intptr_t> QualTypeVals) argument 803 GetTemplateSpecializationType( ASTContext &Context, QualType Ty) argument [all...] |
H A D | DeclarationName.cpp | 356 DeclarationName DeclarationNameTable::getCXXConstructorName(CanQualType Ty) { argument 358 Ty.getUnqualifiedType()); 361 DeclarationName DeclarationNameTable::getCXXDestructorName(CanQualType Ty) { argument 363 Ty.getUnqualifiedType()); 367 DeclarationNameTable::getCXXConversionFunctionName(CanQualType Ty) { argument 368 return getCXXSpecialName(DeclarationName::CXXConversionFunctionName, Ty); 373 CanQualType Ty) { 384 assert(!Ty.hasQualifiers() &&"Constructor type must be unqualified"); 388 assert(!Ty.hasQualifiers() && "Destructor type must be unqualified"); 400 ID.AddPointer(Ty 372 getCXXSpecialName(DeclarationName::NameKind Kind, CanQualType Ty) argument [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | BoolAssignmentChecker.cpp | 42 static bool isBooleanType(QualType Ty) { argument 43 if (Ty->isBooleanType()) // C++ or C99 46 if (const TypedefType *TT = Ty->getAs<TypedefType>())
|
/external/llvm/lib/Transforms/IPO/ |
H A D | ExtractGV.cpp | 106 Type *Ty = CurI->getType()->getElementType(); local 110 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { 116 new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage,
|
/external/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 223 Type *Ty = pickType(); local 224 return PointerType::get(Ty, 0); 233 Type *Ty; local 237 Ty = pickScalarType(); 238 } while (Ty->isX86_MMXTy()); 242 return VectorType::get(Ty, width); 363 Type *Ty = pickType(); local 365 if (Ty->isVectorTy()) { 367 case 0: if (Ty->getScalarType()->isIntegerTy()) 368 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); [all...] |
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 198 Type *Ty = CE->getType(); local 204 if (TD.getTypeAllocSize(Ty) == TD.getTypeAllocSize(Op->getType())) 418 Type *Ty = F->getReturnType(); local 422 if (Ty->getTypeID() == Type::VoidTyID) 428 if (Ty->isPrimitiveType() || Ty->isIntegerTy()) { 430 if (const IntegerType *ITy = dyn_cast<IntegerType>(Ty)) { 435 assert(Ty->isFloatingPointTy() && "Floating point type expected here"); 436 size = Ty->getPrimitiveSizeInBits(); 440 } else if (isa<PointerType>(Ty)) { 1303 getPTXFundamentalTypeStr(const Type *Ty, bool useB4PTR) const argument 1387 getOpenCLAlignment(const DataLayout *TD, Type *Ty) argument 1477 Type *Ty = I->getType(); local 1836 const Type *Ty = CFP->getType(); local 1927 isImageType(const Type *Ty) argument [all...] |
/external/llvm/include/llvm/IR/ |
H A D | Argument.h | 47 explicit Argument(Type *Ty, const Twine &Name = "", Function *F = 0);
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 42 unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const; 89 virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, 126 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); 171 unsigned PPCTTI::getArithmeticInstrCost(unsigned Opcode, Type *Ty, argument 177 return TargetTransformInfo::getArithmeticInstrCost(Opcode, Ty, Op1Info,
|
/external/llvm/lib/Target/R600/ |
H A D | AMDGPUTargetTransformInfo.cpp | 43 unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const;
|
/external/clang/lib/CodeGen/ |
H A D | TargetInfo.h | 121 llvm::Type* Ty) const { 122 return Ty;
|