18 #include "llvm/Config/config.h" 20 #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_GETSPECIFIC) 30 static_assert(
sizeof(pthread_key_t) <=
sizeof(data),
"size too big");
31 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
32 int errorcode = pthread_key_create(key,
nullptr);
38 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
39 int errorcode = pthread_key_delete(*key);
45 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
46 int errorcode = pthread_setspecific(*key, d);
52 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
53 return pthread_getspecific(*key);
This class represents lattice values for constants.
virtual ~ThreadLocalImpl()
void setInstance(const void *d)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())