jckarter / clay

The Clay programming language
http://claylabs.com/clay
Other
403 stars 34 forks source link

Update __intrinsics__ module implementation for LLVM 3.2 #466

Closed jckarter closed 11 years ago

jckarter commented 11 years ago

LLVM 3.2 changed how LLVM intrinsics are registered. Per @crabtw:

You can use getIntrinsicInfoTableEntries to get the information (https://gist.github.com/4432544#file-intrinsics-diff-L121) and the first entry of table is for output type.

It uses Verifier::VerifyIntrinsicType to verify intrinsic types (https://gist.github.com/4432544#file-intrinsics-diff-L30).

Clay's loadIntrinsicsModule implementation needs to be updated to correctly populate __intrinsics__ under LLVM 3.2.

jckarter commented 11 years ago

Done by @crabtw in #479.