rohitksingh has quit [Read error: Connection reset by peer]
rohitksingh has joined #m-labs
<sb0>
whitequark: why is module.data_layout an empty string? is llvm ever supposed to return that?
<whitequark>
sb0: data layout is set by artiq compiler
<whitequark>
in compiler/target iirc
<whitequark>
llvm does not set it anymore, for a long time
<sb0>
whitequark: yes. so the artiq compiler sets it to empty string (when run on the host), but then afaict this is passed to LLVM, and then when reading it back it also comes from LLVM
<sb0>
it's a python property
<whitequark>
hm, it should use the proper API to ask the JIT for the data layout, I think
<whitequark>
however, I'm not sure why it started failing all of a sudden
<whitequark>
did you upgrade LLVM?
<sb0>
no
<whitequark>
maybe the JIT is broken? do llvmlite unittests pass?
<GitHub-m-labs>
artiq/master 8940009 Sebastien Bourdeauducq: compiler: pass data_layout string to llvm.create_target_data before determining endianness
<sb0>
bb-m-labs: stop build artiq typo
<bb-m-labs>
build 2741 interrupted
<bb-m-labs>
build #2741 of artiq is complete: Exception [exception conda_build_output] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/2741 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
<bb-m-labs>
build #2742 of artiq is complete: Exception [exception interrupted conda_remove] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/2742 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
<sb0>
see the commits, I need to detect endianness in LLVMIRGenerator, which I am doing by looking at the data_layout string, which is inexplicably empty on the host
<whitequark>
just add self.target.little_endian instead
<whitequark>
ok, sec, there's a slightly more proper way
<GitHub-m-labs>
[artiq] KaifengC commented on pull request #1204 c355430: Yes, on windows `kbhit()` will immditely return `0`, which is not `True`. But if you press any button, a none-zero value will return, which is `True`.... https://github.com/m-labs/artiq/pull/1204#discussion_r238105924
rohitksingh has quit [Ping timeout: 268 seconds]
<GitHub-m-labs>
[artiq] KaifengC commented on pull request #1204 f23536c: Yes, on windows `kbhit()` will immediately return `0`, which is not `True`. But if you press any button, a none-zero value will return, which is `True`.... https://github.com/m-labs/artiq/pull/1204#discussion_r238105924
<GitHub-m-labs>
[artiq] KaifengC commented on pull request #1204 f23536c: Yes, on windows `kbhit()` will immediately return `0`, which is not `True`. But if you press any button, a none-zero value will return, which is `True`.... https://github.com/m-labs/artiq/pull/1204#discussion_r238105924