hsail_code.cc (11697:c63431b7bbeb) | hsail_code.cc (12603:ab2cec4483af) |
---|---|
1/* 2 * Copyright (c) 2012-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 291 unchanged lines hidden (view full) --- 300 ~BRIG_TYPE_ARRAY)); 301 } else { 302 size = getBrigDataTypeBytes(sym->type); 303 offset = roundUp(nextOffset, getBrigDataTypeBytes(sym->type)); 304 } 305 306 nextOffset = offset + size; 307 | 1/* 2 * Copyright (c) 2012-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 291 unchanged lines hidden (view full) --- 300 ~BRIG_TYPE_ARRAY)); 301 } else { 302 size = getBrigDataTypeBytes(sym->type); 303 offset = roundUp(nextOffset, getBrigDataTypeBytes(sym->type)); 304 } 305 306 nextOffset = offset + size; 307 |
308 DPRINTF(HSAILObject, "Adding %s SYMBOL %s size %d offset 0x%x, init: %d\n", 309 segmentNames[segment], sym_name, size, offset, sym->init); | 308 DPRINTF(HSAILObject, "Adding SYMBOL %s size %d offset %#x, init: %d\n", 309 sym_name, size, offset, sym->init); |
310 311 StorageElement* se = new StorageElement(sym_name, offset, size, sym); 312 elements.push_back(se); 313 elements_by_addr.insert(AddrRange(offset, offset + size - 1), se); 314 elements_by_brigptr[sym] = se; 315 316 return se; 317} --- 143 unchanged lines hidden --- | 310 311 StorageElement* se = new StorageElement(sym_name, offset, size, sym); 312 elements.push_back(se); 313 elements_by_addr.insert(AddrRange(offset, offset + size - 1), se); 314 elements_by_brigptr[sym] = se; 315 316 return se; 317} --- 143 unchanged lines hidden --- |