Home | History | Annotate | Download | only in IR

Lines Matching full:casting

2801         // An element by element cast.  Valid if casting the elements is valid.
2811 if (DestTy->isIntegerTy()) { // Casting to integral
2812 if (SrcTy->isIntegerTy()) // Casting from integral
2814 if (SrcTy->isFloatingPointTy()) // Casting from floating pt
2816 if (SrcTy->isVectorTy()) // Casting from vector
2818 // Casting from something else
2821 if (DestTy->isFloatingPointTy()) { // Casting to floating pt
2822 if (SrcTy->isIntegerTy()) // Casting from integral
2824 if (SrcTy->isFloatingPointTy()) // Casting from floating pt
2826 if (SrcTy->isVectorTy()) // Casting from vector
2828 // Casting from something else
2831 if (DestTy->isVectorTy()) // Casting to vector
2833 if (DestTy->isPointerTy()) { // Casting to pointer
2834 if (SrcTy->isPointerTy()) // Casting from pointer
2836 return SrcTy->isIntegerTy(); // Casting from integral
2842 } // Casting to something else
2856 // An element by element cast. Valid if casting the elements is valid.
2903 // casting opcode for the arguments passed to it.
2931 if (DestTy->isIntegerTy()) { // Casting to integral
2932 if (SrcTy->isIntegerTy()) { // Casting from integral
2943 } else if (SrcTy->isFloatingPointTy()) { // Casting from floating pt
2950 "Casting vector to integer of different width");
2954 "Casting from a value that is not first-class type");
2957 } else if (DestTy->isFloatingPointTy()) { // Casting to floating pt
2958 if (SrcTy->isIntegerTy()) { // Casting from integral
2963 } else if (SrcTy->isFloatingPointTy()) { // Casting from floating pt
2973 "Casting vector to floating point of different width");
2976 llvm_unreachable("Casting pointer or non-first class to float");
2989 llvm_unreachable("Casting pointer to other than pointer or int");
2992 assert(DestBits == SrcBits && "Casting vector of wrong width to X86_MMX");
2997 llvm_unreachable("Casting to type that is not first-class");