comparison src/share/vm/graal/graalVMToCompiler.cpp @ 11699:03fe11f5f186

PTX Codegen: predicate register materialization and declaration; conditional branch generation; fix register declaration.
author S.Bharadwaj Yadavalli <bharadwaj.yadavalli@oracle.com>
date Tue, 17 Sep 2013 23:35:42 -0400
parents 4f69a5189e77
children f87c68d79f07
comparison
equal deleted inserted replaced
11698:4eec2ac671c2 11699:03fe11f5f186
60 60
61 Handle VMToCompiler::graalRuntime() { 61 Handle VMToCompiler::graalRuntime() {
62 if (JNIHandles::resolve(_graalRuntimePermObject) == NULL) { 62 if (JNIHandles::resolve(_graalRuntimePermObject) == NULL) {
63 #ifdef AMD64 63 #ifdef AMD64
64 Symbol* name = NULL; 64 Symbol* name = NULL;
65 if (UseGPU) { 65 // Set name to PTXHotSpotRuntime if nVidia GPU was detected.
66 // Set name to PTXHotSpotRuntime if nVidia GPU was detected. 66 if (UseGPU && (gpu::get_target_il_type() == gpu::PTX) &&
67 if ((gpu::get_target_il_type() == gpu::PTX) && 67 gpu::is_available() && gpu::has_gpu_linkage()) {
68 gpu::is_available() && gpu::has_gpu_linkage()) { 68 name = vmSymbols::com_oracle_graal_hotspot_ptx_PTXHotSpotGraalRuntime();
69 name = vmSymbols::com_oracle_graal_hotspot_ptx_PTXHotSpotGraalRuntime(); 69 }
70 } 70
71 // Set name to corresponding runtime classname for other 71 if (name == NULL) {
72 // supported GPU runtimes, here.
73 } else {
74 name = vmSymbols::com_oracle_graal_hotspot_amd64_AMD64HotSpotGraalRuntime(); 72 name = vmSymbols::com_oracle_graal_hotspot_amd64_AMD64HotSpotGraalRuntime();
75 } 73 }
76 #endif 74 #endif
77 #ifdef SPARC 75 #ifdef SPARC
78 Symbol* name = vmSymbols::com_oracle_graal_hotspot_sparc_SPARCHotSpotGraalRuntime(); 76 Symbol* name = vmSymbols::com_oracle_graal_hotspot_sparc_SPARCHotSpotGraalRuntime();