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

Method LLString

ir/metadata/metadata.go:88–102  ·  view source on GitHub ↗

LLString returns the LLVM syntax representation of the metadata tuple. '!' MDFields

()

Source from the content-addressed store, hash-verified

86//
87// '!' MDFields
88func (md *Tuple) LLString() string {
89 buf := &strings.Builder{}
90 if md.Distinct {
91 buf.WriteString("distinct ")
92 }
93 buf.WriteString("!{")
94 for i, field := range md.Fields {
95 if i != 0 {
96 buf.WriteString(", ")
97 }
98 buf.WriteString(field.String())
99 }
100 buf.WriteString("}")
101 return buf.String()
102}
103
104// SetDistinct specifies whether the metadata definition is dinstict.
105func (md *Tuple) SetDistinct(distinct bool) {

Callers 1

IdentMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected