This patch implements the following aspects:
- It extends sema to check that a variable is not reference in both a map clause and firstprivate or private. This is needed to ensure correct functioning at codegen level, apart from being useful for the user.
- It implements firstprivate for target in codegen. The implementation applies to both host and nvptx devices.
- It adds regression tests for codegen of firstprivate, host and device side when using the host as device, and nvptx side.
Please note that the regression test for nvptx codegen is missing VLAs. This is because VLAs currently require saving and restoring the stack which appears not to be a supported operation by nvptx backend.
- It adds a check in sema regression tests for target map, firstprivate, and private clauses.