[PATCH] D69139: [Types] Define a changeBitWidth for Types and make use of it.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 14:37:22 PDT 2019
lebedev.ri added a comment.
Nice, i like this!
This doesn't change the bitwidth of the type it is called on though, it returns new type,
so i think the name needs a bit more thought (i can't give a better suggestion right now)
================
Comment at: llvm/include/llvm/IR/Type.h:386
+ /// Given an integer or vector type, change the bitwidth to NewBitwidth,
+ /// whilst keeping the old number of lanes.
----------------
s/the bitwidth/the lane bitwidth/
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69139/new/
https://reviews.llvm.org/D69139
More information about the llvm-commits
mailing list