HomeSort by relevance Sort by last modified time
    Searched refs:CFP (Results 1 - 25 of 34) sorted by null

1 2

  /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/llvm/lib/IR/
Constants.cpp 47 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
48 return CFP->isZero() && CFP->isNegative();
71 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
72 return CFP->isZero();
84 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
85 return CFP->isZero() && !CFP->isNegative();
97 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
98 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue()
    [all...]
AsmWriter.cpp 803 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
804 if (&CFP->getValueAPF().getSemantics() == &APFloat::IEEEsingle ||
805 &CFP->getValueAPF().getSemantics() == &APFloat::IEEEdouble) {
812 bool isHalf = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEhalf;
813 bool isDouble = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble;
814 bool isInf = CFP->getValueAPF().isInfinity();
815 bool isNaN = CFP->getValueAPF().isNaN();
817 double Val = isDouble ? CFP->getValueAPF().convertToDouble() :
818 CFP->getValueAPF().convertToFloat();
843 APFloat apf = CFP->getValueAPF()
    [all...]
  /external/llvm/lib/CodeGen/AsmPrinter/
DwarfDebug.h 83 const ConstantFP *CFP;
98 Constant(true) { Constants.CFP = FPtr; EntryKind = E_ConstantFP; }
119 const ConstantFP *getConstantFP() { return Constants.CFP; }
AsmPrinter.cpp     [all...]
DwarfCompileUnit.h 272 bool addConstantFPValue(DIE *Die, const ConstantFP *CFP);
DwarfCompileUnit.cpp 635 bool CompileUnit::addConstantFPValue(DIE *Die, const ConstantFP *CFP) {
636 return 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 351 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) {
352 return CFP->isExactlyValue(1.0);
361 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) {
362 return CFP->getValueAPF().isZero();
  /external/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp     [all...]
InstCombineMulDivRem.cpp 284 ConstantFP *CFP = dyn_cast<ConstantFP>(I->getOperand(0));
285 if (CFP && CFP->isExactlyValue(0.5)) {
289 CFP = dyn_cast<ConstantFP>(I->getOperand(1));
290 if (CFP && CFP->isExactlyValue(0.5))
    [all...]
InstCombineAddSub.cpp 454 if (ConstantFP *CFP = dyn_cast<ConstantFP>(NewAddSub)) {
455 const APFloat &F = CFP->getValueAPF();
    [all...]
  /external/llvm/lib/Analysis/
ValueTracking.cpp     [all...]
InstructionSimplify.cpp     [all...]
ConstantFolding.cpp 285 if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
286 if (CFP->getType()->isDoubleTy()) {
290 if (CFP->getType()->isFloatTy()){
294 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);
  /external/llvm/lib/CodeGen/SelectionDAG/
LegalizeDAG.cpp 136 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP);
248 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
250 DebugLoc dl = CFP->getDebugLoc();
258 EVT VT = CFP->getValueType(0);
259 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue());
270 if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) &&
655 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(ST->getValue())) {
656 if (CFP->getValueType(0) == MVT::f32 &&
658 SDValue Con = DAG.getConstant(CFP->getValueAPF().
665 if (CFP->getValueType(0) == MVT::f64)
    [all...]
SelectionDAG.cpp     [all...]
  /external/llvm/lib/Target/ARM/
ARMFastISel.cpp 193 unsigned ARMMaterializeFP(const ConstantFP *CFP, MVT VT);
514 unsigned ARMFastISel::ARMMaterializeFP(const ConstantFP *CFP, MVT VT) {
515 const APFloat Val = CFP->getValueAPF();
541 unsigned Align = TD.getPrefTypeAlignment(CFP->getType());
544 Align = TD.getTypeAllocSize(CFP->getType());
546 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align);
729 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
730 return ARMMaterializeFP(CFP, VT);
    [all...]
ARMCodeEmitter.cpp 685 const ConstantFP *CFP = static_cast<const ConstantFP*>(C);
686 if (CFP->getType()->isFloatTy())
687 emitWordLE(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
688 else if (CFP->getType()->isDoubleTy())
689 emitDWordLE(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
    [all...]
  /external/llvm/lib/Bitcode/Writer/
BitcodeWriter.cpp     [all...]
  /frameworks/compile/slang/BitWriter_2_9/
BitcodeWriter.cpp 850 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
852 Type *Ty = CFP->getType();
854 Record.push_back(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
858 APInt api = CFP->getValueAPF().bitcastToAPInt();
863 APInt api = CFP->getValueAPF().bitcastToAPInt();
    [all...]
  /frameworks/compile/slang/BitWriter_2_9_func/
BitcodeWriter.cpp 804 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
806 Type *Ty = CFP->getType();
808 Record.push_back(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
812 APInt api = CFP->getValueAPF().bitcastToAPInt();
817 APInt api = CFP->getValueAPF().bitcastToAPInt();
    [all...]
  /frameworks/compile/slang/BitWriter_3_2/
BitcodeWriter.cpp 855 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
857 Type *Ty = CFP->getType();
859 Record.push_back(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
863 APInt api = CFP->getValueAPF().bitcastToAPInt();
    [all...]

Completed in 2515 milliseconds

1 2