[llvm-commits] [llvm-gcc-4.0] r42134 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp

Chris Lattner clattner at apple.com
Wed Sep 26 13:23:01 PDT 2007


>> let Properties = [IntrNoMem] in {
>> ..
>>    def int_powi : Intrinsic<[llvm_anyfloat_ty, LLVMMatchType<0>,
>> llvm_i32_ty]>;
>> }
>>
>> I don't think this changes the .ll or .bc syntax for f32/f64, but
>> allows any fp type to be used with powi.  Calls to
>> Intrinsic::getDeclaration(powi) will have to change though.
>
> I was thinking more of adding int_powi_f80.  What I'm mostly
> concerned about is whether
> this intrinsic info somehow maps into an enum in the intermediate
> files, is there anything
> like that?  If everything is done by name it should be OK.

Either way should be safe, everything is done by name.  If you use  
the 'any' solution, you won't have to touch this again for ppc long  
double :)

-Chris



More information about the llvm-commits mailing list