[all-commits] [llvm/llvm-project] 25c218: [MLIR] Add function to create BFloat16 array attri...
Ashay Rane via All-commits
all-commits at lists.llvm.org
Tue Apr 19 12:27:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 25c218be36d73bb3e6ddd3f3b441b508ab5ff66f
https://github.com/llvm/llvm-project/commit/25c218be36d73bb3e6ddd3f3b441b508ab5ff66f
Author: Ashay Rane <ashay at users.noreply.github.com>
Date: 2022-04-19 (Tue, 19 Apr 2022)
Changed paths:
M mlir/include/mlir-c/BuiltinAttributes.h
M mlir/lib/CAPI/IR/BuiltinAttributes.cpp
M mlir/test/CAPI/ir.c
Log Message:
-----------
[MLIR] Add function to create BFloat16 array attribute
This patch adds a new function `mlirDenseElementsAttrBFloat16Get()`,
which accepts the shaped type, the number of BFloat16 values, and a
pointer to an array of BFloat16 values, each of which is a `uint16_t`
value.
Reviewed By: stellaraccident
Differential Revision: https://reviews.llvm.org/D123981
More information about the All-commits
mailing list