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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1147023007: Subzero: Basic Block Profiler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds a $ to the profiler generated labels. 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
OLDNEW
1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===//
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 TargetLoweringX8632 class, which 10 // This file implements the TargetLoweringX8632 class, which
(...skipping 3101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3112 Context.insert( 3112 Context.insert(
3113 InstFakeUse::create(Func, Context.getLastInserted()->getDest())); 3113 InstFakeUse::create(Func, Context.getLastInserted()->getDest()));
3114 return; 3114 return;
3115 } 3115 }
3116 case Intrinsics::AtomicRMW: 3116 case Intrinsics::AtomicRMW:
3117 if (!Intrinsics::isMemoryOrderValid( 3117 if (!Intrinsics::isMemoryOrderValid(
3118 ID, getConstantMemoryOrder(Instr->getArg(3)))) { 3118 ID, getConstantMemoryOrder(Instr->getArg(3)))) {
3119 Func->setError("Unexpected memory ordering for AtomicRMW"); 3119 Func->setError("Unexpected memory ordering for AtomicRMW");
3120 return; 3120 return;
3121 } 3121 }
3122 lowerAtomicRMW( 3122 lowerAtomicRMW(Instr->getDest(),
3123 Instr->getDest(), 3123 static_cast<uint32_t>(llvm::cast<ConstantInteger32>(
3124 static_cast<uint32_t>( 3124 Instr->getArg(0))->getValue()),
3125 llvm::cast<ConstantInteger32>(Instr->getArg(0))->getValue()), 3125 Instr->getArg(1), Instr->getArg(2));
3126 Instr->getArg(1), Instr->getArg(2));
3127 return; 3126 return;
3128 case Intrinsics::AtomicStore: { 3127 case Intrinsics::AtomicStore: {
3129 if (!Intrinsics::isMemoryOrderValid( 3128 if (!Intrinsics::isMemoryOrderValid(
3130 ID, getConstantMemoryOrder(Instr->getArg(2)))) { 3129 ID, getConstantMemoryOrder(Instr->getArg(2)))) {
3131 Func->setError("Unexpected memory ordering for AtomicStore"); 3130 Func->setError("Unexpected memory ordering for AtomicStore");
3132 return; 3131 return;
3133 } 3132 }
3134 // We require the memory address to be naturally aligned. 3133 // We require the memory address to be naturally aligned.
3135 // Given that is the case, then normal stores are atomic. 3134 // Given that is the case, then normal stores are atomic.
3136 // Add a fence after the store to make it visible. 3135 // Add a fence after the store to make it visible.
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
5011 case FT_Asm: 5010 case FT_Asm:
5012 case FT_Iasm: { 5011 case FT_Iasm: {
5013 OstreamLocker L(Ctx); 5012 OstreamLocker L(Ctx);
5014 emitConstantPool<PoolTypeConverter<float>>(Ctx); 5013 emitConstantPool<PoolTypeConverter<float>>(Ctx);
5015 emitConstantPool<PoolTypeConverter<double>>(Ctx); 5014 emitConstantPool<PoolTypeConverter<double>>(Ctx);
5016 } break; 5015 } break;
5017 } 5016 }
5018 } 5017 }
5019 5018
5020 } // end of namespace Ice 5019 } // end of namespace Ice
OLDNEW
« src/IceGlobalContext.cpp ('K') | « src/IceGlobalContext.cpp ('k') | src/IceThreading.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698