[all-commits] [llvm/llvm-project] ca18fc: [IR] Change CreateStepVector to work with element ...
david-arm via All-commits
all-commits at lists.llvm.org
Wed Nov 17 02:48:19 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ca18fcc2c0645e3b76992da9e49a6fad2fc8ebb4
https://github.com/llvm/llvm-project/commit/ca18fcc2c0645e3b76992da9e49a6fad2fc8ebb4
Author: David Sherwood <david.sherwood at arm.com>
Date: 2021-11-17 (Wed, 17 Nov 2021)
Changed paths:
M llvm/lib/IR/IRBuilder.cpp
M llvm/unittests/IR/IRBuilderTest.cpp
Log Message:
-----------
[IR] Change CreateStepVector to work with element types smaller than i8
Currently the stepvector intrinsic only supports element types that
are integers of size 8 bits or more. This patch adds support for the
creation of stepvectors with smaller element types by creating
the intrinsic with i8 elements that we then truncate to the requested
size.
It's not currently possible to write a vectoriser test to exercise
this code path so I have added a unit test here:
llvm/unittests/IR/IRBuilderTest.cpp
Differential Revision: https://reviews.llvm.org/D113767
More information about the All-commits
mailing list