[llvm-dev] Missing formal definition of "declare"?

Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 28 06:53:59 PST 2019


> If you look in the section on "Functions" in that page, it describes
> the "declare" statement in the second paragraph.  Admittedly, it does
> not provide a formal syntax as it does for "define" but the information
> is there.

OK. Thanks.

It definitely better to write the definition of "declare" in a
formatted form similar to "define". It is hard to notice it as it is
currently written,

Syntax:

define [linkage] [PreemptionSpecifier] [visibility] [DLLStorageClass]
       [cconv] [ret attrs]
       <ResultType> @<FunctionName> ([argument list])
       [(unnamed_addr|local_unnamed_addr)] [AddrSpace] [fn Attrs]
       [section "name"] [comdat [($name)]] [align N] [gc] [prefix Constant]
       [prologue Constant] [personality Constant] (!name !N)* { ... }

-- 
Regards,
Peng


More information about the llvm-dev mailing list