19 #include "llvm/Config/config.h" 21 #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_GETSPECIFIC) 31 static_assert(
sizeof(pthread_key_t) <=
sizeof(data),
"size too big");
32 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
33 int errorcode = pthread_key_create(key,
nullptr);
39 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
40 int errorcode = pthread_key_delete(*key);
46 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
47 int errorcode = pthread_setspecific(*key, d);
53 pthread_key_t* key =
reinterpret_cast<pthread_key_t*
>(&data);
54 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())