diff options
| author | Amaury Sechet <deadalnix@gmail.com> | 2016-02-09 22:50:53 +0000 |
|---|---|---|
| committer | Amaury Sechet <deadalnix@gmail.com> | 2016-02-09 22:50:53 +0000 |
| commit | 1dcf577a80258b11c1e87640c8d05526dc5c87fd (patch) | |
| tree | b63a673adea295d84b681c94dc1ce90c05c41579 /llvm/include/llvm-c | |
| parent | df49d1bbb24d9e442c6f7cfeb11085d102412618 (diff) | |
| download | bcm5719-llvm-1dcf577a80258b11c1e87640c8d05526dc5c87fd.tar.gz bcm5719-llvm-1dcf577a80258b11c1e87640c8d05526dc5c87fd.zip | |
Add C binding for AllocaInst::getAllocatedType
Summary:
Comes with an awesome test.
Depends on D16912
Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D16942
llvm-svn: 260313
Diffstat (limited to 'llvm/include/llvm-c')
| -rw-r--r-- | llvm/include/llvm-c/Core.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 8e644c3cc9d..27eb7aef3fc 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -2506,6 +2506,24 @@ LLVMBasicBlockRef LLVMGetSwitchDefaultDest(LLVMValueRef SwitchInstr); */ /** + * @defgroup LLVMCCoreValueInstructionAlloca Allocas + * + * Functions in this group only apply to instructions that map to + * llvm::AllocaInst instances. + * + * @{ + */ + +/** + * Obtain the type that is being allocated by the alloca instruction. + */ +LLVMTypeRef LLVMGetAllocatedType(LLVMValueRef Alloca); + +/** + * @} + */ + +/** * @defgroup LLVMCCoreValueInstructionPHINode PHI Nodes * * Functions in this group only apply to instructions that map to |

