Peng Yu via llvm-dev
2019-Jan-28 15:43 UTC
[llvm-dev] Must switch instruction be in multiple lines
Hi, The langref shows the following. It is in multiple llines. Is there a way to make it in one line. Or the format requires it to be in multiple lines. switch i32 %val, label %otherwise [ i32 0, label %onzero i32 1, label %onone i32 2, label %ontwo ] -- Regards, Peng
Tim Northover via llvm-dev
2019-Jan-28 17:01 UTC
[llvm-dev] Must switch instruction be in multiple lines
On Mon, 28 Jan 2019 at 15:43, Peng Yu via llvm-dev <llvm-dev at lists.llvm.org> wrote:> The langref shows the following. It is in multiple llines. Is there a > way to make it in one line. Or the format requires it to be in > multiple lines. > > switch i32 %val, label %otherwise [ i32 0, label %onzero > i32 1, label %onone > i32 2, label %ontwo ]Have you tried writing it on one line to see what happens? That would be the obvious first step. Cheers. Tim.