[LLVMdev] Alloca instructions in NON-entry block?

Paul J. Lucas paul at lucasmail.org
Thu Mar 29 09:32:06 PDT 2012


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





More information about the llvm-dev mailing list