This is an archive of the discontinued LLVM Phabricator instance.

Add TargetInfo for 32-bit and 64-bit RenderScript
ClosedPublic

Authored by pirama on Jun 14 2016, 12:21 PM.

Details

Summary

The TargetInfo for 'renderscript32' and 'renderscript64' ArchTypes are
subclasses of ARMleTargetInfo and AArch64leTargetInfo respectively.

RenderScript32TargetInfo modifies the ARM ABI to set LongWidth and
LongAlign to be 64-bits. Other than this modification, the underlying
TargetInfo base classes is initialized as if they have "armv7" and
"aarch64" architecture type respectively.

Diff Detail

Repository
rL LLVM

Event Timeline

pirama updated this revision to Diff 60719.Jun 14 2016, 12:21 PM
pirama retitled this revision from to Add TargetInfo for 32-bit and 64-bit RenderScript.
pirama updated this object.
pirama added reviewers: rsmith, echristo.
pirama added subscribers: srhines, cfe-commits.

D21333 is the corresponding patch to LLVM

pirama updated this revision to Diff 60735.Jun 14 2016, 1:22 PM
  • revise test
echristo accepted this revision.Jun 30 2016, 4:33 PM
echristo edited edge metadata.

Please reformat with clang-format and then OK.

-eric

This revision is now accepted and ready to land.Jun 30 2016, 4:33 PM
pirama updated this revision to Diff 62520.Jul 1 2016, 12:14 PM
pirama edited edge metadata.

Reformatted with clang-format for just the parts I added. I ignored
clang-format-suggested changes in code unrelated to this patch.

Is there a policy or practise on periodically fixing format-related issues? If
not, I can format this file in an one-off basis in a separate patch.

Reformatted with clang-format for just the parts I added. I ignored
clang-format-suggested changes in code unrelated to this patch.

Yep.

Is there a policy or practise on periodically fixing format-related issues? If
not, I can format this file in an one-off basis in a separate patch.

In general just format the lines you change and surrounding ones if it makes sense to reflow a function.

Thanks!

-eric

This revision was automatically updated to reflect the committed changes.