Cleanup of affinity hierarchy code.
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 10 Sep 2015 19:22:07 +0000 (19:22 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 10 Sep 2015 19:22:07 +0000 (19:22 +0000)
commit1707836b68c6462d2050a8d2cc29e0950eab87ca
tree7fae7025796cf41f2d7f42c37f29d6ad8fab2a07
parent6f940873296855895be748e1ffa9f67cac8948a4
Cleanup of affinity hierarchy code.

Some of this is improvement to code suggested by Hal Finkel. Four changes here:
1.Cleanup of hierarchy code to handle all hierarchy cases whether affinity is available or not
2.Separated this and other classes and common functions out to a header file
3.Added a destructor-like fini function for the hierarchy (and call in __kmp_cleanup)
4.Remove some redundant code that is hopefully no longer needed

Differential Revision: http://reviews.llvm.org/D12449

llvm-svn: 247326
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_affinity.cpp
openmp/runtime/src/kmp_affinity.h [new file with mode: 0644]
openmp/runtime/src/kmp_runtime.c