<div dir="ltr"><br>I'll preface by saying I'm new to LLVM -<br><br>I noticed there is an efficient BumpPtrAllocator - however, I can't figure out how I can allocate IR objects using that allocator.  It looks like all the factory methods use regular new/delete.  <br>
<br>I'm sure someone BumpPtrAllocator is there for a good reason, and someone here has thought of this use case before.  Anyone want
to comment?  Is this a bad idea?  Do the optimization passes generate a
ton of garbage that needs to be cleaned up immediately?  <br><br>Or would it be
reasonably safe to use the BumpPtrAllocator during IR creation,
optimization, and codegen, and just delete all the garbage when done with codegen?   <br><br></div>