This is an archive of the discontinued LLVM Phabricator instance.

[X86][AMX] Assemble new AMX interface to an experiment header file.
Needs ReviewPublic

Authored by LuoYuanke on Feb 8 2021, 9:36 PM.

Details

Summary

Since the new AMX interface is not mature right now, we assemble the new
interface to an experiment file.

Diff Detail

Event Timeline

LuoYuanke created this revision.Feb 8 2021, 9:36 PM
LuoYuanke requested review of this revision.Feb 8 2021, 9:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2021, 9:36 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
pengfei added inline comments.Feb 8 2021, 9:56 PM
clang/lib/Headers/amxintrin_experiment.h
13

It's better to add such macros:

#ifndef __AMXINTRIN_EXPERIMENT_H
#define __AMXINTRIN_EXPERIMENT_H
#ifdef __x86_64__
clang/test/CodeGen/X86/amx_api.c
4–5

Better to add #include <immintrin.h> at the same time. Or to simplify, add it in amxintrin_experiment.h.

LuoYuanke updated this revision to Diff 322293.Feb 8 2021, 10:18 PM

Address Pengfei's comments.

clang/lib/Headers/amxintrin_experiment.h
13

Sure. Thanks.

Hi @craig.topper, this patch is intent upon LLVM 12.0 release stablization, since the new AMX interface is on development and has some know issues. Do you think it is necessary and enough for the release? If it does, we can commit it to both trunk and 12.x branch.