MCPcopy Create free account
hub / github.com/llir/llvm / LLString

Method LLString

ir/types/types.go:561–568  ·  view source on GitHub ↗

LLString returns the LLVM syntax representation of the definition of the type. scalable: '<' 'vscale' 'x' Len=UintLit 'x' Elem=Type '>' non-scalable: '<' Len=UintLit 'x' Elem=Type '>'

()

Source from the content-addressed store, hash-verified

559// scalable: '<' 'vscale' 'x' Len=UintLit 'x' Elem=Type '>'
560// non-scalable: '<' Len=UintLit 'x' Elem=Type '>'
561func (t *VectorType) LLString() string {
562 if t.Scalable {
563 // '<' 'vscale' 'x' Len=UintLit 'x' Elem=Type '>'
564 return fmt.Sprintf("<vscale x %d x %s>", t.Len, t.ElemType)
565 }
566 // '<' Len=UintLit 'x' Elem=Type '>'
567 return fmt.Sprintf("<%d x %s>", t.Len, t.ElemType)
568}
569
570// Name returns the type name of the type.
571func (t *VectorType) Name() string {

Callers 1

StringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected