Skip to content

Commit

Permalink
clang-format ...
Browse files Browse the repository at this point in the history
  • Loading branch information
gitoleg committed Mar 21, 2024
1 parent ddfdc07 commit 2d9c086
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clang/lib/CIR/CodeGen/CIRAsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ mlir::LogicalResult CIRGenFunction::buildAsmStmt(const AsmStmt &S) {
auto addr = Address(dest, alignment);
builder.createStore(getLoc(S.getAsmLoc()), result, addr);

for (unsigned i = 0, e = ResultRegTypes.size(); i != e; ++i) {
for (unsigned i = 0, e = ResultRegTypes.size(); i != e; ++i) {
auto typ = builder.getPointerTo(ResultRegTypes[i]);
auto ptr =
builder.createGetMember(getLoc(S.getAsmLoc()), typ, dest, "", i);
Expand Down
13 changes: 7 additions & 6 deletions clang/lib/CIR/CodeGen/TargetInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ class TargetCIRGenInfo {
return Ty;
}

virtual void addReturnRegisterOutputs(
CIRGenFunction &CGF, LValue ReturnValue,
std::string &Constraints, std::vector<mlir::Type> &ResultRegTypes,
std::vector<mlir::Type> &ResultTruncRegTypes,
std::vector<LValue> &ResultRegDests, std::string &AsmString,
unsigned NumOutputs) const {}
virtual void
addReturnRegisterOutputs(CIRGenFunction &CGF, LValue ReturnValue,
std::string &Constraints,
std::vector<mlir::Type> &ResultRegTypes,
std::vector<mlir::Type> &ResultTruncRegTypes,
std::vector<LValue> &ResultRegDests,
std::string &AsmString, unsigned NumOutputs) const {}

virtual ~TargetCIRGenInfo() {}
};
Expand Down

0 comments on commit 2d9c086

Please sign in to comment.