This is an archive of the discontinued LLVM Phabricator instance.

Add HSAIL support
AbandonedPublic

Authored by arsenm on Jun 19 2015, 6:52 PM.

Details

Reviewers
None
Summary

clang portion of initial HSAIL target

Diff Detail

Event Timeline

arsenm updated this revision to Diff 28071.Jun 19 2015, 6:52 PM
arsenm retitled this revision from to Add HSAIL support.
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
tstellarAMD added inline comments.
lib/Basic/Targets.cpp
5632

Do we need an HSAIL_CARRIZO target too?

5698

There should be more defines here, like in this patch: http://reviews.llvm.org/D10601

arsenm added inline comments.Jun 23 2015, 12:28 PM
lib/Basic/Targets.cpp
5632

There need to be a lot more than that, I have just been using kaveri as the example. Later all the other device names need to be added

arsenm updated this revision to Diff 29608.Jul 13 2015, 2:24 PM

Update for trunk

Can you please clarify me a bit where the actual device is needed/used (ATM only Kaveri) if the target is HSAIL, an "abstract machine"/IL? Just trying to get my head around on how the Clang/LLVM will work for HSAIL.

If it's for the extensions, why builtins-hsail.cl assumes gcn-specific builtins are found in the output even though mcpu is not set in the test command line?

arsenm added a comment.Aug 3 2015, 8:17 AM

Can you please clarify me a bit where the actual device is needed/used (ATM only Kaveri) if the target is HSAIL, an "abstract machine"/IL? Just trying to get my head around on how the Clang/LLVM will work for HSAIL.

If it's for the extensions, why builtins-hsail.cl assumes gcn-specific builtins are found in the output even though mcpu is not set in the test command line?

It's used for enabling extension and some performance hacks. kaveri enables gcn extensions, and disables a few things like negative offsets for addressing modes.

arsenm updated this revision to Diff 31825.Aug 11 2015, 9:55 AM

Update for trunk

Is there a matching HLC-HSAIL branch for the latest version of the patch? It doesn't work with with hsail-stable-3.7 anymore.

arsenm updated this revision to Diff 35157.Sep 18 2015, 9:08 PM

Update for trunk. Fix builtin_hsail_gridsize/builtin_hsail_gridsizel

arsenm abandoned this revision.Jan 31 2017, 4:58 PM