[LLVMdev] Alloca instructions in NON-entry block?

Paul J. Lucas
Thu, 29 Mar 2012 16:32:06 -0000

The Kaleidoscope example here:

	http://llvm.org/docs/tutorial/LangImpl7.html#adjustments

defines a CreateEntryBlockAlloca() helper function that "ensures that the
allocas are created in the entry block of the function."

It's kid of implied, but I thought I'd ask explicitly: *must* alloca
instructions be created in the entry block of a function?

- Paul