diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/Targets/X86.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/Targets/X86.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/Targets/X86.cpp b/contrib/llvm-project/clang/lib/CodeGen/Targets/X86.cpp index d053f41ab168..2291c991fb11 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/Targets/X86.cpp +++ b/contrib/llvm-project/clang/lib/CodeGen/Targets/X86.cpp @@ -40,6 +40,11 @@ static llvm::Type* X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF, return llvm::Type::getX86_MMXTy(CGF.getLLVMContext()); } + if (Constraint == "k") { + llvm::Type *Int1Ty = llvm::Type::getInt1Ty(CGF.getLLVMContext()); + return llvm::FixedVectorType::get(Int1Ty, Ty->getScalarSizeInBits()); + } + // No operation needed return Ty; } |