forked from OSchip/llvm-project
parent
db643d7678
commit
0f06606b68
|
@ -93,7 +93,7 @@ public:
|
|||
ComplexPairTy Visit(Expr *E) {
|
||||
return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E);
|
||||
}
|
||||
|
||||
|
||||
ComplexPairTy VisitStmt(Stmt *S) {
|
||||
S->dump(CGF.getContext().getSourceManager());
|
||||
llvm_unreachable("Stmt can't have complex result type!");
|
||||
|
@ -410,7 +410,7 @@ ComplexPairTy ComplexExprEmitter::EmitScalarToComplexCast(llvm::Value *Val,
|
|||
return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType()));
|
||||
}
|
||||
|
||||
ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op,
|
||||
ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op,
|
||||
QualType DestTy) {
|
||||
switch (CK) {
|
||||
case CK_Dependent: llvm_unreachable("dependent cast kind in IR gen!");
|
||||
|
@ -427,7 +427,7 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op,
|
|||
case CK_LValueBitCast: {
|
||||
LValue origLV = CGF.EmitLValue(Op);
|
||||
llvm::Value *V = origLV.getAddress();
|
||||
V = Builder.CreateBitCast(V,
|
||||
V = Builder.CreateBitCast(V,
|
||||
CGF.ConvertType(CGF.getContext().getPointerType(DestTy)));
|
||||
return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy,
|
||||
origLV.getAlignment()),
|
||||
|
@ -652,7 +652,7 @@ EmitCompoundAssignLValue(const CompoundAssignOperator *E,
|
|||
assert(CGF.getContext().hasSameUnqualifiedType(OpInfo.Ty,
|
||||
E->getRHS()->getType()));
|
||||
OpInfo.RHS = Visit(E->getRHS());
|
||||
|
||||
|
||||
LValue LHS = CGF.EmitLValue(E->getLHS());
|
||||
|
||||
// Load from the l-value and convert it.
|
||||
|
@ -702,7 +702,7 @@ EmitCompoundAssign(const CompoundAssignOperator *E,
|
|||
|
||||
LValue ComplexExprEmitter::EmitBinAssignLValue(const BinaryOperator *E,
|
||||
ComplexPairTy &Val) {
|
||||
assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(),
|
||||
assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(),
|
||||
E->getRHS()->getType()) &&
|
||||
"Invalid assignment");
|
||||
TestAndClearIgnoreReal();
|
||||
|
|
|
@ -242,7 +242,7 @@ CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S,
|
|||
EmitAnyExprToMem(cast<Expr>(LastStmt), RetAlloca, Qualifiers(),
|
||||
/*IsInit*/false);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return RetAlloca;
|
||||
|
@ -959,7 +959,7 @@ void CodeGenFunction::EmitCaseStmt(const CaseStmt &S) {
|
|||
// If there is no enclosing switch instance that we're aware of, then this
|
||||
// case statement and its block can be elided. This situation only happens
|
||||
// when we've constant-folded the switch, are emitting the constant case,
|
||||
// and part of the constant case includes another case statement. For
|
||||
// and part of the constant case includes another case statement. For
|
||||
// instance: switch (4) { case 4: do { case 5: } while (1); }
|
||||
if (!SwitchInsn) {
|
||||
EmitStmt(S.getSubStmt());
|
||||
|
@ -1493,7 +1493,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
|
|||
Name = GAS->getOutputName(i);
|
||||
TargetInfo::ConstraintInfo Info(S.getOutputConstraint(i), Name);
|
||||
bool IsValid = getTarget().validateOutputConstraint(Info); (void)IsValid;
|
||||
assert(IsValid && "Failed to parse output constraint");
|
||||
assert(IsValid && "Failed to parse output constraint");
|
||||
OutputConstraintInfos.push_back(Info);
|
||||
}
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@ static void GenOpenCLArgMetadata(const FunctionDecl *FD, llvm::Function *Fn,
|
|||
if (ty.isVolatileQualified())
|
||||
typeQuals += typeQuals.empty() ? "volatile" : " volatile";
|
||||
}
|
||||
|
||||
|
||||
argTypeQuals.push_back(llvm::MDString::get(Context, typeQuals));
|
||||
|
||||
// Get image access qualifier:
|
||||
|
|
Loading…
Reference in New Issue