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

Function irTLSModelFromThreadLocal

asm/helper.go:704–712  ·  view source on GitHub ↗

irTLSModelFromThreadLocal returns the IR TLS model corresponding to the given AST thread local storage.

(old ast.ThreadLocal)

Source from the content-addressed store, hash-verified

702// irTLSModelFromThreadLocal returns the IR TLS model corresponding to the given
703// AST thread local storage.
704func irTLSModelFromThreadLocal(old ast.ThreadLocal) enum.TLSModel {
705 if n, ok := old.Model(); ok {
706 // e.g. thread_local(initialexec)
707 return asmenum.TLSModelFromString(n.Text())
708 }
709 // If no explicit model is given, the "general dynamic" model is used.
710 // thread_local
711 return enum.TLSModelGeneric
712}
713
714// irUnwindTarget returns the IR unwind target corresponding to the given AST
715// unwind target.

Callers 3

irGlobalMethod · 0.85
irAliasMethod · 0.85
irIFuncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…