Page MenuHomePhabricator

[HIP] Clean up llvm intrinsics using __asm
ClosedPublic

Authored by ashi1 on May 13 2021, 10:59 AM.

Details

Summary

Instead of using inline asm, use clang builtins
for llvm intrinsics.

Diff Detail

Repository
rC Clang

Unit TestsFailed

TimeTest
240 msx64 windows > Clang.CodeGenCXX::thunk-wrong-return-type.cpp
Script: -- : 'RUN: at line 1'; c:\ws\w16e2-2\llvm-project\premerge-checks\build\bin\clang.exe -cc1 -internal-isystem c:\ws\w16e2-2\llvm-project\premerge-checks\build\lib\clang\13.0.0\include -nostdsysteminc -emit-llvm-only -triple x86_64-pc-windows-gnu C:\ws\w16e2-2\llvm-project\premerge-checks\clang\test\CodeGenCXX\thunk-wrong-return-type.cpp -emit-llvm -o - C:\ws\w16e2-2\llvm-project\premerge-checks\clang\test\CodeGenCXX\thunk-wrong-return-type.cpp | c:\ws\w16e2-2\llvm-project\premerge-checks\build\bin\filecheck.exe C:\ws\w16e2-2\llvm-project\premerge-checks\clang\test\CodeGenCXX\thunk-wrong-return-type.cpp
180 msx64 windows > LLVM.Other::new-pm-lto-defaults.ll
Script: -- : 'RUN: at line 5'; c:\ws\w16e2-2\llvm-project\premerge-checks\build\bin\opt.exe -disable-verify -verify-cfg-preserved=0 -debug-pass-manager -passes='lto<O1>' -S C:\ws\w16e2-2\llvm-project\premerge-checks\llvm\test\Other\new-pm-lto-defaults.ll 2>&1 | c:\ws\w16e2-2\llvm-project\premerge-checks\build\bin\filecheck.exe C:\ws\w16e2-2\llvm-project\premerge-checks\llvm\test\Other\new-pm-lto-defaults.ll --check-prefix=CHECK-O --check-prefix=CHECK-O1

Event Timeline

ashi1 requested review of this revision.May 13 2021, 10:59 AM
ashi1 created this revision.
This revision is now accepted and ready to land.May 13 2021, 11:14 AM
yaxunl accepted this revision.May 13 2021, 11:42 AM

LGTM. Thanks.

This revision was landed with ongoing or failed builds.May 13 2021, 11:56 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2021, 11:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript