Home
last modified time | relevance | path

Searched refs:SamplingVar (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp740 auto *SamplingVar = in doSampling() local
742 assert(SamplingVar && "SamplingVar not set properly"); in doSampling()
750 auto *LoadSamplingVar = CondBuilder.CreateLoad(SamplingVarTy, SamplingVar); in doSampling()
756 SamplingVarIncr = IncBuilder.CreateStore(NewSamplingVarVal, SamplingVar); in doSampling()
768 SamplingVarIncr = IncBuilder.CreateStore(NewSamplingVarVal, SamplingVar); in doSampling()
789 ResetBuilder.CreateStore(GetConstant(ResetBuilder, 0), SamplingVar); in doSampling()
2147 auto SamplingVar = new GlobalVariable( in createProfileSamplingVar() local
2149 SamplingVar->setVisibility(GlobalValue::DefaultVisibility); in createProfileSamplingVar()
2150 SamplingVar->setThreadLocal(true); in createProfileSamplingVar()
2153 SamplingVar->setLinkage(GlobalValue::ExternalLinkage); in createProfileSamplingVar()
[all …]