Documentation
¶
Index ¶
- Constants
- type AttrKind
- type CallInstr
- type FuncInfo
- type Mode
- type Transformer
- func (p *Transformer) Alignof(typ llvm.Type) int
- func (p *Transformer) GetFuncInfo(ctx llvm.Context, typ llvm.Type) (info FuncInfo)
- func (p *Transformer) GetTypeInfo(ctx llvm.Context, ftyp llvm.Type, typ llvm.Type, index int) *TypeInfo
- func (p *Transformer) IsWrapType(ctx llvm.Context, ftyp llvm.Type, typ llvm.Type, index int) bool
- func (p *Transformer) SetSkipFuncs(names []string)
- func (p *Transformer) Sizeof(typ llvm.Type) int
- func (p *Transformer) TransformModule(path string, m llvm.Module)
- type TypeInfo
- type TypeInfo386
- type TypeInfoAmd64
- type TypeInfoArm
- type TypeInfoArm64
- type TypeInfoEsp32
- type TypeInfoRiscv32
- func (p *TypeInfoRiscv32) GetTypeInfo(ctx llvm.Context, ftyp llvm.Type, typ llvm.Type, index int) *TypeInfo
- func (p *TypeInfoRiscv32) IsWrapType(ctx llvm.Context, ftyp llvm.Type, typ llvm.Type, index int) bool
- func (p *TypeInfoRiscv32) SkipEmptyParams() bool
- func (p *TypeInfoRiscv32) SupportByVal() bool
- type TypeInfoRiscv64
- func (p *TypeInfoRiscv64) GetTypeInfo(ctx llvm.Context, ftyp llvm.Type, typ llvm.Type, index int) *TypeInfo
- func (p *TypeInfoRiscv64) IsWrapType(ctx llvm.Context, ftyp llvm.Type, typ llvm.Type, index int) bool
- func (p *TypeInfoRiscv64) SkipEmptyParams() bool
- func (p *TypeInfoRiscv64) SupportByVal() bool
- type TypeInfoSys
- type TypeInfoWasm
Constants ¶
const ( MABI_LP64 = "lp64" MABI_LP64F = "lp64f" MABI_LP64D = "lp64d" )
const ( MABI_ILP32 = "ilp32" MABI_ILP32F = "ilp32f" MABI_ILP32D = "ilp32d" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrKind ¶
type AttrKind int
const ( AttrNone AttrKind = iota // keep org type AttrVoid // return type void / param type void (size == 0) skip AttrPointer // type => type* AttrWidthType // type => width int i16/i24/i32/i40/i48/i56/i64 float/double AttrWidthType2 // type => width two int {i64,i16} float/double AttrExtract // extract struct type )
type FuncInfo ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
func NewTransformer ¶
func (*Transformer) GetFuncInfo ¶
func (*Transformer) GetTypeInfo ¶
func (*Transformer) IsWrapType ¶
func (*Transformer) SetSkipFuncs ¶
func (p *Transformer) SetSkipFuncs(names []string)
SetSkipFuncs configures function full names that should not be transformed. Names are LLVM symbol names (for example, "internal/bytealg.Compare"). The list is applied to both function signature rewriting and call-site rewriting.
func (*Transformer) TransformModule ¶
func (p *Transformer) TransformModule(path string, m llvm.Module)
type TypeInfo386 ¶
type TypeInfo386 struct {
*Transformer
}
func (*TypeInfo386) GetTypeInfo ¶
func (*TypeInfo386) IsWrapType ¶
func (*TypeInfo386) SkipEmptyParams ¶
func (p *TypeInfo386) SkipEmptyParams() bool
func (*TypeInfo386) SupportByVal ¶
func (p *TypeInfo386) SupportByVal() bool
type TypeInfoAmd64 ¶
type TypeInfoAmd64 struct {
*Transformer
}
func (*TypeInfoAmd64) GetTypeInfo ¶
func (*TypeInfoAmd64) IsWrapType ¶
func (*TypeInfoAmd64) SkipEmptyParams ¶
func (p *TypeInfoAmd64) SkipEmptyParams() bool
func (*TypeInfoAmd64) SupportByVal ¶
func (p *TypeInfoAmd64) SupportByVal() bool
type TypeInfoArm ¶
type TypeInfoArm struct {
*Transformer
}
func (*TypeInfoArm) GetTypeInfo ¶
func (*TypeInfoArm) IsWrapType ¶
func (*TypeInfoArm) SkipEmptyParams ¶
func (p *TypeInfoArm) SkipEmptyParams() bool
func (*TypeInfoArm) SupportByVal ¶
func (p *TypeInfoArm) SupportByVal() bool
type TypeInfoArm64 ¶
type TypeInfoArm64 struct {
*Transformer
}
func (*TypeInfoArm64) GetTypeInfo ¶
func (*TypeInfoArm64) IsWrapType ¶
func (*TypeInfoArm64) SkipEmptyParams ¶
func (p *TypeInfoArm64) SkipEmptyParams() bool
func (*TypeInfoArm64) SupportByVal ¶
func (p *TypeInfoArm64) SupportByVal() bool
type TypeInfoEsp32 ¶
type TypeInfoEsp32 struct {
*Transformer
}
func (*TypeInfoEsp32) GetTypeInfo ¶
func (*TypeInfoEsp32) IsWrapType ¶
func (*TypeInfoEsp32) SkipEmptyParams ¶
func (p *TypeInfoEsp32) SkipEmptyParams() bool
func (*TypeInfoEsp32) SupportByVal ¶
func (p *TypeInfoEsp32) SupportByVal() bool
type TypeInfoRiscv32 ¶
type TypeInfoRiscv32 struct {
*Transformer
// contains filtered or unexported fields
}
func (*TypeInfoRiscv32) GetTypeInfo ¶
func (*TypeInfoRiscv32) IsWrapType ¶
func (*TypeInfoRiscv32) SkipEmptyParams ¶
func (p *TypeInfoRiscv32) SkipEmptyParams() bool
func (*TypeInfoRiscv32) SupportByVal ¶
func (p *TypeInfoRiscv32) SupportByVal() bool
type TypeInfoRiscv64 ¶
type TypeInfoRiscv64 struct {
*Transformer
// contains filtered or unexported fields
}
func (*TypeInfoRiscv64) GetTypeInfo ¶
func (*TypeInfoRiscv64) IsWrapType ¶
func (*TypeInfoRiscv64) SkipEmptyParams ¶
func (p *TypeInfoRiscv64) SkipEmptyParams() bool
func (*TypeInfoRiscv64) SupportByVal ¶
func (p *TypeInfoRiscv64) SupportByVal() bool
type TypeInfoSys ¶
type TypeInfoWasm ¶
type TypeInfoWasm struct {
*Transformer
}
func (*TypeInfoWasm) GetTypeInfo ¶
func (*TypeInfoWasm) IsWrapType ¶
func (*TypeInfoWasm) SkipEmptyParams ¶
func (p *TypeInfoWasm) SkipEmptyParams() bool
func (*TypeInfoWasm) SupportByVal ¶
func (p *TypeInfoWasm) SupportByVal() bool