llvm.org GIT mirror llvm / 9832f7d
[NVPTX] Handle all possible vector types in getSetCCResultType, not just the ones representable as MVTs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211947 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Holewinski 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
201201 /// getFunctionAlignment - Return the Log2 alignment of this function.
202202 unsigned getFunctionAlignment(const Function *F) const;
203203
204 EVT getSetCCResultType(LLVMContext &, EVT VT) const override {
204 EVT getSetCCResultType(LLVMContext &Ctx, EVT VT) const override {
205205 if (VT.isVector())
206 return MVT::getVectorVT(MVT::i1, VT.getVectorNumElements());
206 return EVT::getVectorVT(Ctx, MVT::i1, VT.getVectorNumElements());
207207 return MVT::i1;
208208 }
209209