Skip to content

Commit d3c9b57

Browse files
committed
Add docs forBuilder::build_zext
1 parent 3103553 commit d3c9b57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ impl Builder {
112112
pub fn build_bit_cast(&self, value: &Value, dest: &Type) -> &Value {
113113
unsafe { core::LLVMBuildBitCast(self.into(), value.into(), dest.into(), NULL_NAME.as_ptr()).into() }
114114
}
115+
/// Build an instruction to bitcast in integer into a pointer.
115116
pub fn build_int_to_ptr(&self, value: &Value, dest: &Type) -> &Value {
116117
unsafe { core::LLVMBuildIntToPtr(self.into(), value.into(), dest.into(), NULL_NAME.as_ptr()).into() }
117118
}
119+
/// Build an instruction that zero extends its operand to the type `dest`.
118120
pub fn build_zext(&self, value: &Value, dest: &Type) -> &Value {
119121
unsafe { core::LLVMBuildZExtOrBitCast(self.into(), value.into(), dest.into(), NULL_NAME.as_ptr()).into() }
120122
}

0 commit comments

Comments
 (0)