/external/llvm/lib/Transforms/InstCombine/ |
InstCombineMulDivRem.cpp | 121 const APInt &Val = CI->getValue(); 122 if (Val.isPowerOf2()) { // Replace X*(2^C) with X << C 123 Constant *NewCst = ConstantInt::get(Op0->getType(), Val.logBase2()); 143 const APInt & Val = CI->getValue(); 144 const APInt &PosVal = Val.abs(); 145 if (Val.isNegative() && PosVal.isPowerOf2()) {
|
InstCombinePHI.cpp | 597 static unsigned getHashValue(const LoweredPHIRecord &Val) { 598 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ 599 (Val.Width>>3); [all...] |
/external/llvm/lib/VMCore/ |
Instructions.cpp | 244 void LandingPadInst::addClause(Value *Val) { 249 OperandList[OpNo] = Val; 347 /// IsConstantOne - Return true only if val is constant int 1 348 static bool IsConstantOne(Value *val) { 349 assert(val && "IsConstantOne does not work with NULL val"); 350 return isa<ConstantInt>(val) && cast<ConstantInt>(val)->isOne(); [all...] |
/external/llvm/include/llvm/Support/ |
IRBuilder.h | 275 CallInst *CreateMemSet(Value *Ptr, Value *Val, uint64_t Size, unsigned Align, 277 return CreateMemSet(Ptr, Val, getInt64(Size), Align, isVolatile, TBAATag); 280 CallInst *CreateMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Align, 405 /// CreateRet - Create a 'ret <val>' instruction. 762 StoreInst *CreateStore(Value *Val, Value *Ptr, bool isVolatile = false) { 763 return Insert(new StoreInst(Val, Ptr, isVolatile)); 774 AtomicRMWInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val, 777 return Insert(new AtomicRMWInst(Op, Ptr, Val, Ordering, SynchScope)); [all...] |
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 254 uint64_t Val = CI->getZExtValue(); 258 CurPtr[i] = (unsigned char)(Val >> (ByteOffset * 8)); [all...] |
/external/llvm/lib/Target/ARM/ |
ARMISelDAGToDAG.cpp | 732 int Val; 733 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x1000, Val)) 768 int Val; 769 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x1000, Val)) { // 12 bits. 770 if (AddSub == ARM_AM::sub) Val *= -1; 772 Opc = CurDAG->getTargetConstant(Val, MVT::i32); 788 int Val; 789 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x1000, Val)) { // 12 bits. 791 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, Val, 861 int Val; [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
CheckerManager.cpp | 249 SVal Val; 257 SVal loc, SVal val, const Stmt *s, ExprEngine &eng) 258 : Checkers(checkers), Loc(loc), Val(val), S(s), Eng(eng) { } 267 checkFn(Loc, Val, S, C); 275 SVal location, SVal val, 277 CheckBindContext C(BindCheckers, location, val, S, Eng);
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 108 double Val; 110 NumberExprAST(double val) : Val(val) {} 464 return ConstantFP::get(getGlobalContext(), APFloat(Val));
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 113 double Val; 115 NumberExprAST(double val) : Val(val) {} 549 return ConstantFP::get(getGlobalContext(), APFloat(Val));
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
AsmPrinter.cpp | [all...] |
/external/llvm/lib/Target/X86/ |
X86FastISel.cpp | 83 bool X86FastEmitStore(EVT VT, const Value *Val, const X86AddressMode &AM); 84 bool X86FastEmitStore(EVT VT, unsigned Val, const X86AddressMode &AM); 230 /// X86FastEmitStore - Emit a machine instruction to store a value Val of 235 X86FastISel::X86FastEmitStore(EVT VT, unsigned Val, const X86AddressMode &AM) { 245 TII.get(X86::AND8ri), AndResult).addReg(Val).addImm(1); 246 Val = AndResult; 276 DL, TII.get(Opc)), AM).addReg(Val); 280 bool X86FastISel::X86FastEmitStore(EVT VT, const Value *Val, 283 if (isa<ConstantPointerNull>(Val)) 284 Val = Constant::getNullValue(TD.getIntPtrType(Val->getContext())) [all...] |
X86CodeEmitter.cpp | 96 void emitConstant(uint64_t Val, unsigned Size); 373 void Emitter<CodeEmitter>::emitConstant(uint64_t Val, unsigned Size) { 376 MCE.emitByte(Val & 255); 377 Val >>= 8; [all...] |
/external/clang/lib/Lex/ |
PPDirectives.cpp | 707 /// Diagnostic DiagID if it is invalid, and returning the value in Val. 708 static bool GetLineValue(Token &DigitTok, unsigned &Val, 729 Val = 0; 738 unsigned NextVal = Val*10+(DigitTokBegin[i]-'0'); 739 if (NextVal < Val) { // overflow. 744 Val = NextVal; 748 if (Val == 0) { [all...] |
/external/llvm/utils/TableGen/ |
ARMDecoderEmitter.cpp | 945 int Val = -1; 948 Val = Value(Insn[i]); 956 if (Filtered || Val == -1) 962 FieldVal = Val; 966 if (Filtered || Val == -1) { [all...] |
FixedLenDecoderEmitter.cpp | 695 int Val = -1; 698 Val = Value(Insn[i]); 706 if (Filtered || Val == -1) 712 FieldVal = Val; 716 if (Filtered || Val == -1) { 724 FieldVal = FieldVal | Val << BitNo; [all...] |
CodeGenDAGPatterns.cpp | [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
ExprEngine.h | 432 SVal location, SVal Val, bool atDeclInit = false); 448 ExplodedNode *Pred, const ProgramState *St, SVal TargetLV, SVal Val,
|
/external/llvm/lib/Target/MSP430/ |
MSP430ISelDAGToDAG.cpp | 190 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); 191 AM.Disp += Val;
|
/external/llvm/utils/PerfectShuffle/ |
PerfectShuffle.cpp | 402 unsigned Val = (CostSat << 30) | (OpNum << 26) | (LHS << 13) | RHS; 404 std::cout << " " << std::setw(10) << Val << "U, // ";
|
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
BitcodeReader.cpp | 75 static GlobalValue::LinkageTypes GetDecodedLinkage(unsigned Val) { 76 switch (Val) { 97 static GlobalValue::VisibilityTypes GetDecodedVisibility(unsigned Val) { 98 switch (Val) { 106 static int GetDecodedCastOpcode(unsigned Val) { 107 switch (Val) { 123 static int GetDecodedBinaryOpcode(unsigned Val, Type *Ty) { 124 switch (Val) { [all...] |
/external/clang/lib/CodeGen/ |
CGBuiltin.cpp | 181 if (Result.Val.isInt()) 183 Result.Val.getInt())); 184 if (Result.Val.isFloat()) 186 Result.Val.getFloat())); 341 uint64_t val = CI->getZExtValue(); local 342 CI = ConstantInt::get(Builder.getInt1Ty(), (val & 0x2) >> 1); [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
LegalizeDAG.cpp | 97 SDValue PerformInsertVectorEltInMemory(SDValue Vec, SDValue Val, 99 SDValue ExpandINSERT_VECTOR_ELT(SDValue Vec, SDValue Val, 388 SDValue Val = ST->getValue(); 389 EVT VT = Val.getValueType(); 399 SDValue Result = DAG.getNode(ISD::BITCAST, dl, intVT, Val); 419 Val, StackPtr, MachinePointerInfo(), 474 TLI.getShiftAmountTy(Val.getValueType())); 475 SDValue Lo = Val; 476 SDValue Hi = DAG.getNode(ISD::SRL, dl, VT, Val, ShiftAmount); 638 PerformInsertVectorEltInMemory(SDValue Vec, SDValue Val, SDValue Idx [all...] |
/external/clang/include/clang/Analysis/ |
CFG.h | 568 BuildOptions &setAlwaysAdd(Stmt::StmtClass stmtClass, bool val = true) { 569 alwaysAddMask[stmtClass] = val; 742 static SimpleType getSimplifiedValue(const ::clang::CFGTerminator &Val) { 743 return Val.getStmt(); 749 static SimpleType getSimplifiedValue(const ::clang::CFGTerminator &Val) { 750 return const_cast<SimpleType>(Val.getStmt());
|
/external/llvm/lib/CodeGen/ |
ELFCodeEmitter.cpp | 161 EW.EmitGlobalConstant(CPE.Val.ConstVal, CstPool);
|
/external/llvm/unittests/ExecutionEngine/JIT/ |
JITTest.cpp | 553 Value *Val = ConstantInt::get(TypeBuilder<int, false>::get(Context), 1); 554 Builder.CreateRet(Val); 566 Val = ConstantInt::get(TypeBuilder<int, false>::get(Context), 2); 567 Builder.CreateRet(Val);
|