forked from OSchip/llvm-project
[SVE] Remove calls to getBitWidth from clang
Reviewers: efriedma Reviewed By: efriedma Subscribers: tschuett, rkruppe, psnobl, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77903
This commit is contained in:
parent
3ea1c62cba
commit
670f2f694b
|
@ -970,7 +970,8 @@ static llvm::Type* X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF,
|
||||||
.Cases("y", "&y", "^Ym", true)
|
.Cases("y", "&y", "^Ym", true)
|
||||||
.Default(false);
|
.Default(false);
|
||||||
if (IsMMXCons && Ty->isVectorTy()) {
|
if (IsMMXCons && Ty->isVectorTy()) {
|
||||||
if (cast<llvm::VectorType>(Ty)->getBitWidth() != 64) {
|
if (cast<llvm::VectorType>(Ty)->getPrimitiveSizeInBits().getFixedSize() !=
|
||||||
|
64) {
|
||||||
// Invalid MMX constraint
|
// Invalid MMX constraint
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -2260,7 +2261,7 @@ public:
|
||||||
if (info.isDirect()) {
|
if (info.isDirect()) {
|
||||||
llvm::Type *ty = info.getCoerceToType();
|
llvm::Type *ty = info.getCoerceToType();
|
||||||
if (llvm::VectorType *vectorTy = dyn_cast_or_null<llvm::VectorType>(ty))
|
if (llvm::VectorType *vectorTy = dyn_cast_or_null<llvm::VectorType>(ty))
|
||||||
return (vectorTy->getBitWidth() > 128);
|
return vectorTy->getPrimitiveSizeInBits().getFixedSize() > 128;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue