[PATCH] D12456: [IR] Add operand bundles to CallInst and InvokeInst.

Dmitry Babokin via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 03:11:04 PDT 2015


Sanjoy,

Thanks for the fix, it works.

I forgot to mention that the problem shows up when building with gcc (we
use 4.9.1). We have to use gcc on Linux when building our project, which
includes LLVM libraries and hence we include include/llvm/* stuff.

Thanks again for quick response.

On Thu, Oct 1, 2015 at 9:58 PM, Sanjoy Das <sanjoy at playingwithpointers.com>
wrote:

> sanjoy added a comment.
>
> Sanjoy Das wrote:
>
> > sanjoy added a comment.
>
> >
>
> > Dmitry Babokin via llvm-commits wrote:
>
> >
>
> >   >  dbabokin added a subscriber: dbabokin.
>
> >   >  dbabokin added a comment.
>
> >   >
>
> >   >  Sanjoy,
>
> >   >
>
> >   >  Your comment in include/llvm/IR/InstrTypes.h in line 1137 is
> undeniably
>
> >   >  nice, but it causes a warning (or an error when building with
> "-Wall"):
>
> >   >
>
> >   >  “error: multi-line comment [-Werror=comment]”
>
> >   >
>
> >   >  Could you please fix it? For example you can use | instead of , or
> add
>
> >   >  some "shielding" (|, ///, or whatever you prefer) in the leftmost
>
> >
>
> > position
>
> >
>
> >   >  of the whole pseudo graphics (i.e. lines 1137-1149.
>
> >
>
> > I'm more than happy to fix this, but I'm not able to reproduce this
>
> >  issue using clang++ on OSX (my default build environment).
>
> >
>
> > Can you please verify that the change below fixes the issue?
>
>
> Looks like my mail client screwed up the diff.  Sending it as an
> attachment this time.
>
> > diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h
>
> >  index 70ab973..0c2ff91 100644
>
> >
>
> > - a/include/llvm/IR/InstrTypes.h
>
> >
>
> >   +++ b/include/llvm/IR/InstrTypes.h @@ -1134,19 +1134,19 @@ typedef
> OperandBundleDefT<const Value *> ConstOperandBundleDef;
>
> >
>
> >   /// /// The layout of an operand bundle user is ///
>
> >
>
> >   -///              +-------uint32_t
> End---------------------------------+ -///             / -///            /
> +------uint32_t Begin------------------+
>
> >
>
> >   -///           /  / +///          +-----------uint32_t
>
> >
>
> >   End-------------------------------------+ +///          |
>                                               | +///          |
> +--------uint32_t Begin--------------------+              | +///
> |  |                                          |              |
>
> >
>
> >   ///          ^  ^                                          v v ///
>
> >
>
> >
>  |------|------|----|----|----|----|----|---------|----|---------|----|-----
>
> >
>
> >
>
> >
>
> >   ///  | BOI0 | BOI1 | .. | DU | U0 | U1 | .. | BOI0_U0 | .. | BOI1_U0 |
>
> >
>
> > .. | Un
>
> >
>
> >   ///
>
> >
>
> >
> |------|------|----|----|----|----|----|---------|----|---------|----|-----
>
> >
>
> >   ///   v  v                                  ^              ^
>
> >
>
> > -///                                      /              /
>
> >  -///       +------uint32_t Begin----------+              /
>
> >  -///                                                    /
>
> >  -///       +-------uint32_t End-------------------------+
>
> >  +///   |  |                                  |              |
>
> >  +///   |  +--------uint32_t Begin------------+              |
>
> >  +///   |                                                    |
>
> >  +///   +-----------uint32_t End-----------------------------+
>
> >
>
> >   ///
>
> >   ///
>
> >   /// BOI0, BOI1 ... are descriptions of operand bundles in this User's
>
> >
>
> > use list.
>
> >
>
> >   >  Thanks!
>
> >   >
>
> >   >  Dmitry.
>
> >   >
>
> >   >
>
> >   >  Repository:
>
> >   >     http://reviews.llvm.org/diffusion/L/ LLVM
>
> >   >
>
> >   >  http://reviews.llvm.org/D12456
>
> >   >
>
> >   >
>
> >   >
>
> >   >  _______________________________________________
>
> >   >  llvm-commits mailing list
>
> >   >  llvm-commits at lists.llvm.org
>
> >   >  http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
> >
>
> > Repository:
>
> >
>
> >   rL LLVM
>
> >
>
> > http://reviews.llvm.org/D12456
>
>
>
>
> - F896383: fix.diff <http://reviews.llvm.org/F896383>
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D12456
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151002/32e9625c/attachment.html>


More information about the llvm-commits mailing list