diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-06-03 18:41:22 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-06-03 18:41:22 +0000 | 
| commit | 8508c1db98d5ee328c3500cb4c471cb526e3a345 (patch) | |
| tree | 1477e8f9c3c81bac89c756c6a3ca92225dca7f62 /clang/lib/CodeGen | |
| parent | 7c4446ce0c4c024c9fa15ae07f3165ae29fabbe5 (diff) | |
| download | bcm5719-llvm-8508c1db98d5ee328c3500cb4c471cb526e3a345.tar.gz bcm5719-llvm-8508c1db98d5ee328c3500cb4c471cb526e3a345.zip | |
Revert r333848 "[X86] Pass ArrayRef instead of SmallVectorImpl& to the X86 builtin helper functions. NFC"
Looks like I missed some changes to make this work.
llvm-svn: 333850
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 72e2ccea1f8..e078a091a72 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -8263,32 +8263,32 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask,  }  static Value *EmitX86MaskedStore(CodeGenFunction &CGF, -                                 ArrayRef<Value *> Ops, +                                 SmallVectorImpl<Value *> &Ops,                                   unsigned Align) {    // Cast the pointer to right type. -  Value *Ptr = CGF.Builder.CreateBitCast(Ops[0], +  Ops[0] = CGF.Builder.CreateBitCast(Ops[0],                                 llvm::PointerType::getUnqual(Ops[1]->getType()));    Value *MaskVec = getMaskVecValue(CGF, Ops[2],                                     Ops[1]->getType()->getVectorNumElements()); -  return CGF.Builder.CreateMaskedStore(Ops[1], Ptr, Align, MaskVec); +  return CGF.Builder.CreateMaskedStore(Ops[1], Ops[0], Align, MaskVec);  }  static Value *EmitX86MaskedLoad(CodeGenFunction &CGF, -                                ArrayRef<Value *> Ops, unsigned Align) { +                                SmallVectorImpl<Value *> &Ops, unsigned Align) {    // Cast the pointer to right type. -  Value *Ptr = CGF.Builder.CreateBitCast(Ops[0], +  Ops[0] = CGF.Builder.CreateBitCast(Ops[0],                                 llvm::PointerType::getUnqual(Ops[1]->getType()));    Value *MaskVec = getMaskVecValue(CGF, Ops[2],                                     Ops[1]->getType()->getVectorNumElements()); -  return CGF.Builder.CreateMaskedLoad(Ptr, Align, MaskVec, Ops[1]); +  return CGF.Builder.CreateMaskedLoad(Ops[0], Align, MaskVec, Ops[1]);  }  static Value *EmitX86MaskLogic(CodeGenFunction &CGF, Instruction::BinaryOps Opc, -                              unsigned NumElts, ArrayRef<Value *> Ops, +                              unsigned NumElts, SmallVectorImpl<Value *> &Ops,                                bool InvertLHS = false) {    Value *LHS = getMaskVecValue(CGF, Ops[0], NumElts);    Value *RHS = getMaskVecValue(CGF, Ops[1], NumElts); @@ -8301,7 +8301,7 @@ static Value *EmitX86MaskLogic(CodeGenFunction &CGF, Instruction::BinaryOps Opc,  }  static Value *EmitX86SubVectorBroadcast(CodeGenFunction &CGF, -                                        ArrayRef<Value *> Ops, +                                        SmallVectorImpl<Value *> &Ops,                                          llvm::Type *DstTy,                                          unsigned SrcSizeInBits,                                          unsigned Align) { | 

