Displaying 20 results from an estimated 50000 matches similar to: "[LLVMdev] Changing pointer representation?"
2006 Sep 04
1
[LLVMdev] Current work on type-safety proving?
I was just wondering what existing work has been done on proving
programs type-safe using the LLVM framework? I've read the paper on
memory-safety for embedded systems, but that's not quite what I'm
looking for, as my application (which involves running untrusted code
within a trusted context) might fail if a pointer to one object became a
pointer to another of the same type.
Looking
2017 Aug 02
2
Efficiently ignoring upper 32 pointer bits when dereferencing
Hi all,
I am experiencing a problem with the representation of addresses in the
x86_64 TableGen backend and was hoping someone can tell me if it is
fixable. Any comments or hints in to send me in the right direction
would be greatly appreciated. I am using LLVM version 3.8, commit
251286.
I have an IR pass that stores metadata in the upper 32 bits of 64-bit
pointers in order to implement
2006 Sep 03
7
[LLVMdev] Testing a register allocator
On Sun, 3 Sep 2006, Tanya M. Lattner wrote:
>> BTW, how can I run all tests only on LLC to reduce the amount of time to
>> wait until tests are finished, if it's possible?
>
> In my previous reply to your question, I suggested you look at
> TEST.llc.Makefile and TEST.llc.report in the test directory. Modifying
> those makefile/report files to use your register allocator
2006 Sep 04
0
[LLVMdev] Current work on type-safety proving?
Jules,
The link Chris forwarded (safecode.cs.uiuc.edu) describes the most
relevant work so far. But that work aims to make ordinary C and C++
programs memory-safe, without using garbage collection or any other
automatic memory management scheme, i.e., allowing dangling pointers
but ensuring they are harmless. It also allows any casts that are
legal in C.
If you want to enforce strict
2014 Oct 18
2
[LLVMdev] Dereferencing NULL pointer in IndVarSimplify.cpp?
Hi,
Here is the code in IndVarSimplify.cpp.
SmallVector<WeakVH, 16> DeadInsts;
while (!DeadInsts.empty())
if (Instruction *Inst =
dyn_cast_or_null<Instruction>(&*DeadInsts.pop_back_val()))
RecursivelyDeleteTriviallyDeadInstructions(Inst, TLI);
Since DeadInsts.pop_back_val() is WeakVH which could hold a NULL
pointer, the expression,
2017 Aug 02
2
Efficiently ignoring upper 32 pointer bits whendereferencing
Hi Eli,
Thanks, I’ll look into that then!
Cheers,
Taddeüs
From: Friedman, Eli
Sent: Wednesday, 2 August 2017 19:48
To: Taddeus; llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Efficiently ignoring upper 32 pointer bits whendereferencing
On 8/2/2017 9:03 AM, Taddeus via llvm-dev wrote:
> Hi all,
>
> I am experiencing a problem with the representation of addresses in
> the x86_64
2011 Aug 28
0
[LLVMdev] How to break/iterate over nested instructions.
Dear Manish,
First, in answer to your original question: yes, there is a pass that
will convert constant expression GEPs used within LLVM instructions into
GEP instructions. SAFECode has a pass called BreakConstantGEPs in
safecode/trunk/lib/ArrayBoundChecks/BreakConstantGEPs.cpp
(http://llvm.org/viewvc/llvm-project/safecode/trunk/lib/ArrayBoundChecks/BreakConstantGEPs.cpp?view=log).
It
2012 Jul 27
2
[PATCH] btrfs-progs: btrfs-image.c: Added NULL pointer check.
Check for the return value of ''open_ctree()'' before dereferencing it.
Signed-off-by: Nageswara R Sastry <nasastry@in.ibm.com>
---
btrfs-image.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/btrfs-image.c b/btrfs-image.c
index f2bbcc8..2a33a55 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -491,6 +491,7 @@ static int create_metadump(const char *input, FILE *out,
2016 Jun 30
3
how to join 2 channels using AGI/AMI
sorry for top-posting, the two topics started with 2 different reason
subject, but then we finished on the same problem.
btw,the 2 show channel are reported above:
the channel with DTMF working
kcenter*CLI> core show channel SIP/pbx2-000004b9
-- General --
Name: SIP/pbx2-000004b9
Type: SIP
UniqueID: 1467323106.1275
Caller ID: xxxx
Caller ID Name: xxxx
2013 Nov 07
0
[LLVMdev] Should remove calling NULL pointer or not
On Thu, Nov 7, 2013 at 11:02 AM, Yin Ma <yinma at codeaurora.org> wrote:
> Hi John,
>
>
>
> It seems the dereferencing a NULL pointer is undefined behavior but
>
> Calling a function through a null pointer seems o.k.
>
What is the well defined behavior of calling a null function pointer?
>
>
> If so , for this place, we need comment out the check.
>
2007 Jul 13
3
asterisk-addons compilation "error: dereferencing pointer to incomplete type"
I am having trouble getting asterisk-addons 1.4.2 to compile (after a
successful configure). Asterisk itself (and AsteriskGUI) compile fine.
I get:
cdr_addon_mysql.c: In function `handle_cdr_mysql_status':
cdr_addon_mysql.c:91: error: dereferencing pointer to incomplete type
cdr_addon_mysql.c:93: error: dereferencing pointer to incomplete type
cdr_addon_mysql.c:95: error: dereferencing
2015 Mar 17
2
[LLVMdev] possible addrspacecast problem
On 16 Mar 2015, at 08:25, Sanjoy Das <sanjoy at playingwithpointers.com> wrote:
>
> The LangRef says this about addrspacecast: "Note that if the address
> space conversion is legal then both result and operand refer to the
> same memory location.". This brings forth two related questions:
>
> 1. what happens if you execute an "invalid" addrspacecast?
2009 Aug 25
0
[LLVMdev] ISRs for PIC16 [was [llvm]r79631 ...]
On Aug 25, 2009, at 8:59 AM, John Regehr wrote:
>> Function pointers are where things get fun. To do these, we need to
>> determine at run time whether we need to call the ISR or the mainline
>> version of a function
>
> This sounds convenient but it may well be overkill.
>
> On a PIC-class platform we can probably consider it to be a design
> flaw if
> the
2013 Nov 07
2
[LLVMdev] Should remove calling NULL pointer or not
Hi John,
It seems the dereferencing a NULL pointer is undefined behavior but
Calling a function through a null pointer seems o.k.
If so , for this place, we need comment out the check.
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#232
look at Notes from the October 2003 meeting.
Yin
From: John Criswell [mailto:criswell at illinois.edu]
Sent: Wednesday,
2011 Aug 27
4
[LLVMdev] How to break/iterate over nested instructions.
Hi Duncan,
Why to break?
I wish to analyse all the operands of getelemetptr instructions. For which I
iterate over the code and get the instruction of interest by
getopcode == getelementptr. But the getelementptrs in this form as in my
last mail are getting away from my pass. So i wish to break it. I have a
work around if breaking is not possible, but I think it may be a common
requirement by
2018 Jan 17
1
Error trying to join samba 4.3.4 to a DC...
Hi:
I'm trying to join a samba 4.3.4 (as an additional domain controller) to
a domain with Zentyal 4.3 (That has samba 4.3.4 inside). I know that
this is an old samba version but I cann't upgrade zentyal first. So,
When I can join the samba 4.3.4 to the domain I will demote the Zentyal.
But when I try:
samba-tool domain join dtcf.etecsa.cu DC -U "DTCF\administrator"
2010 Mar 17
1
[LLVMdev] Getting the DSNode from a Pool Descriptor?
Depending on the value of dsa_pass_to_use, either EquivBUDataStructures
or EQTDDataStructures is used. In the case that the top-down DSA is
used, information is pushed down to nodes in callees. However,
if bottom-up DSA is used, information has only been merged upwards and
the nodes are not necessarily equivalent.
Harmen
Andrew Lenharth wrote:
> On Tue, Mar 16, 2010 at 3:46 PM, Patrick
2009 Aug 25
2
[LLVMdev] ISRs for PIC16 [was [llvm]r79631 ...]
> Function pointers are where things get fun. To do these, we need to
> determine at run time whether we need to call the ISR or the mainline
> version of a function
This sounds convenient but it may well be overkill.
On a PIC-class platform we can probably consider it to be a design flaw if
the programmer doesn't know whether a function pointer will be
dereferenced from interrupt
2008 Jul 25
3
[LLVMdev] Analysis Passes
Devang Patel wrote:
> On Jul 25, 2008, at 12:58 PM, Marc de Kruijf wrote:
>
> I'd like to write a pass that does both: implements a code transformation and saves information that can be accessed by subsequent passes.
>
> Ideally, we want to use two separate pass. However, it is quiet possible that your requirement is unique. Would it be possible to provide more info. on what
2020 Jul 14
7
[Bug 3192] New: openssh-8.2 & openssl-1.1.1d error: dereferencing pointer to incomplete type Not found struct BIO , bio->num_write
https://bugzilla.mindrot.org/show_bug.cgi?id=3192
Bug ID: 3192
Summary: openssh-8.2 & openssl-1.1.1d error: dereferencing
pointer to incomplete type Not found struct BIO ,
bio->num_write
Product: Portable OpenSSH
Version: 8.2p1
Hardware: Other
OS: Linux
Status: NEW