diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Instructions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 6ee1831..bc4abc9 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -167,6 +167,11 @@ public: : AllocationInst(Ty, ArraySize, Alloca, Align, NameStr, InsertAtEnd) {} virtual AllocaInst *clone() const; + + /// isStaticAlloca - Return true if this alloca is in the entry block of the + /// function and is a constant size. If so, the code generator will fold it + /// into the prolog/epilog code, so it is basically free. + bool isStaticAlloca() const; // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const AllocaInst *) { return true; } |