/external/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 108 double Val; member in class:NumberExprAST 110 NumberExprAST(double val) : Val(val) {} 464 return ConstantFP::get(getGlobalContext(), APFloat(Val));
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 113 double Val; member in class:NumberExprAST 115 NumberExprAST(double val) : Val(val) {} 549 return ConstantFP::get(getGlobalContext(), APFloat(Val));
|
/external/llvm/include/llvm/ADT/ |
H A D | DenseMap.h | 101 bool count(const KeyT &Val) const { 103 return LookupBucketFor(Val, TheBucket); 106 iterator find(const KeyT &Val) { argument 108 if (LookupBucketFor(Val, TheBucket)) 112 const_iterator find(const KeyT &Val) const { 114 if (LookupBucketFor(Val, TheBucket)) 125 iterator find_as(const LookupKeyT &Val) { argument 127 if (LookupBucketFor(Val, TheBucket)) 132 const_iterator find_as(const LookupKeyT &Val) const { 134 if (LookupBucketFor(Val, TheBucke 170 erase(const KeyT &Val) argument 313 getHashValue(const KeyT &Val) argument 317 getHashValue(const LookupKeyT &Val) argument 443 LookupBucketFor(const LookupKeyT &Val, const BucketT *&FoundBucket) const argument 494 LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) argument [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineFrameInfo.h | 116 bool isSS, bool NSP, const Value *Val) 118 isSpillSlot(isSS), MayNeedSP(NSP), Alloca(Val), PreAllocated(false) {} 115 StackObject(uint64_t Sz, unsigned Al, int64_t SP, bool IM, bool isSS, bool NSP, const Value *Val) argument
|
H A D | SelectionDAG.h | 365 SDValue getConstant(uint64_t Val, EVT VT, bool isTarget = false); 366 SDValue getConstant(const APInt &Val, EVT VT, bool isTarget = false); 367 SDValue getConstant(const ConstantInt &Val, EVT VT, bool isTarget = false); 368 SDValue getIntPtrConstant(uint64_t Val, bool isTarget = false); 369 SDValue getTargetConstant(uint64_t Val, EVT VT) { argument 370 return getConstant(Val, VT, true); 372 SDValue getTargetConstant(const APInt &Val, EVT VT) { argument 373 return getConstant(Val, VT, true); 375 SDValue getTargetConstant(const ConstantInt &Val, EVT VT) { argument 376 return getConstant(Val, V 383 getTargetConstantFP(double Val, EVT VT) argument 386 getTargetConstantFP(const APFloat& Val, EVT VT) argument 389 getTargetConstantFP(const ConstantFP &Val, EVT VT) argument [all...] |
/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/Analysis/ |
H A D | ConstantFolding.cpp | 291 uint64_t Val = CI->getZExtValue(); 295 CurPtr[i] = (unsigned char)(Val >> (ByteOffset * 8)); 1195 static Constant *ConstantFoldConvertToInt(const APFloat &Val, argument 1206 APFloat::opStatus status = Val.convertToInteger(&UIntVal, ResultWidth, 1226 APFloat Val(Op->getValueAPF()); 1229 Val.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &lost); 1231 return ConstantInt::get(F->getContext(), Val.bitcastToAPInt()); 1330 APFloat Val(Op->getValue()); 1334 Val.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &lost); 1341 return ConstantFP::get(F->getContext(), Val); [all...] |
H A D | LazyValueInfo.cpp | 78 /// Val: This stores the current lattice value along with the Constant* for 81 Constant *Val; member in class:__anon8602::LVILatticeVal 85 LVILatticeVal() : Tag(undefined), Val(0), Range(1, true) {} 113 return Val; 118 return Val; 147 Val = V; 165 Val = V; 197 Val = RHS.Val; 204 if (Val 277 operator <<(raw_ostream &OS, const LVILatticeVal &Val) argument 347 Value *Val; member in struct:__anon8604::LazyValueInfoCache::OverDefinedCacheUpdater 467 hasBlockValue(Value *Val, BasicBlock *BB) argument 479 getBlockValue(Value *Val, BasicBlock *BB) argument 488 solveBlockValue(Value *Val, BasicBlock *BB) argument 586 solveBlockValueNonLocal(LVILatticeVal &BBLV, Value *Val, BasicBlock *BB) argument 775 getEdgeValueLocal(Value *Val, BasicBlock *BBFrom, BasicBlock *BBTo, LVILatticeVal &Result) argument 866 getEdgeValue(Value *Val, BasicBlock *BBFrom, BasicBlock *BBTo, LVILatticeVal &Result) argument [all...] |
H A D | ValueTracking.cpp | 1168 // Return # leading zeros. We use 'min' here in case Val was zero before 1373 APInt Val = CI->getValue(); local 1375 while (Val.getBitWidth() != 8) { 1376 unsigned NextWidth = Val.getBitWidth()/2; 1377 Val2 = Val.lshr(NextWidth); 1378 Val2 = Val2.trunc(Val.getBitWidth()/2); 1379 Val = Val.trunc(Val.getBitWidth()/2); 1382 if (Val ! 1393 Value *Val = isBytewiseValue(Elt); local [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeFloatTypes.cpp | 795 SDValue Val = ST->getValue(); local 800 Val = BitConvertToInteger(DAG.getNode(ISD::FP_ROUND, dl, ST->getMemoryVT(), 801 Val, DAG.getIntPtrConstant(0))); 803 Val = GetSoftenedFloat(Val); 805 return DAG.getStore(ST->getChain(), dl, Val, ST->getBasePtr(),
|
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 857 void ExecutionEngine::StoreValueToMemory(const GenericValue &Val, argument 863 StoreIntToMemory(Val.IntVal, (uint8_t*)Ptr, StoreBytes); 866 *((float*)Ptr) = Val.FloatVal; 869 *((double*)Ptr) = Val.DoubleVal; 872 memcpy(Ptr, Val.IntVal.getRawData(), 10); 879 *((PointerTy*)Ptr) = Val.PointerVal; 998 GenericValue Val = getConstantValue(Init); local 999 StoreValueToMemory(Val, (GenericValue*)Addr, Init->getType());
|
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 1012 Value *Val = Op->getOperand(2); local 1020 if (ErrNode->getOperand(2) != Val) 1028 if (WarnNode->getOperand(2) != Val) 1037 if (OvrNode->getOperand(2) != Val) 1131 MDNode *Val = cast<MDNode>(Node->getOperand(2)); local 1133 MDString *ReqID = cast<MDString>(Val->getOperand(0)); 1134 Value *ReqVal = Val->getOperand(1);
|
/external/llvm/lib/Object/ |
H A D | MachOObjectFile.cpp | 896 error_code advance(T &it, size_t Val) { argument 898 while (Val--) { 905 void advanceTo(T &it, size_t Val) { argument 906 if (error_code ec = advance(it, Val)) 922 uint32_t Val = RE->Word1; local 934 if (Addr != Val) continue; 952 if (Addr != Val) continue; 959 fmt << format("0x%x", Val); 965 uint32_t Val = RE->Word1 & 0xFFFFFF; local 969 advanceTo(SI, Val); [all...] |
/external/llvm/lib/Support/ |
H A D | CommandLine.cpp | 242 StringRef Val(Value); 243 StringRef::size_type Pos = Val.find(','); 247 if (Handler->addOccurrence(pos, ArgName, Val.substr(0, Pos), MultiArg)) 250 Val = Val.substr(Pos+1); 253 Pos = Val.find(','); 256 Value = Val; 1029 StringRef Arg, double &Val) { 1030 return parseDouble(O, Arg, Val); 1034 StringRef Arg, float &Val) { 1028 parse(Option &O, StringRef ArgName, StringRef Arg, double &Val) argument 1033 parse(Option &O, StringRef ArgName, StringRef Arg, float &Val) argument [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMBaseRegisterInfo.cpp | 708 unsigned DestReg, unsigned SubIdx, int Val, 714 ConstantInt::get(Type::getInt32Ty(MF.getFunction()->getContext()), Val); 705 emitLoadConstPool(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, unsigned DestReg, unsigned SubIdx, int Val, ARMCC::CondCodes Pred, unsigned PredReg, unsigned MIFlags) const argument
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMMCCodeEmitter.cpp | 326 void EmitConstant(uint64_t Val, unsigned Size, raw_ostream &OS) const { argument 329 EmitByte(Val & 255, OS); 330 Val >>= 8; 628 unsigned Val = local 630 bool I = (Val & 0x800000); 631 bool J1 = (Val & 0x400000); 632 bool J2 = (Val & 0x200000); 634 Val &= ~0x400000; 636 Val |= 0x400000; 639 Val 656 uint32_t Val = 0x2000; local [all...] |
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAG.cpp | 354 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); local 360 if (TII->isValidAutoIncImm(LoadedVT, Val)) { 361 SDValue TargetConst = CurDAG->getTargetConstant(Val, MVT::i32); 382 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32); 418 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); local 424 if (TII->isValidAutoIncImm(LoadedVT, Val)) { 425 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32); 453 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32); 492 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); local 501 if (TII->isValidAutoIncImm(LoadedVT, Val)) 603 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue(); local 1013 SDValue Val = CurDAG->getTargetConstant(ValConst, local 1041 SDValue Val = CurDAG->getTargetConstant(-ValConst, MVT::i32); local 1146 int32_t Val = cast<ConstantSDNode>(Arg)->getSExtValue(); local 1190 int32_t Val = cast<ConstantSDNode>(N)->getSExtValue(); local [all...] |
/external/llvm/lib/Target/MSP430/ |
H A D | MSP430ISelLowering.cpp | 865 SDValue Val = Op.getOperand(0); local 872 DAG.getNode(ISD::ANY_EXTEND, dl, VT, Val), 873 DAG.getValueType(Val.getValueType()));
|
/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/lib/Target/PowerPC/ |
H A D | PPCISelDAGToDAG.cpp | 77 /// isRunOfOnes - Returns true iff Val consists of one contiguous run of 1s 81 static bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME); 326 bool PPCDAGToDAGISel::isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { argument 327 if (isShiftedMask_32(Val)) { 329 MB = CountLeadingZeros_32(Val); 331 ME = CountLeadingZeros_32((Val - 1) ^ Val); 334 Val = ~Val; // invert mask 335 if (isShiftedMask_32(Val)) { 984 SDValue Val = N->getOperand(0).getOperand(0); local 993 SDValue Val = N->getOperand(0); local 1000 SDValue Val = N->getOperand(0); local [all...] |
/external/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.cpp | 127 SDValue Val = DAG.getCopyFromReg(Chain, dl, Reg, getPointerTy()); local 128 Chain = DAG.getCopyToReg(Chain, dl, SP::I0, Val, Flag);
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 293 /// Returns null if Val is null or not an appropriate constant. 294 static Constant *getKnownConstant(Value *Val, ConstantPreference Preference) { argument 295 if (!Val) 299 if (UndefValue *U = dyn_cast<UndefValue>(Val)) 303 return dyn_cast<BlockAddress>(Val->stripPointerCasts()); 305 return dyn_cast<ConstantInt>(Val); 573 if (Constant *Val = KnownCond ? TrueVal : FalseVal) 574 Result.push_back(std::make_pair(Val, Conds[i].second)); 1095 Constant *Val = PredValues[i].first; local 1098 if (isa<UndefValue>(Val)) [all...] |
H A D | LoopUnswitch.cpp | 199 bool UnswitchIfProfitable(Value *LoopCond, Constant *Val); 200 void UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, 205 Constant *Val, bool isEqual); 207 void EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val, 216 bool IsTrivialUnswitchCondition(Value *Cond, Constant **Val = 0, 547 /// returning true, this sets Cond and Val to the condition that controls the 548 /// trivial condition: when Cond dynamically equals Val, the loop is known to 550 /// Cond == Val. 552 bool LoopUnswitch::IsTrivialUnswitchCondition(Value *Cond, Constant **Val, argument 571 if (Val) *Va 626 UnswitchIfProfitable(Value *LoopCond, Constant *Val) argument 671 EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val, BasicBlock *TrueDest, BasicBlock *FalseDest, Instruction *InsertPt) argument 699 UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, BasicBlock *ExitBlock) argument 765 UnswitchNontrivialCondition(Value *LIC, Constant *Val, Loop *L) argument 1066 RewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC, Constant *Val, bool IsEqual) argument [all...] |
H A D | SCCP.cpp | 75 /// Val: This stores the current lattice value along with the Constant* for 77 PointerIntPair<Constant *, 2, LatticeValueTy> Val; member in class:__anon9137::LatticeVal 80 return Val.getInt(); 84 LatticeVal() : Val(0, undefined) {} 94 return Val.getPointer(); 102 Val.setInt(overdefined); 114 Val.setInt(constant); 116 Val.setPointer(V); 126 Val.setInt(overdefined); 141 Val 808 Value *Val = IVI.getInsertedValueOperand(); local [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | PromoteMemoryToRegister.cpp | 69 static unsigned getHashValue(const std::pair<BasicBlock*, unsigned> &Val) { argument 71 return static_cast<unsigned>(hash_value(Val));
|