[llvm-commits] [llvm] r50943 - in /llvm/trunk: CREDITS.TXT include/llvm/Constants.h include/llvm/GlobalAlias.h include/llvm/GlobalVariable.h include/llvm/InstrTypes.h include/llvm/Instruction.h include/llvm/Instructions.h include/llvm/OperandTraits.h include/llvm/Use.h include/llvm/User.h include/llvm/Value.h lib/Bitcode/Reader/BitcodeReader.cpp lib/Bitcode/Reader/BitcodeReader.h lib/VMCore/ConstantFold.cpp lib/VMCore/Constants.cpp lib/VMCore/Globals.cpp lib/VMCore/Instructions.cpp lib/VMCore/Use.cpp

Nick Lewycky nicholas at mxc.ca
Sat Jul 5 16:08:16 PDT 2008


Gabor Greif wrote:
> Nicholas, and all who still keep branches from
> the time where BasicBlock was still derived from User,
> now that I have checked in the use-diet changes, you
> will have some minor complication when synchronizing
> with trunk.

Thanks for keeping me posted!

I've encountered a small problem, which is that I'm not sure what to
pass to User's constructor when defining the constructor for BasicBlock.

I've derived BasicBlock from User, and chosen OptionalOperand and added
all the various accessors and such. Does that mean I should use
OptionalOperandTraits::allocate() as the OpList parameter? Or do I need
to declare my own elsewhere? Also, what is "vty" (the second param to
User's constructor)?

Nick





More information about the llvm-commits mailing list