summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2013-10-29 09:02:02 +0000
committerAnders Waldenborg <anders@0x63.nu>2013-10-29 09:02:02 +0000
commit7959f209ba8e63ffaf7335842deddda4ca0480e7 (patch)
tree8f825bc532751682044f2d09ed4a800337a4a447 /include
parentfd4937fe2a0a2bbceeff8ba14e49411c0ae78855 (diff)
downloadllvm-7959f209ba8e63ffaf7335842deddda4ca0480e7.tar.gz
llvm-7959f209ba8e63ffaf7335842deddda4ca0480e7.tar.bz2
llvm-7959f209ba8e63ffaf7335842deddda4ca0480e7.tar.xz
llvm-c: Make LLVM{Get,Set}Alignment work on {Load,Store}Inst too
Patch by Peter Zotov Differential Revision: http://llvm-reviews.chandlerc.com/D1910 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/Core.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index b9bae7e7f2..004492b6ce 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -1665,8 +1665,33 @@ const char *LLVMGetSection(LLVMValueRef Global);
void LLVMSetSection(LLVMValueRef Global, const char *Section);
LLVMVisibility LLVMGetVisibility(LLVMValueRef Global);
void LLVMSetVisibility(LLVMValueRef Global, LLVMVisibility Viz);
-unsigned LLVMGetAlignment(LLVMValueRef Global);
-void LLVMSetAlignment(LLVMValueRef Global, unsigned Bytes);
+
+/**
+ * @defgroup LLVMCCoreValueWithAlignment Values with alignment
+ *
+ * Functions in this group only apply to values with alignment, i.e.
+ * global variables, load and store instructions.
+ */
+
+/**
+ * Obtain the preferred alignment of the value.
+ * @see llvm::LoadInst::getAlignment()
+ * @see llvm::StoreInst::getAlignment()
+ * @see llvm::GlobalValue::getAlignment()
+ */
+unsigned LLVMGetAlignment(LLVMValueRef V);
+
+/**
+ * Set the preferred alignment of the value.
+ * @see llvm::LoadInst::setAlignment()
+ * @see llvm::StoreInst::setAlignment()
+ * @see llvm::GlobalValue::setAlignment()
+ */
+void LLVMSetAlignment(LLVMValueRef V, unsigned Bytes);
+
+/**
+ * @}
+ */
/**
* @defgroup LLVMCoreValueConstantGlobalVariable Global Variables