/usr/include/d/ldc/attributes.d is in libphobos2-ldc-dev 1:0.17.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /**
* Contains compiler-recognized user-defined attribute types.
*
* Copyright: Authors 2015-2016
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: David Nadlinger, Johan Engelen
*/
module ldc.attributes;
/**
* When applied to a global variable or function, causes it to be emitted to a
* non-standard object file/executable section.
*
* The target platform might impose certain restrictions on the format for
* section names.
*
* Examples:
* ---
* import ldc.attributes;
*
* @section(".mySection") int myGlobal;
* ---
*/
struct section {
string name;
}
/**
* When applied to a function, specifies that the function should be compiled
* with different target options than on the command line.
*
* The passed string should be a comma-separated list of options. The options
* are passed to LLVM by adding them to the "target-features" function
* attribute, after minor processing: negative options (e.g. "no-sse") have the
* "no" stripped (--> "-sse"), whereas positive options (e.g. sse") gain a
* leading "+" (--> "+sse"). Negative options override positive options
* regardless of their order.
* The "arch=" option is a special case and is passed to LLVM via the
* "target-cpu" function attribute.
*
* Examples:
* ---
* import ldc.attributes;
*
* @target("no-sse")
* void foo_nosse(float *A, float* B, float K, uint n) {
* for (int i = 0; i < n; ++i)
* A[i] *= B[i] + K;
* }
* @target("arch=haswell")
* void foo_haswell(float *A, float* B, float K, uint n) {
* for (int i = 0; i < n; ++i)
* A[i] *= B[i] + K;
* }
* ---
*/
struct target {
string specifier;
}
|