[llvm-dev] [RFC] Intrinsic naming convention (words with dots)
Justin Bogner via llvm-dev
llvm-dev at lists.llvm.org
Tue Dec 1 09:33:07 PST 2015
Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org> writes:
> On 12/1/2015 4:26 AM, Hal Finkel via llvm-dev wrote:
>> I propose that we standardize on (2) -- words with dots -- as it
>> seems to have a plurality of more-recent intrinsics (and I think it
>> is easy to read, as is (3)). Thoughts?
>
> How about using dots to separate "contexts" and underscores to
> separate words, e.g.
>
> llvm.gc.* --stuff related to GC
> llvm.gc.read
> llvm.gc.do_something_else
This is sort of what I was thinking too - use dots for "namespaces" and
underscores as word separators on the "verbs", or so. It makes it easier
to tell the difference between categorization and compound names.
Maybe that's too subjective though - I don't have a particularly strong
opinion here.
More information about the llvm-dev
mailing list