Documentation
¶
Overview ¶
LITTEST
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Use ¶
func Use(obj Object)
Use calls the unexported method through interface CHECK-LABEL: define void @"{{.*}}.Use"(%"{{.*}}.iface" %0){{.*}} { CHECK: %[[OBJ_DATA:[0-9]+]] = call ptr @"{{.*}}.IfacePtrDataBuffer"(%"{{.*}}.iface" %0, ptr %{{[0-9]+}}) CHECK: insertvalue { ptr, ptr } %{{[0-9]+}}, ptr %[[OBJ_DATA]], 1
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base implements Object
func NewBase ¶
CHECK-LABEL: define ptr @"{{.*}}.NewBase"(%"{{.*}}.String" %0){{.*}} { CHECK: [[NEW_BASE:%[0-9]+]] = call ptr @"{{.*}}/runtime/internal/runtime.AllocZ"(i64 16) CHECK-NEXT: [[NEW_BASE_NAME:%[0-9]+]] = getelementptr inbounds nuw %"{{.*}}.Base", ptr [[NEW_BASE]], i32 0, i32 0 CHECK-NEXT: store %"{{.*}}/runtime/internal/runtime.String" %0, ptr [[NEW_BASE_NAME]] CHECK-NEXT: ret ptr [[NEW_BASE]]