/external/llvm/lib/Support/ |
H A D | YAMLParser.cpp | 666 SmallString<4> Val; local 667 encodeUTF8(0xFFFD, Val); 668 EscapedInput.insert(EscapedInput.end(), Val.begin(), Val.end());
|
/external/llvm/lib/TableGen/ |
H A D | Record.cpp | 68 static unsigned getHashValue(const TableGenStringKey& Val) { argument 70 return hash_value(Val); 108 int64_t Val = II->getValue(); local 109 if (Val != 0 && Val != 1) return 0; // Only accept 0 or 1 for a bit! 111 return BitInit::get(Val != 0); 1063 Init *Val = MHSd->getOperator(); local 1064 Init *Result = EvaluateOperation(RHSo, LHS, Val, 1067 Val = Result; 1088 return DagInit::get(Val, "", arg 1140 Record *Val = RHSd->getDef(); local 1147 std::string Val = RHSv->getName(); local 1154 std::string Val = RHSs->getValue(); local [all...] |
H A D | TGParser.cpp | 704 uint64_t Val = Lex.getCurIntVal(); local 710 return BitsRecTy::get(Val); 1170 std::string Val = Lex.getCurStrVal(); local 1175 Val += Lex.getCurStrVal(); 1179 R = StringInit::get(Val); 1558 Init *Val = ParseValue(CurRec); local 1559 if (Val == 0) return std::vector<std::pair<llvm::Init*, std::string> >(); 1572 Result.push_back(std::make_pair(Val, VarName)); 1680 Init *Val = ParseValue(CurRec, Type); local 1681 if (Val 1843 Init *Val = ParseValue(CurRec, Type); local 2105 Init *Val = ParseValue(0); local [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMAsmPrinter.cpp | 1210 Offset = -cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue(); 1616 EmitMachineConstantPoolValue(MCPE.Val.MachineCPVal); 1618 EmitGlobalConstant(MCPE.Val.ConstVal); 1743 uint32_t Val = 0xe7ffdefeUL; local 1745 OutStreamer.EmitIntValue(Val, 4); 1755 uint16_t Val = 0xdefe; local 1757 OutStreamer.EmitIntValue(Val, 2);
|
H A D | ARMCodeEmitter.cpp | 168 unsigned NEONThumb2DataIPostEncoder(const MachineInstr &MI, unsigned Val) 170 unsigned NEONThumb2LoadStorePostEncoder(const MachineInstr &MI,unsigned Val) 172 unsigned NEONThumb2DupPostEncoder(const MachineInstr &MI,unsigned Val) 174 unsigned VFPThumb2PostEncoder(const MachineInstr&MI, unsigned Val) 177 Val &= 0x0FFFFFFF; 178 Val |= 0xE0000000; 180 return Val; 676 uint32_t Val = *(uint32_t*)CI->getValue().getRawData(); local 677 emitWordLE(Val); 714 static_cast<ARMConstantPoolValue*>(MCPE.Val [all...] |
H A D | ARMFastISel.cpp | 512 const APFloat Val = CFP->getValueAPF(); local 517 if (TLI.isFPImmLegal(Val, VT)) { 521 Imm = ARM_AM::getFP64Imm(Val); 524 Imm = ARM_AM::getFP32Imm(Val);
|
H A D | ARMISelDAGToDAG.cpp | 725 int Val; local 726 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x1000, Val)) 761 int Val; local 762 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x1000, Val)) { // 12 bits. 763 if (AddSub == ARM_AM::sub) Val *= -1; 765 Opc = CurDAG->getTargetConstant(Val, MVT::i32); 781 int Val; local 782 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x1000, Val)) { // 12 bits. 784 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, Val, 854 int Val; local 2449 unsigned Val = cast<ConstantSDNode>(N)->getZExtValue(); local [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/llvm/lib/Target/X86/ |
H A D | X86FastISel.cpp | 85 bool X86FastEmitStore(EVT VT, const Value *Val, const X86AddressMode &AM); 86 bool X86FastEmitStore(EVT VT, unsigned Val, const X86AddressMode &AM); 232 /// X86FastEmitStore - Emit a machine instruction to store a value Val of 237 X86FastISel::X86FastEmitStore(EVT VT, unsigned Val, const X86AddressMode &AM) { argument 247 TII.get(X86::AND8ri), AndResult).addReg(Val).addImm(1); 248 Val = AndResult; 278 DL, TII.get(Opc)), AM).addReg(Val); 282 bool X86FastISel::X86FastEmitStore(EVT VT, const Value *Val, argument 285 if (isa<ConstantPointerNull>(Val)) 286 Val [all...] |
H A D | X86ISelDAGToDAG.cpp | 350 SDValue Val = Op1.getOperand(0); local 351 if (Val.getOpcode() == ISD::TargetGlobalTLSAddress) 558 static bool isDispSafeForFrameIndex(int64_t Val) { argument 565 return isInt<31>(Val); 570 int64_t Val = AM.Disp + Offset; local 573 if (!X86::isOffsetSuitableForCodeModel(Val, M, 579 !isDispSafeForFrameIndex(Val)) 582 AM.Disp = Val; 967 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); local 968 if (!FoldOffsetIntoAddress(Val, A 1000 unsigned Val = CN->getZExtValue(); local 1500 SDValue Val = Node->getOperand(2); local 1712 SDValue Val = Node->getOperand(2); local 2116 int64_t Val = Cst->getSExtValue(); local [all...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 1182 SDValue Val = DAG.getCopyFromReg(Chain, dl, VReg, MVT::i32); local 1184 SDValue Store = DAG.getStore(Val.getValue(1), dl, Val, FIN,
|
/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...] |
H A D | InstCombineCasts.cpp | 22 /// DecomposeSimpleLinearExpr - Analyze 'Val', seeing if it is a simple linear 23 /// expression. If so, decompose it, returning some value X, such that Val is 26 static Value *DecomposeSimpleLinearExpr(Value *Val, unsigned &Scale, argument 28 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { 31 return ConstantInt::get(Val->getType(), 0); 34 if (BinaryOperator *I = dyn_cast<BinaryOperator>(Val)) { 36 OverflowingBinaryOperator *OBI = dyn_cast<OverflowingBinaryOperator>(Val); 40 return Val; 74 return Val;
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 661 unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue(); local 664 APInt APVal(NumBytes*8, Val); 667 if (Val) 1941 Value *Val = SI->getOperand(0); local 1942 Type *SIType = Val->getType(); 1954 Value *Extract = Builder.CreateExtractValue(Val, i, Val->getName()); 2004 Instruction *Val = NewElts[Idx]; local 2005 if (Val->getType() != BC->getDestTy()) { 2006 Val 2096 Instruction *Val = NewElts[Idx]; local [all...] |
/external/llvm/lib/VMCore/ |
H A D | AsmWriter.cpp | 730 double Val = isDouble ? CFP->getValueAPF().convertToDouble() : local 733 raw_svector_ostream(StrVal) << Val; 743 if (APFloat(APFloat::IEEEdouble, StrVal).convertToDouble() == Val) {
|
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/llvm/utils/TableGen/ |
H A D | AsmMatcherEmitter.cpp | 364 static ResOperand getImmOp(int64_t Val) { argument 367 X.ImmVal = Val; 1842 int64_t Val = OpInfo.ImmVal; 1843 std::string Ty = "imm_" + itostr(Val); 1858 << " Inst.addOperand(MCOperand::CreateImm(" << Val << "));\n" 2198 << "static const char *getSubtargetFeatureName(unsigned Val) {\n" 2199 << " switch(Val) {\n";
|
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/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 180 if (Result.Val.isInt()) 182 Result.Val.getInt())); 183 if (Result.Val.isFloat()) 185 Result.Val.getFloat())); 1547 Value *Val = Builder.CreateCall(F, LdPtr, "ldrexd"); local 1549 Value *Val0 = Builder.CreateExtractValue(Val, 1); 1550 Value *Val1 = Builder.CreateExtractValue(Val, 0); 1555 Val = Builder.CreateShl(Val0, ShiftCst, "shl", true /* nuw */); 1556 return Builder.CreateOr(Val, Val1); 1565 Value *Val local 1988 Value *Val = Builder.CreateExtractValue(Ops[1], i); local [all...] |
H A D | CGCall.cpp | 608 /// CoerceIntOrPtrToIntOrPtr - Convert a value Val to the specific Ty where both 611 static llvm::Value *CoerceIntOrPtrToIntOrPtr(llvm::Value *Val, argument 614 if (Val->getType() == Ty) 615 return Val; 617 if (isa<llvm::PointerType>(Val->getType())) { 620 return CGF.Builder.CreateBitCast(Val, Ty, "coerce.val"); 623 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 630 if (Val->getType() != DestIntTy) 631 Val 705 BuildAggStore(CodeGenFunction &CGF, llvm::Value *Val, llvm::Value *DestPtr, bool DestIsVolatile, bool LowAlignment) argument [all...] |
H A D | CGException.cpp | 278 llvm::Value *Val = LPI->getClause(I)->stripPointerCasts(); local 281 if (llvm::GlobalVariable *GV = dyn_cast<llvm::GlobalVariable>(Val)) 288 llvm::Constant *CVal = cast<llvm::Constant>(Val);
|
H A D | CGExprConstant.cpp | 74 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase, 232 if (llvm::ConstantInt *Val = dyn_cast<llvm::ConstantInt>(LastElt)) 233 Tmp |= Val->getValue(); 445 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, argument 474 Build(Val.getStructBase(Base.Index), Base.Decl, IsPrimaryBase, 497 if (RD->isUnion() && Val.getUnionField() != *Field) 508 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); 590 const APValue &Val, 600 Builder.Build(Val, R 588 BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, const APValue &Val, QualType ValTy) argument [all...] |
/external/clang/lib/Driver/ |
H A D | Tools.cpp | 1807 StringRef Val = A->getValue(Args); local 1808 if (Val == "fast" || Val == "on" || Val == "off") { 1809 CmdArgs.push_back(Args.MakeArgString("-ffp-contract=" + Val)); 1812 << A->getOption().getName() << Val;
|
/external/llvm/include/llvm/CodeGen/ |
H A D | SelectionDAGNodes.h | 179 static unsigned getHashValue(const SDValue &Val) { argument 180 return ((unsigned)((uintptr_t)Val.getNode() >> 4) ^ 181 (unsigned)((uintptr_t)Val.getNode() >> 9)) + Val.getResNo(); 194 static SimpleType getSimplifiedValue(const SDValue &Val) { argument 195 return static_cast<SimpleType>(Val.getNode()); 200 static SimpleType getSimplifiedValue(const SDValue &Val) { argument 201 return static_cast<SimpleType>(Val.getNode()); 211 /// Val - The value being used. 212 SDValue Val; member in class:llvm::SDUse 293 getSimplifiedValue(const SDUse &Val) argument 299 getSimplifiedValue(const SDUse &Val) argument 1033 AtomicSDNode(unsigned Opc, DebugLoc dl, SDVTList VTL, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, MachineMemOperand *MMO, AtomicOrdering Ordering, SynchronizationScope SynchScope) argument 1290 } Val; member in class:llvm::SDNode::ConstantPoolSDNode [all...] |
/external/llvm/include/llvm/ |
H A D | IRBuilder.h | 276 CallInst *CreateMemSet(Value *Ptr, Value *Val, uint64_t Size, unsigned Align, argument 278 return CreateMemSet(Ptr, Val, getInt64(Size), Align, isVolatile, TBAATag); 281 CallInst *CreateMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Align, 810 StoreInst *CreateStore(Value *Val, Value *Ptr, bool isVolatile = false) { argument 811 return Insert(new StoreInst(Val, Ptr, isVolatile)); 822 AtomicRMWInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val, argument 825 return Insert(new AtomicRMWInst(Op, Ptr, Val, Ordering, SynchScope)); 1246 Value *CreateInsertValue(Value *Agg, Value *Val, argument 1250 if (Constant *ValC = dyn_cast<Constant>(Val)) 1252 return Insert(InsertValueInst::Create(Agg, Val, Idx [all...] |