Lines Matching refs:flags
90 func (props *PgoProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Flags) Fl…
93 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
94 flags.Local.CFlags = append(flags.Local.CFlags, profileInstrumentFlag)
96 flags.Local.LdFlags = append(flags.Local.LdFlags, profileInstrumentFlag)
97 return flags
99 func (props *PgoProperties) addSamplingProfileGatherFlags(ctx ModuleContext, flags Flags) Flags {
100 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
101 return flags
153 flags := []string{props.profileUseFlag(ctx, file)}
154 flags = append(flags, profileUseOtherFlags...)
155 return flags
158 func (props *PgoProperties) addProfileUseFlags(ctx ModuleContext, flags Flags) Flags {
161 return flags
169 flags.Local.CFlags = append(flags.Local.CFlags, profileUseFlags...)
170 flags.Local.LdFlags = append(flags.Local.LdFlags, profileUseFlags...)
174 flags.CFlagsDeps = append(flags.CFlagsDeps, profileFilePath)
175 flags.LdFlagsDeps = append(flags.LdFlagsDeps, profileFilePath)
178 flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,-mllvm,-no-warn-sample-unused=true")
181 return flags
273 func (pgo *pgo) flags(ctx ModuleContext, flags Flags) Flags { func
275 return flags
315 return props.addInstrumentationProfileGatherFlags(ctx, flags)
317 flags = props.addSamplingProfileGatherFlags(ctx, flags)
319 flags = props.addSamplingProfileGatherFlags(ctx, flags)
323 flags = props.addProfileUseFlags(ctx, flags)
326 return flags