diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2016-02-17 22:51:03 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2016-02-17 22:51:03 +0000 |
commit | 053ac453b9f8e6045fd915abde13663636383429 (patch) | |
tree | 11e543ce651600bd9337e89f9bfe055d4b0fae0c /llvm/include/llvm-c/Core.h | |
parent | 2a9ac0d2c538a97711bb39f44551a7836ca07fb5 (diff) | |
download | bcm5719-llvm-053ac453b9f8e6045fd915abde13663636383429.tar.gz bcm5719-llvm-053ac453b9f8e6045fd915abde13663636383429.zip |
Add support for memory operations (load/store/gep) in C API echo test
Summary: As per title.
Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D17245
llvm-svn: 261174
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 2e0a8b4f285..c3dacc5b08f 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -2561,6 +2561,29 @@ LLVMTypeRef LLVMGetAllocatedType(LLVMValueRef Alloca); */ /** + * @defgroup LLVMCCoreValueInstructionGetElementPointer GEPs + * + * Functions in this group only apply to instructions that map to + * llvm::GetElementPtrInst instances. + * + * @{ + */ + +/** + * Check whether the given GEP instruction is inbounds. + */ +LLVMBool LLVMIsInBounds(LLVMValueRef GEP); + +/** + * Set the given GEP instruction to be inbounds or not. + */ +void LLVMSetIsInBounds(LLVMValueRef GEP, LLVMBool b); + +/** + * @} + */ + +/** * @defgroup LLVMCCoreValueInstructionPHINode PHI Nodes * * Functions in this group only apply to instructions that map to @@ -2606,6 +2629,7 @@ LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned Index); /** * Obtain the number of indices. + * NB: This also works on GEP. */ unsigned LLVMGetNumIndices(LLVMValueRef Inst); |