@@ -3946,26 +3946,31 @@ const unsigned *LLVMGetIndices(LLVMValueRef Inst);
3946
3946
* An instruction builder represents a point within a basic block and is
3947
3947
* the exclusive means of building instructions using the C interface.
3948
3948
*
3949
- * Some insertion-position-setting functions have a "BeforeDbgRecords"
3950
- * parameter. Set to true if the insertion point should be in front of debug
3951
- * records, for example when inserting a phi. If you are trying to insert at the
3952
- * start of a block, or purposfully skip debug intrinsics to determine the
3953
- * insertion point for any other reason, then set it to true. Otherwise set it
3954
- * to false. Insertion-position-setting functions without the parameter always
3955
- * set the position after any attached debug records (i.e., as if
3956
- * "BeforeDbgRecords" is false).
3957
- *
3958
3949
* @{
3959
3950
*/
3960
3951
3961
3952
LLVMBuilderRef LLVMCreateBuilderInContext (LLVMContextRef C );
3962
3953
LLVMBuilderRef LLVMCreateBuilder (void );
3954
+ /**
3955
+ * Set the builder poisiton before Instr but after any attached debug records,
3956
+ * or if Instr is null set the position to the end of Block.
3957
+ */
3963
3958
void LLVMPositionBuilder (LLVMBuilderRef Builder , LLVMBasicBlockRef Block ,
3964
3959
LLVMValueRef Instr );
3960
+ /**
3961
+ * Set the builder poisiton before Instr and any attached debug records,
3962
+ * or if Instr is null set the position to the end of Block.
3963
+ */
3965
3964
void LLVMPositionBuilderBeforeDbgRecords (LLVMBuilderRef Builder ,
3966
3965
LLVMBasicBlockRef Block ,
3967
3966
LLVMValueRef Inst );
3967
+ /**
3968
+ * Set the builder poisiton before Instr but after any attached debug records.
3969
+ */
3968
3970
void LLVMPositionBuilderBefore (LLVMBuilderRef Builder , LLVMValueRef Instr );
3971
+ /**
3972
+ * Set the builder poisiton before Instr and any attached debug records.
3973
+ */
3969
3974
void LLVMPositionBuilderBeforeInstrAndDbgRecords (LLVMBuilderRef Builder ,
3970
3975
LLVMValueRef Instr );
3971
3976
void LLVMPositionBuilderAtEnd (LLVMBuilderRef Builder , LLVMBasicBlockRef Block );
0 commit comments