r238538 - wip: Remove some unused functions

Justin Bogner mail at justinbogner.com
Thu May 28 20:38:16 PDT 2015


Justin Bogner <mail at justinbogner.com> writes:
> Author: bogner
> Date: Thu May 28 21:42:14 2015
> New Revision: 238538
>
> URL: http://llvm.org/viewvc/llvm-project?rev=238538&view=rev
> Log:
> wip: Remove some unused functions

This isn't a work-in-progress, I just forgot to update the commit
message. Oops.

> Modified:
>     cfe/trunk/lib/CodeGen/CGBuiltin.cpp
>     cfe/trunk/lib/CodeGen/CodeGenFunction.h
>
> Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=238538&r1=238537&r2=238538&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Thu May 28 21:42:14 2015
> @@ -4001,38 +4001,6 @@ Value *CodeGenFunction::vectorWrapScalar
>    return Op;
>  }
>  
> -Value *CodeGenFunction::
> -emitVectorWrappedScalar8Intrinsic(unsigned Int, SmallVectorImpl<Value*> &Ops,
> -                                  const char *Name) {
> -  // i8 is not a legal types for AArch64, so we can't just use
> -  // a normal overloaded intrinsic call for these scalar types. Instead
> -  // we'll build 64-bit vectors w/ lane zero being our input values and
> -  // perform the operation on that. The back end can pattern match directly
> -  // to the scalar instruction.
> -  Ops[0] = vectorWrapScalar8(Ops[0]);
> -  Ops[1] = vectorWrapScalar8(Ops[1]);
> -  llvm::Type *VTy = llvm::VectorType::get(Int8Ty, 8);
> -  Value *V = EmitNeonCall(CGM.getIntrinsic(Int, VTy), Ops, Name);
> -  Constant *CI = ConstantInt::get(SizeTy, 0);
> -  return Builder.CreateExtractElement(V, CI, "lane0");
> -}
> -
> -Value *CodeGenFunction::
> -emitVectorWrappedScalar16Intrinsic(unsigned Int, SmallVectorImpl<Value*> &Ops,
> -                                   const char *Name) {
> -  // i16 is not a legal types for AArch64, so we can't just use
> -  // a normal overloaded intrinsic call for these scalar types. Instead
> -  // we'll build 64-bit vectors w/ lane zero being our input values and
> -  // perform the operation on that. The back end can pattern match directly
> -  // to the scalar instruction.
> -  Ops[0] = vectorWrapScalar16(Ops[0]);
> -  Ops[1] = vectorWrapScalar16(Ops[1]);
> -  llvm::Type *VTy = llvm::VectorType::get(Int16Ty, 4);
> -  Value *V = EmitNeonCall(CGM.getIntrinsic(Int, VTy), Ops, Name);
> -  Constant *CI = ConstantInt::get(SizeTy, 0);
> -  return Builder.CreateExtractElement(V, CI, "lane0");
> -}
> -
>  Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
>                                                 const CallExpr *E) {
>    unsigned HintID = static_cast<unsigned>(-1);
>
> Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=238538&r1=238537&r2=238538&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original)
> +++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Thu May 28 21:42:14 2015
> @@ -2563,14 +2563,7 @@ public:
>    // Helper functions for EmitAArch64BuiltinExpr.
>    llvm::Value *vectorWrapScalar8(llvm::Value *Op);
>    llvm::Value *vectorWrapScalar16(llvm::Value *Op);
> -  llvm::Value *emitVectorWrappedScalar8Intrinsic(
> -      unsigned Int, SmallVectorImpl<llvm::Value *> &Ops, const char *Name);
> -  llvm::Value *emitVectorWrappedScalar16Intrinsic(
> -      unsigned Int, SmallVectorImpl<llvm::Value *> &Ops, const char *Name);
>    llvm::Value *EmitAArch64BuiltinExpr(unsigned BuiltinID, const CallExpr *E);
> -  llvm::Value *EmitNeon64Call(llvm::Function *F,
> -                              llvm::SmallVectorImpl<llvm::Value *> &O,
> -                              const char *name);
>  
>    llvm::Value *BuildVector(ArrayRef<llvm::Value*> Ops);
>    llvm::Value *EmitX86BuiltinExpr(unsigned BuiltinID, const CallExpr *E);
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list