[PATCH] D40727: Syndicate duplicate code between CallInst and InvokeInst

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 03:57:37 PST 2017


serge-sans-paille updated this revision to Diff 125689.
serge-sans-paille added a comment.

No longer using CRTP to avoid extra cost. I could not find a way to create a separate type hierarchy because of the heavy dependance on `User`. Instead I cunningly hooked the heritance tree, resulting in most of the code going in a common parent class.


Repository:
  rL LLVM

https://reviews.llvm.org/D40727

Files:
  include/llvm/IR/Instructions.h
  lib/IR/Instructions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40727.125689.patch
Type: text/x-patch
Size: 65518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171206/283586ae/attachment.bin>


More information about the llvm-commits mailing list