Home
last modified time | relevance | path

Searched refs:FPToI (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandFp.cpp92 static void expandFPToI(Instruction *FPToI) { in expandFPToI() argument
94 IRBuilder<> Builder(FPToI); in expandFPToI()
95 auto *FloatVal = FPToI->getOperand(0); in expandFPToI()
96 IntegerType *IntTy = cast<IntegerType>(FPToI->getType()); in expandFPToI()
98 unsigned BitWidth = FPToI->getType()->getIntegerBitWidth(); in expandFPToI()
105 if (FPToI->getOpcode() == Instruction::FPToUI) { in expandFPToI()
112 FPToI->replaceAllUsesWith(A1); in expandFPToI()
113 FPToI->dropAllReferences(); in expandFPToI()
114 FPToI->eraseFromParent(); in expandFPToI()
163 Value *ARep = Builder.CreateZExt(ARep0, FPToI->getType()); in expandFPToI()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp1141 auto &FPToI = getActionDefinitionsBuilder({G_FPTOSI, G_FPTOUI}) in AMDGPULegalizerInfo() local
1146 FPToI.legalFor({{S16, S16}}); in AMDGPULegalizerInfo()
1148 FPToI.minScalar(1, S32); in AMDGPULegalizerInfo()
1150 FPToI.minScalar(0, S32) in AMDGPULegalizerInfo()