reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/IVDescriptors.h
  319            !cast<FPMathOperator>(InductionBinOp)->isFast();
  328     if (!InductionBinOp || cast<FPMathOperator>(InductionBinOp)->isFast())
include/llvm/CodeGen/SelectionDAGNodes.h
  388   void copyFMF(const FPMathOperator &FPMO) {
include/llvm/IR/IRBuilder.h
 1478     if (isa<FPMathOperator>(BinOp))
 1551     if (isa<FPMathOperator>(UnOp))
 2105     if (isa<FPMathOperator>(C))
 2252     if (isa<FPMathOperator>(Phi))
 2263     if (isa<FPMathOperator>(CI))
 2274     if (isa<FPMathOperator>(CI))
 2322     if (isa<FPMathOperator>(Sel))
include/llvm/IR/PatternMatch.h
  787     auto *FPMO = dyn_cast<FPMathOperator>(V);
  787     auto *FPMO = dyn_cast<FPMathOperator>(V);
include/llvm/Support/Casting.h
   57   static inline bool doit(const From &Val) {
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  165   using ret_type = To &;       // Normal case, return Ty&
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
lib/Analysis/IVDescriptors.cpp
  304       if (isa<FPMathOperator>(ReduxDesc.getPatternInst()) && !IsAPhi)
  560   if (!UAI && isa<FPMathOperator>(I) && !I->hasAllowReassoc())
lib/Analysis/InlineCost.cpp
 1074   if (auto FI = dyn_cast<FPMathOperator>(&I))
 1110                                     cast<FPMathOperator>(I).getFastMathFlags(),
lib/Analysis/LoopUnrollAnalyzer.cpp
   79   if (auto FI = dyn_cast<FPMathOperator>(&I))
lib/Analysis/TargetTransformInfo.cpp
 1325       if (auto *FPMO = dyn_cast<FPMathOperator>(II))
lib/Analysis/ValueTracking.cpp
 2909   if (auto *FPO = dyn_cast<FPMathOperator>(Op))
 2990         (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs()))
 3080              (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs()) &&
 3103   if (auto *FPMathOp = dyn_cast<FPMathOperator>(V))
 5077   if (isa<FPMathOperator>(CmpI))
lib/Bitcode/Reader/BitcodeReader.cpp
 3878         if (isa<FPMathOperator>(I)) {
 3914         } else if (isa<FPMathOperator>(I)) {
 4118       if (OpNum < Record.size() && isa<FPMathOperator>(I)) {
 5079         if (!isa<FPMathOperator>(I))
lib/Bitcode/Writer/BitcodeWriter.cpp
 1400   } else if (const auto *FPMO = dyn_cast<FPMathOperator>(V)) {
 1400   } else if (const auto *FPMO = dyn_cast<FPMathOperator>(V)) {
lib/CodeGen/ExpandReductions.cpp
   90         isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{};
lib/CodeGen/GlobalISel/IRTranslator.cpp
 1623   if (isa<FPMathOperator>(CI))
lib/CodeGen/MachineInstr.cpp
  543   if (const FPMathOperator *FP = dyn_cast<FPMathOperator>(&I)) {
  543   if (const FPMathOperator *FP = dyn_cast<FPMathOperator>(&I)) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1092   if (auto *FPMO = dyn_cast<FPMathOperator>(&I)) {
 2993     if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(Inst))
 2993     if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(Inst))
 3043         if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(Inst))
 3043         if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(Inst))
 3233   auto *FPMO = dyn_cast<FPMathOperator>(&I);
 8910   if (isa<FPMathOperator>(I))
lib/IR/AsmWriter.cpp
 1251   if (const FPMathOperator *FPO = dyn_cast<const FPMathOperator>(U)) {
 1251   if (const FPMathOperator *FPO = dyn_cast<const FPMathOperator>(U)) {
lib/IR/Instruction.cpp
  151   cast<FPMathOperator>(this)->setFast(B);
  156   cast<FPMathOperator>(this)->setHasAllowReassoc(B);
  161   cast<FPMathOperator>(this)->setHasNoNaNs(B);
  166   cast<FPMathOperator>(this)->setHasNoInfs(B);
  171   cast<FPMathOperator>(this)->setHasNoSignedZeros(B);
  176   cast<FPMathOperator>(this)->setHasAllowReciprocal(B);
  181   cast<FPMathOperator>(this)->setHasApproxFunc(B);
  186   cast<FPMathOperator>(this)->setFastMathFlags(FMF);
  191   cast<FPMathOperator>(this)->copyFastMathFlags(FMF);
  196   return cast<FPMathOperator>(this)->isFast();
  201   return cast<FPMathOperator>(this)->hasAllowReassoc();
  206   return cast<FPMathOperator>(this)->hasNoNaNs();
  211   return cast<FPMathOperator>(this)->hasNoInfs();
  216   return cast<FPMathOperator>(this)->hasNoSignedZeros();
  221   return cast<FPMathOperator>(this)->hasAllowReciprocal();
  226   return cast<FPMathOperator>(this)->hasAllowContract();
  231   return cast<FPMathOperator>(this)->hasApproxFunc();
  236   return cast<FPMathOperator>(this)->getFastMathFlags();
  258   if (auto *FP = dyn_cast<FPMathOperator>(V))
  259     if (isa<FPMathOperator>(this))
  279   if (auto *FP = dyn_cast<FPMathOperator>(V)) {
  280     if (isa<FPMathOperator>(this)) {
  637     return cast<FPMathOperator>(this)->hasAllowReassoc() &&
  638            cast<FPMathOperator>(this)->hasNoSignedZeros();
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  553   const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv);
  553   const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv);
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  492   if (auto Op = dyn_cast<FPMathOperator>(CI))
  654   if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(CI))
  654   if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(CI))
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  721     if (auto *FPMO = dyn_cast<FPMathOperator>(II))
lib/Transforms/InstCombine/InstCombineSelect.cpp
  102   if (isa<FPMathOperator>(BO))
 2455               cast<FPMathOperator>(SI.getCondition())->getFastMathFlags();
 2512   if (isa<FPMathOperator>(SI) && SI.hasNoNaNs() && SI.hasNoSignedZeros()) {
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1247       if (isa<FPMathOperator>(BO))
lib/Transforms/InstCombine/InstructionCombining.cpp
  240   FPMathOperator *FPMO = dyn_cast<FPMathOperator>(&I);
  240   FPMathOperator *FPMO = dyn_cast<FPMathOperator>(&I);
  445          if (isa<FPMathOperator>(NewBO)) {
  773     if (isa<FPMathOperator>(&I)) {
  852   if (FPInst && isa<FPMathOperator>(FPInst))
  924   if (FPInst && isa<FPMathOperator>(FPInst))
lib/Transforms/Scalar/Float2Int.cpp
  319             (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) &&
lib/Transforms/Scalar/Reassociate.cpp
  150     if (!isa<FPMathOperator>(I) || I->isFast())
  160     if (!isa<FPMathOperator>(I) || I->isFast())
  239     Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags());
  251     Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags());
  262     Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags());
  784       if (isa<FPMathOperator>(I)) {
 1821   if (auto FPI = dyn_cast<FPMathOperator>(I))
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1352   if (!isa<FPMathOperator>(Call))
 3008   else if (isa<FPMathOperator>(CI) && CI->isFast())
lib/Transforms/Vectorize/LoopVectorize.cpp
  341   if (isa<FPMathOperator>(V))
  347   if (isa<FPMathOperator>(V))
 3270   if (auto *FPMO = dyn_cast<FPMathOperator>(CI))
 3270   if (auto *FPMO = dyn_cast<FPMathOperator>(CI))
 4322       if (isa<FPMathOperator>(V))
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3204       if (auto *FPMO = dyn_cast<FPMathOperator>(CI))
 3204       if (auto *FPMO = dyn_cast<FPMathOperator>(CI))
unittests/IR/InstructionsTest.cpp
  416   FPMathOperator *O1 = cast<FPMathOperator>(V1);
  416   FPMathOperator *O1 = cast<FPMathOperator>(V1);