[LLVMdev] Patch IntrinsicEmitter for VS

Cédric Venet cedric.venet at laposte.net
Sun Dec 16 07:09:01 PST 2007


Hi,

The actual tableGen generate a chain of if/then/else for the intrinsic which
is too long for VS 2005, and result in a compile error. I did a small change
in table gen so that the if aren't chained so that I could compile (patch
attached). This double the algorithmic complexity of the function but it
seems that this wasn't a problem. If speed is needed here, we could hash the
string first in a few bin and do the if/then/else in each bin or use a
perfect hash or some hash container.

Regards,

Cédric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TableGenIntrinsic.patch
Type: application/octet-stream
Size: 1220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071216/401c8b42/attachment.obj>


More information about the llvm-dev mailing list