Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/IceTargetLowering.cpp

Issue 1171563002: Subzero: Emit ARM build-attributes in the file scope (as header). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: format Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file implements the skeleton of the TargetLowering class, 10 // This file implements the skeleton of the TargetLowering class,
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 if (Target == Target_##X) \ 437 if (Target == Target_##X) \
438 return std::unique_ptr<TargetDataLowering>(TargetData##X::create(Ctx)); 438 return std::unique_ptr<TargetDataLowering>(TargetData##X::create(Ctx));
439 #include "llvm/Config/SZTargets.def" 439 #include "llvm/Config/SZTargets.def"
440 440
441 llvm_unreachable("Unsupported target data lowering"); 441 llvm_unreachable("Unsupported target data lowering");
442 return nullptr; 442 return nullptr;
443 } 443 }
444 444
445 TargetDataLowering::~TargetDataLowering() {} 445 TargetDataLowering::~TargetDataLowering() {}
446 446
447 std::unique_ptr<TargetHeaderLowering>
448 TargetHeaderLowering::createLowering(GlobalContext *Ctx) {
449 TargetArch Target = Ctx->getFlags().getTargetArch();
450 #define SUBZERO_TARGET(X) \
451 if (Target == Target_##X) \
452 return std::unique_ptr<TargetHeaderLowering>(TargetHeader##X::create(Ctx));
453 #include "llvm/Config/SZTargets.def"
454
455 llvm_unreachable("Unsupported target header lowering");
Jim Stichnoth 2015/06/08 20:23:43 report_fatal_error
jvoung (off chromium) 2015/06/08 22:21:10 Done.
456 return nullptr;
457 }
458
459 TargetHeaderLowering::~TargetHeaderLowering() {}
460
447 } // end of namespace Ice 461 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698