Displaying 1 result from an estimated 1 matches for "extx86".
Did you mean:
extc89
2012 May 23
1
[LLVMdev] tblgen for generation of Haskell bindings to LLVM intrinsics
...s_256 : GCCBuiltin<"__builtin_ia32_maxps256">,
Intrinsic<[llvm_v8f32_ty], [llvm_v8f32_ty,
llvm_v8f32_ty], [IntrNoMem]>;
is turned into
maxpd256 :: Ext.T (V4Double -> V4Double -> LLVM.CodeGenFunction r V4Double)
maxpd256 = Ext.intrinsic ExtX86.avx "max.pd.256"
This works for the flat structure of IntrinsicsX86.td, but e.g.
IntrinsicsPowerPC.td uses tablegen classes.
Now I wonder whether it is better to use tablegen to generate the Haskell code.
The tblgen man page says, that tablegen emits C++. This would not be a big
pro...