Deleted Added
full compact
CGStmt.cpp (203955) CGStmt.cpp (204793)
1//===--- CGStmt.cpp - Emit LLVM Code from Statements ----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 901 unchanged lines hidden (view full) ---

910
911 // Get all the output and input constraints together.
912 llvm::SmallVector<TargetInfo::ConstraintInfo, 4> OutputConstraintInfos;
913 llvm::SmallVector<TargetInfo::ConstraintInfo, 4> InputConstraintInfos;
914
915 for (unsigned i = 0, e = S.getNumOutputs(); i != e; i++) {
916 TargetInfo::ConstraintInfo Info(S.getOutputConstraint(i),
917 S.getOutputName(i));
1//===--- CGStmt.cpp - Emit LLVM Code from Statements ----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 901 unchanged lines hidden (view full) ---

910
911 // Get all the output and input constraints together.
912 llvm::SmallVector<TargetInfo::ConstraintInfo, 4> OutputConstraintInfos;
913 llvm::SmallVector<TargetInfo::ConstraintInfo, 4> InputConstraintInfos;
914
915 for (unsigned i = 0, e = S.getNumOutputs(); i != e; i++) {
916 TargetInfo::ConstraintInfo Info(S.getOutputConstraint(i),
917 S.getOutputName(i));
918 assert(Target.validateOutputConstraint(Info) &&
919 "Failed to parse output constraint");
918 bool IsValid = Target.validateOutputConstraint(Info); (void)IsValid;
919 assert(IsValid && "Failed to parse output constraint");
920 OutputConstraintInfos.push_back(Info);
921 }
922
923 for (unsigned i = 0, e = S.getNumInputs(); i != e; i++) {
924 TargetInfo::ConstraintInfo Info(S.getInputConstraint(i),
925 S.getInputName(i));
920 OutputConstraintInfos.push_back(Info);
921 }
922
923 for (unsigned i = 0, e = S.getNumInputs(); i != e; i++) {
924 TargetInfo::ConstraintInfo Info(S.getInputConstraint(i),
925 S.getInputName(i));
926 assert(Target.validateInputConstraint(OutputConstraintInfos.data(),
927 S.getNumOutputs(),
928 Info) &&
929 "Failed to parse input constraint");
926 bool IsValid = Target.validateInputConstraint(OutputConstraintInfos.data(),
927 S.getNumOutputs(), Info);
928 assert(IsValid && "Failed to parse input constraint"); (void)IsValid;
930 InputConstraintInfos.push_back(Info);
931 }
932
933 std::string Constraints;
934
935 std::vector<LValue> ResultRegDests;
936 std::vector<QualType> ResultRegQualTys;
937 std::vector<const llvm::Type *> ResultRegTypes;

--- 201 unchanged lines hidden ---
929 InputConstraintInfos.push_back(Info);
930 }
931
932 std::string Constraints;
933
934 std::vector<LValue> ResultRegDests;
935 std::vector<QualType> ResultRegQualTys;
936 std::vector<const llvm::Type *> ResultRegTypes;

--- 201 unchanged lines hidden ---