LLVM String String Syntax

I have a few questions about LLVM assembly line string syntax. The syntax I have in mind is this:

@helloWorldString = private constant [13 x i8] c"hello world\0A\00" 

In particular, I'm talking about form c"hello world\0A\00" .

I have two questions:

1) Where is this syntax documented?

2) How can I split a long string constant into several lines?

+4
source share
1 answer

Not documented, but c"hello world\0A\00" pretty much demonstrates the full degree of syntax. It is not possible to split a string into multiple lines. There really is no thorough documentation of syntax, because it is quite simple, and there is only one parser.

+1
source

All Articles