/external/llvm/lib/Target/PowerPC/ |
PPCFastISel.cpp | 95 unsigned PPCMaterializeFP(const ConstantFP *CFP, MVT VT); 117 unsigned PPCFastISel::PPCMaterializeFP(const ConstantFP *CFP, MVT VT) { 123 unsigned Align = TD.getPrefTypeAlignment(CFP->getType()); 125 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align); 284 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) 285 return PPCMaterializeFP(CFP, VT);
|
/external/llvm/include/llvm/CodeGen/ |
MachineOperand.h | 153 const ConstantFP *CFP; // For MO_FPImmediate. 414 return Contents.CFP; 554 static MachineOperand CreateFPImm(const ConstantFP *CFP) { 556 Op.Contents.CFP = CFP;
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
AMDGPUISelLowering.cpp | 293 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { 294 return CFP->isExactlyValue(1.0); 304 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { 305 return CFP->getValueAPF().isZero();
|
/external/mesa3d/src/gallium/drivers/radeon/ |
AMDGPUISelLowering.cpp | 293 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { 294 return CFP->isExactlyValue(1.0); 304 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { 305 return CFP->getValueAPF().isZero();
|
/external/llvm/lib/IR/ |
Constants.cpp | 47 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) 48 return CFP->isZero() && CFP->isNegative(); 68 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) 69 return CFP->isZero(); 81 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) 82 return CFP->isZero() && !CFP->isNegative(); 94 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) 95 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue() [all...] |
AsmWriter.cpp | 777 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) { 778 if (&CFP->getValueAPF().getSemantics() == &APFloat::IEEEsingle || 779 &CFP->getValueAPF().getSemantics() == &APFloat::IEEEdouble) { 786 bool isHalf = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEhalf; 787 bool isDouble = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble; 788 bool isInf = CFP->getValueAPF().isInfinity(); 789 bool isNaN = CFP->getValueAPF().isNaN(); 791 double Val = isDouble ? CFP->getValueAPF().convertToDouble() : 792 CFP->getValueAPF().convertToFloat(); 817 APFloat apf = CFP->getValueAPF() [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
DwarfDebug.h | 81 const ConstantFP *CFP; 111 Constants.CFP = FPtr; 136 const ConstantFP *getConstantFP() const { return Constants.CFP; }
|
AsmPrinter.cpp | [all...] |
DwarfCompileUnit.h | 272 void addConstantFPValue(DIE *Die, const ConstantFP *CFP);
|
DwarfCompileUnit.cpp | 651 void CompileUnit::addConstantFPValue(DIE *Die, const ConstantFP *CFP) { 652 addConstantValue(Die, CFP->getValueAPF().bitcastToAPInt(), false); [all...] |
/external/llvm/lib/Target/CppBackend/ |
CPPBackend.cpp | 136 void printCFP(const ConstantFP* CFP); 215 void CppWriter::printCFP(const ConstantFP *CFP) { 217 APFloat APF = APFloat(CFP->getValueAPF()); // copy 218 if (CFP->getType() == Type::getFloatTy(CFP->getContext())) 229 if (CFP->getType() == Type::getDoubleTy(CFP->getContext())) 236 std::string StrVal = ftostr(CFP->getValueAPF()); 246 (CFP->isExactlyValue(atof(StrVal.c_str())))) { 247 if (CFP->getType() == Type::getDoubleTy(CFP->getContext()) [all...] |
/external/llvm/lib/Target/R600/ |
AMDGPUISelLowering.cpp | 450 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { 451 return CFP->isExactlyValue(1.0); 460 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { 461 return CFP->getValueAPF().isZero();
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCasts.cpp | [all...] |
InstCombineMulDivRem.cpp | 316 ConstantFP *CFP = dyn_cast<ConstantFP>(I->getOperand(0)); 317 if (CFP && CFP->isExactlyValue(0.5)) { 321 CFP = dyn_cast<ConstantFP>(I->getOperand(1)); 322 if (CFP && CFP->isExactlyValue(0.5)) [all...] |
InstCombineAddSub.cpp | 490 if (ConstantFP *CFP = dyn_cast<ConstantFP>(NewAddSub)) { 491 const APFloat &F = CFP->getValueAPF(); [all...] |
/external/llvm/lib/Analysis/ |
ValueTracking.cpp | [all...] |
InstructionSimplify.cpp | [all...] |
ConstantFolding.cpp | 286 if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { 287 if (CFP->getType()->isDoubleTy()) { 291 if (CFP->getType()->isFloatTy()){ 295 if (CFP->getType()->isHalfTy()){ [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXAsmPrinter.cpp | [all...] |
/external/llvm/include/llvm/Support/ |
PatternMatch.h | 333 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(V)) 334 return CFP->isExactlyValue(Val); 337 if (ConstantFP *CFP = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) 338 return CFP->isExactlyValue(Val); [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
LegalizeDAG.cpp | 140 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP); 252 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) { 254 SDLoc dl(CFP); 262 EVT VT = CFP->getValueType(0); 263 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue()); 274 if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) && 659 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(ST->getValue())) { 660 if (CFP->getValueType(0) == MVT::f32 && 662 SDValue Con = DAG.getConstant(CFP->getValueAPF(). 669 if (CFP->getValueType(0) == MVT::f64) [all...] |
/external/llvm/lib/Target/ARM/ |
ARMFastISel.cpp | 194 unsigned ARMMaterializeFP(const ConstantFP *CFP, MVT VT); 515 unsigned ARMFastISel::ARMMaterializeFP(const ConstantFP *CFP, MVT VT) { 516 const APFloat Val = CFP->getValueAPF(); 542 unsigned Align = TD.getPrefTypeAlignment(CFP->getType()); 545 Align = TD.getTypeAllocSize(CFP->getType()); 547 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align); 735 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) 736 return ARMMaterializeFP(CFP, VT); [all...] |
ARMCodeEmitter.cpp | 687 const ConstantFP *CFP = static_cast<const ConstantFP*>(C); 688 if (CFP->getType()->isFloatTy()) 689 emitWordLE(CFP->getValueAPF().bitcastToAPInt().getZExtValue()); 690 else if (CFP->getType()->isDoubleTy()) 691 emitDWordLE(CFP->getValueAPF().bitcastToAPInt().getZExtValue()); [all...] |
/external/llvm/lib/Bitcode/Writer/ |
BitcodeWriter.cpp | [all...] |
/frameworks/compile/slang/BitWriter_2_9/ |
BitcodeWriter.cpp | 854 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { 856 Type *Ty = CFP->getType(); 858 Record.push_back(CFP->getValueAPF().bitcastToAPInt().getZExtValue()); 862 APInt api = CFP->getValueAPF().bitcastToAPInt(); 867 APInt api = CFP->getValueAPF().bitcastToAPInt(); [all...] |