We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4615c39 commit cc074f2Copy full SHA for cc074f2
z_llvmext.go
@@ -61,6 +61,31 @@ func CreateFCmp(b Builder, op FloatPredicate, lhs, rhs Value) (v Value) {
61
return
62
}
63
64
+func CreateIntCast(b Builder, v Value, t Type) (r Value) {
65
+ r.C = C.LLVMBuildIntCast(b.C, v.C, t.C, &emptyCStr[0])
66
+ return
67
+}
68
+
69
+func CreateTrunc(b Builder, v Value, t Type) (r Value) {
70
+ r.C = C.LLVMBuildTrunc(b.C, v.C, t.C, &emptyCStr[0])
71
72
73
74
+func CreatePtrToInt(b Builder, v Value, t Type) (r Value) {
75
+ r.C = C.LLVMBuildPtrToInt(b.C, v.C, t.C, &emptyCStr[0])
76
77
78
79
+func CreateIntToPtr(b Builder, v Value, t Type) (r Value) {
80
+ r.C = C.LLVMBuildIntToPtr(b.C, v.C, t.C, &emptyCStr[0])
81
82
83
84
+func CreatePointerCast(b Builder, v Value, t Type) (r Value) {
85
+ r.C = C.LLVMBuildPointerCast(b.C, v.C, t.C, &emptyCStr[0])
86
87
88
89
func CreateAlloca(b Builder, t Type) (v Value) {
90
v.C = C.LLVMBuildAlloca(b.C, t.C, &emptyCStr[0])
91
0 commit comments