/external/llvm/include/llvm/Support/ |
H A D | PatternMatch.h | 39 template<typename Val, typename Pattern> 40 bool match(Val *V, const Pattern &P) { 123 template<int64_t Val> 129 if (Val >= 0) 130 return CIV == static_cast<uint64_t>(Val); 131 // If Val is negative, and CI is shorter than it, truncate to the right 134 return -CIV == -Val; 141 template<int64_t Val> 142 inline constantint_match<Val> m_ConstantInt() { 143 return constantint_match<Val>(); 257 const Value *Val; member in struct:llvm::PatternMatch::specificval_ty [all...] |
/external/llvm/lib/Target/MBlaze/MCTargetDesc/ |
H A D | MBlazeMCCodeEmitter.cpp | 76 void EmitConstant(uint64_t Val, unsigned Size, unsigned &CurByte, argument 81 EmitByte(Val & 255, CurByte, OS); 82 Val >>= 8;
|
/external/llvm/lib/VMCore/ |
H A D | Constants.cpp | 375 : Constant(Ty, ConstantIntVal, 0, 0), Val(V) { 588 : Constant(Ty, ConstantFPVal, 0, 0), Val(V) { 594 return Val.bitwiseIsEqual(V); 849 while (Constant *Val = va_arg(ap, llvm::Constant*)) 850 Values.push_back(Val); 1101 bool ConstantInt::isValueValidForType(Type *Ty, uint64_t Val) { argument 1104 return Val == 0 || Val == 1; 1108 return Val <= Max; 1111 bool ConstantInt::isValueValidForType(Type *Ty, int64_t Val) { argument 1122 isValueValidForType(Type *Ty, const APFloat& Val) argument 1813 getExtractElement(Constant *Val, Constant *Idx) argument 1832 getInsertElement(Constant *Val, Constant *Elt, Constant *Idx) argument 1875 getInsertValue(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs) argument 2472 Constant *Val = cast<Constant>(O->get()); local 2548 Constant *Val = cast<Constant>(O->get()); local 2555 Constant *Val = cast<Constant>(O->get()); local 2610 Constant *Val = getOperand(i); local [all...] |
/external/clang/lib/AST/ |
H A D | ExprConstant.cpp | 1118 static bool HandleConversionToBool(const APValue &Val, bool &Result) { argument 1119 switch (Val.getKind()) { 1123 Result = Val.getInt().getBoolValue(); 1126 Result = !Val.getFloat().isZero(); 1129 Result = Val.getComplexIntReal().getBoolValue() || 1130 Val.getComplexIntImag().getBoolValue(); 1133 Result = !Val.getComplexFloatReal().isZero() || 1134 !Val.getComplexFloatImag().isZero(); 1137 return EvalPointerValueAsBool(Val, Result); 1139 Result = Val 1155 APValue Val; local 2588 APValue Val; local 3607 APValue Val = APValue(); local 4079 APValue Val; local 4108 llvm::APSInt Val = ECD->getInitVal(); local 4432 APValue Val; member in struct:__anon3503::DataRecursiveIntBinOpEvaluator::EvalResult 6397 unsigned Val; member in struct:__anon3508::ICEDiag [all...] |
H A D | ASTDiagnostic.cpp | 239 intptr_t Val, 257 TemplateDiffTypes &TDT = *reinterpret_cast<TemplateDiffTypes*>(Val); 278 Val = TDT.PrintFromType ? TDT.FromType : TDT.ToType; 287 QualType Ty(QualType::getFromOpaquePtr(reinterpret_cast<void*>(Val))); 294 DeclarationName N = DeclarationName::getFromOpaqueInteger(Val); 316 const NamedDecl *ND = reinterpret_cast<const NamedDecl*>(Val); 322 reinterpret_cast<NestedNameSpecifier*>(Val)->print(OS, 328 DeclContext *DC = reinterpret_cast<DeclContext *> (Val); 959 APValue &FromVal = FromResult.Val; 960 APValue &ToVal = ToResult.Val; 237 FormatASTNodeDiagnosticArgument( DiagnosticsEngine::ArgumentKind Kind, intptr_t Val, const char *Modifier, unsigned ModLen, const char *Argument, unsigned ArgLen, const DiagnosticsEngine::ArgumentValue *PrevArgs, unsigned NumPrevArgs, SmallVectorImpl<char> &Output, void *Cookie, ArrayRef<intptr_t> QualTypeVals) argument [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGISel.cpp | 1682 GetVBR(uint64_t Val, const unsigned char *MatcherTable, unsigned &Idx) { argument 1683 assert(Val >= 128 && "Not a VBR"); 1684 Val &= 127; // Remove first vbr bit. 1690 Val |= (NextBits&127) << Shift; 1694 return Val; 2081 int64_t Val = MatcherTable[MatcherIndex++]; local 2082 if (Val & 128) 2083 Val = GetVBR(Val, MatcherTable, MatcherIndex); 2086 return C != 0 && C->getSExtValue() == Val; 2092 int64_t Val = MatcherTable[MatcherIndex++]; local 2105 int64_t Val = MatcherTable[MatcherIndex++]; local [all...] |
H A D | SelectionDAG.cpp | 91 const APFloat& Val) { 96 &Val.getSemantics() == &APFloat::PPCDoubleDouble) 100 APFloat Val2 = APFloat(Val); 968 /// getNOT - Create a bitwise NOT operation as (XOR Val, -1). 970 SDValue SelectionDAG::getNOT(DebugLoc DL, SDValue Val, EVT VT) { argument 974 return getNode(ISD::XOR, DL, VT, Val, NegOne); 977 SDValue SelectionDAG::getConstant(uint64_t Val, EVT VT, bool isT) { argument 980 (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && 982 return getConstant(APInt(EltVT.getSizeInBits(), Val), VT, isT); 985 SDValue SelectionDAG::getConstant(const APInt &Val, EV argument 90 isValueValidForType(EVT VT, const APFloat& Val) argument 989 getConstant(const ConstantInt &Val, EVT VT, bool isT) argument 1033 getIntPtrConstant(uint64_t Val, bool isTarget) argument 1076 getConstantFP(double Val, EVT VT, bool isTarget) argument 1404 getConvertRndSat(EVT VT, DebugLoc dl, SDValue Val, SDValue DTy, SDValue STy, SDValue Rnd, SDValue Sat, ISD::CvtCode Code) argument 2159 const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue(); local 2436 const APInt &Val = C->getAPIntValue(); local 2925 APInt Val = N1C->getAPIntValue(); local 3327 APInt Val = APInt(NumBits, ByteVal); local 3344 APInt Val = SplatByte(NumBits, C->getZExtValue() & 255); local 3386 uint64_t Val = 0; local 3992 getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, const Value* PtrVal, unsigned Alignment, AtomicOrdering Ordering, SynchronizationScope SynchScope) argument 4023 getAtomic(unsigned Opcode, DebugLoc dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, MachineMemOperand *MMO, AtomicOrdering Ordering, SynchronizationScope SynchScope) argument 4359 getStore(SDValue Chain, DebugLoc dl, SDValue Val, SDValue Ptr, MachinePointerInfo PtrInfo, bool isVolatile, bool isNonTemporal, unsigned Alignment, const MDNode *TBAAInfo) argument 4386 getStore(SDValue Chain, DebugLoc dl, SDValue Val, SDValue Ptr, MachineMemOperand *MMO) argument 4412 getTruncStore(SDValue Chain, DebugLoc dl, SDValue Val, SDValue Ptr, MachinePointerInfo PtrInfo, EVT SVT,bool isVolatile, bool isNonTemporal, unsigned Alignment, const MDNode *TBAAInfo) argument 4439 getTruncStore(SDValue Chain, DebugLoc dl, SDValue Val, SDValue Ptr, EVT SVT, MachineMemOperand *MMO) argument [all...] |
/external/llvm/unittests/Support/ |
H A D | Path.cpp | 351 StringRef Val("hello there"); 359 std::copy(Val.begin(), Val.end(), mfr.data()); 361 mfr.data()[Val.size()] = 0; 374 EXPECT_EQ(StringRef(mfr.const_data()), Val); local
|
/external/llvm/lib/Target/Mips/AsmParser/ |
H A D | MipsAsmParser.cpp | 146 const MCExpr *Val; member in struct:__anon8937::MipsOperand::__anon8938::__anon8941 205 return Imm.Val; 235 static MipsOperand *CreateImm(const MCExpr *Val, SMLoc S, SMLoc E) { argument 237 Op->Imm.Val = Val; 608 int Val = MCE->getValue(); local 610 Val = Val & 0xffff; 612 Val = (Val [all...] |
/external/llvm/utils/TableGen/ |
H A D | DAGISelMatcher.h | 771 int64_t Val; member in class:llvm::EmitIntegerMatcher 775 : Matcher(EmitInteger), Val(val), VT(vt) {} 777 int64_t getValue() const { return Val; } 787 return cast<EmitIntegerMatcher>(M)->Val == Val && 790 virtual unsigned getHashImpl() const { return (Val << 4) | VT; } 796 std::string Val; member in class:llvm::EmitStringIntegerMatcher 800 : Matcher(EmitStringInteger), Val(val), VT(vt) {} 802 const std::string &getValue() const { return Val; } 812 return cast<EmitStringIntegerMatcher>(M)->Val [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAndOrXor.cpp | 257 // (Val ashr C1) & C2 -> (Val lshr C1) & C2 318 // isRunOfOnes - Returns true iff Val consists of one contiguous run of 1s with 322 static bool isRunOfOnes(ConstantInt *Val, uint32_t &MB, uint32_t &ME) { argument 323 const APInt& V = Val->getValue(); 324 uint32_t BitWidth = Val->getType()->getBitWidth(); 732 Value *Val = LHS->getOperand(0), *Val2 = RHS->getOperand(0); 742 Value *NewOr = Builder->CreateOr(Val, Val2); 748 Value *NewOr = Builder->CreateOr(Val, Val2); 763 match(Val, m_An [all...] |
/external/llvm/lib/Target/X86/AsmParser/ |
H A D | X86AsmParser.cpp | 185 const MCExpr *Val; member in struct:__anon8982::X86Operand::__anon8983::__anon8986 227 return Imm.Val; 457 static X86Operand *CreateImm(const MCExpr *Val, SMLoc StartLoc, SMLoc EndLoc){ argument 459 Res->Imm.Val = Val; 671 int64_t Val = Parser.getTok().getIntVal(); local 677 const MCExpr *Disp = MCConstantExpr::Create(Val, getContext()); 688 Scale = Val; 698 int64_t Val = Parser.getTok().getIntVal(); local 705 Scale = Val; 774 const MCExpr *Val; local 821 const MCExpr *Val; local [all...] |
/external/clang/include/clang/AST/ |
H A D | Expr.h | 479 /// Val - This is the value the expression can be folded to. 480 APValue Val; member in struct:clang::Expr::EvalResult 1148 void setIntValue(ASTContext &C, const llvm::APInt &Val); 1154 void setValue(ASTContext &C, const llvm::APInt &Val) { setIntValue(C, Val); } argument 1162 void setValue(ASTContext &C, const llvm::APFloat &Val) { argument 1163 setIntValue(C, Val.bitcastToAPInt()); 1241 void setValue(unsigned Val) { Value = Val; } argument 1269 void setValue(ASTContext &C, const llvm::APFloat &Val) { argument 1301 Stmt *Val; member in class:clang::ImaginaryLiteral 1500 L(l), R(r), Val(val) {} function 1547 Stmt *Val; member in class:clang::StringLiteral::UnaryOperator 3426 Stmt *Val; member in class:clang::StringLiteral::OffsetOfExpr::VAArgExpr [all...] |
/external/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 67 uint32_t Val = Seed + 0x000b07a1; local 68 Seed = (Val * 0x3c7c0ac1); 75 uint32_t Val = Rand(); local 76 Val &= 0xffff; 77 return Val | (Rand() << 16); 82 uint64_t Val = Rand32(); local 83 return Val | (uint64_t(Rand32()) << 32); 300 Value *Val = getRandomValue(Tp->getContainedType(0)); local 301 Type *ValTy = Val->getType(); 308 new StoreInst(Val, Pt [all...] |
/external/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 156 unsigned Val; local 158 Val = CurLexer->isNextPPTokenLParen(); 160 Val = CurPTHLexer->isNextPPTokenLParen(); 162 Val = CurTokenLexer->isNextTokenLParen(); 164 if (Val == 2) { 173 Val = Entry.TheLexer->isNextPPTokenLParen(); 175 Val = Entry.ThePTHLexer->isNextPPTokenLParen(); 177 Val = Entry.TheTokenLexer->isNextTokenLParen(); 179 if (Val != 2) 191 return Val [all...] |
/external/llvm/lib/CodeGen/ |
H A D | SjLjEHPrepare.cpp | 158 Value *Val = UseWorkList.pop_back_val(); local 159 ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(Val); 413 Value *Val = Builder.CreateCall(FrameAddrFn, Builder.getInt32(0), "fp"); local 414 Builder.CreateStore(Val, FramePtr, /*isVolatile=*/true); 419 Val = Builder.CreateCall(StackAddrFn, "sp"); 420 Builder.CreateStore(Val, StackPtr, /*isVolatile=*/true);
|
/external/llvm/bindings/ocaml/executionengine/ |
H A D | executionengine_ocaml.c | 84 value Val = alloc_custom(&generic_value_ops, sizeof(LLVMGenericValueRef), 0, 1); local 85 Genericvalue_val(Val) = Ref; 86 return Val;
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
H A D | toy.cpp | 92 double Val; member in class:NumberExprAST 94 NumberExprAST(double val) : Val(val) {} 355 return ConstantFP::get(getGlobalContext(), APFloat(Val));
|
/external/llvm/include/llvm/Analysis/ |
H A D | AliasSetTracker.h | 40 Value *Val; // The pointer this record corresponds to. member in class:llvm::AliasSet::PointerRec 47 : Val(V), PrevInList(0), NextInList(0), AS(0), Size(0), 50 Value *getValue() const { return Val; }
|
H A D | AliasAnalysis.h | 570 static unsigned getHashValue(const AliasAnalysis::Location &Val) { argument 571 return DenseMapInfo<const Value *>::getHashValue(Val.Ptr) ^ 572 DenseMapInfo<uint64_t>::getHashValue(Val.Size) ^ 573 DenseMapInfo<const MDNode *>::getHashValue(Val.TBAATag);
|
/external/llvm/lib/Support/ |
H A D | Timer.cpp | 168 static void printVal(double Val, double Total, raw_ostream &OS) { argument 172 OS << format(" %7.4f (%5.1f%%)", Val, Val*100/Total);
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMConstantPoolValue.cpp | 172 (ARMConstantPoolValue *)Constants[i].Val.MachineCPVal; 237 (ARMConstantPoolValue *)Constants[i].Val.MachineCPVal; 293 (ARMConstantPoolValue *)Constants[i].Val.MachineCPVal;
|
/external/clang/lib/Rewrite/Core/ |
H A D | DeltaTree.cpp | 420 const SourceDelta &Val = Node->getValue(NumValsGreater); local 422 if (Val.FileLoc >= FileIndex) 424 Result += Val.Delta;
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckerDocumentation.cpp | 131 /// \param Val The value which will be stored at the location Loc. 135 void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {} argument
|
H A D | DeadStoresChecker.cpp | 203 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, argument 219 Report(VD, dsk, ExLoc, Val->getSourceRange()); 223 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, argument 226 CheckVarDecl(VD, DR, Val, dsk, Live);
|