<div dir="ltr">Hi All,<div><br></div><div>Attached is a patch to partially C++11'ify the Kaleidoscope tutorials. There are a few LLVM coding convention fixes and range-based for loops in here, but the bulk of the patch is concerned with switching raw pointers to unique_ptr.</div><div><br></div><div>This is a significant change from the original Kaleidoscope tutorials which deliberately avoided any memory management so as not to overcomplicate the examples. I thought it was time to revisit this idea, since C++11 has removed a lot of the complication of C++ memory management, and there's a benefit to having the tutorial code more closely resemble the rest of the LLVM codebase. </div><div><br></div><div>Any thoughts/feedback on this direction?</div><div><br></div><div>I see this as a first step towards fully modernizing the Kaleidoscope tutorials. My next step will be to update Chapter 4 onwards to bring them up to speed with the recent JIT API changes - I've already started work on a follow-up patch for this. If anybody else is interested in helping me bring these tutorials up to speed let me know - assistance will very welcome.<br></div><div><br></div><div>- Lang.</div></div>